Blame SOURCES/0011-selinux-8-5-Describe-fcontext-regular-expressions.patch

488ce5
From c556c6ad0b94cf3ba4b441a1a0930f2468434227 Mon Sep 17 00:00:00 2001
488ce5
From: Vit Mojzis <vmojzis@redhat.com>
488ce5
Date: Wed, 10 Feb 2021 18:05:29 +0100
488ce5
Subject: [PATCH] selinux(8,5): Describe fcontext regular expressions
488ce5
488ce5
Describe which type of regular expression is used in file context
488ce5
definitions and which flags are in effect.
488ce5
488ce5
Explain how local file context modifications are processed.
488ce5
488ce5
Signed-off-by: Vit Mojzis <vmojzis@redhat.com>
488ce5
Acked-by: Petr Lautrbach <plautrba@redhat.com>
488ce5
---
488ce5
 libselinux/man/man5/selabel_file.5 | 9 ++++++++-
488ce5
 1 file changed, 8 insertions(+), 1 deletion(-)
488ce5
488ce5
diff --git a/libselinux/man/man5/selabel_file.5 b/libselinux/man/man5/selabel_file.5
488ce5
index e97bd826..baba7776 100644
488ce5
--- a/libselinux/man/man5/selabel_file.5
488ce5
+++ b/libselinux/man/man5/selabel_file.5
488ce5
@@ -125,7 +125,14 @@ Where:
488ce5
 .RS
488ce5
 .I pathname
488ce5
 .RS
488ce5
-An entry that defines the pathname that may be in the form of a regular expression.
488ce5
+An entry that defines the path to be labeled.
488ce5
+May contain either a fully qualified path,
488ce5
+or a Perl compatible regular expression (PCRE),
488ce5
+describing fully qualified path(s).
488ce5
+The only PCRE flag in use is PCRE2_DOTALL,
488ce5
+which causes a wildcard '.' to match anything, including a new line.
488ce5
+Strings representing paths are processed as bytes (as opposed to Unicode),
488ce5
+meaning that non-ASCII characters are not matched by a single wildcard.
488ce5
 .RE
488ce5
 .I file_type
488ce5
 .RS
488ce5
-- 
488ce5
2.35.3
488ce5