summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorKamil Dudka <kdudka@redhat.com>2009-08-11 16:47:29 +0200
committerJames Youngman <jay@gnu.org>2010-03-30 10:11:30 +0100
commit1a05af6a0f6d57e91f5365d1c078e4cd12bccabf (patch)
tree67e1fe79deba70b5965db79929daff2889c85afc /doc
parentf6ca105f712d01c75526c05323eded273b9de2be (diff)
downloadfindutils-1a05af6a0f6d57e91f5365d1c078e4cd12bccabf.tar.gz
find: add SELinux support
* find/defs.h: Add SELinux related definitions. * find/tree.c: Add -context predicate to lookup. * find/pred.c: Handle %Z printf directive. * find/parser.c: Parse -context predicate and %Z printf directive. * find/find.1: Mention -context predicate and %Z printf directive. * doc/find.texi: Mention -context predicate and %Z printf directive. * find/Makefile.am: Add SELinux libraries. * import-gnulib.config: Require module selinux-at and the corresponding version of gnulib. Signed-off-by: Kamil Dudka <kdudka@redhat.com>
Diffstat (limited to 'doc')
-rw-r--r--doc/find.texi17
1 files changed, 17 insertions, 0 deletions
diff --git a/doc/find.texi b/doc/find.texi
index c2c2c03f..8ce1f6fe 100644
--- a/doc/find.texi
+++ b/doc/find.texi
@@ -1261,6 +1261,14 @@ situation.
@end deffn
+@deffn Test -context pattern
+True if file's SELinux context matches the pattern @var{pattern}.
+The pattern uses shell glob matching.
+
+This predicate is supported only on @code{find} versions compiled with
+SELinux support and only when SELinux is enabled.
+@end deffn
+
@node Contents
@section Contents
@@ -1752,6 +1760,7 @@ from the novel you are reading.
* Size Directives::
* Location Directives::
* Time Directives::
+* Other Directives::
* Formatting Flags::
@end menu
@@ -1909,6 +1918,14 @@ File's last modification time in the format specified by @var{k}
(@pxref{Time Formats}).
@end table
+@node Other Directives
+@subsubsection Other Directives
+
+@table @code
+@item %Z
+File's SELinux context, or empty string if the file has no SELinux context.
+@end table
+
@node Time Formats
@subsection Time Formats