Blame SOURCES/coreutils-selinuxmanpages.patch

47d86b
diff -urNp coreutils-6.10-orig/doc/coreutils.texi coreutils-6.10/doc/coreutils.texi
47d86b
--- coreutils-6.10-orig/doc/coreutils.texi	2008-04-07 17:52:11.000000000 +0200
47d86b
+++ coreutils-6.10/doc/coreutils.texi	2008-04-07 18:01:43.000000000 +0200
47d86b
@@ -6981,6 +6981,11 @@ for i; do
47d86b
 exit $fail
47d86b
 @end example
47d86b
 
47d86b
+@item -c
47d86b
+@cindex SELinux security context information, preserving
47d86b
+Preserve SELinux security context of the original files if possible.
47d86b
+Some file systems don't support storing of SELinux security context.
47d86b
+
47d86b
 @item --copy-contents
47d86b
 @cindex directories, copying recursively
47d86b
 @cindex copying directories recursively
fc4c3c
diff -urNp coreutils-8.22-orig/doc/coreutils.texi coreutils-8.22/doc/coreutils.texi
fc4c3c
--- coreutils-8.22-orig/doc/coreutils.texi	2015-06-12 14:16:22.672832509 +0200
fc4c3c
+++ coreutils-8.22/doc/coreutils.texi	2015-06-12 14:43:02.646303224 +0200
fc4c3c
@@ -7311,13 +7311,32 @@ it also affects the HP-UX @command{ls} p
fc4c3c
 
fc4c3c
 @item -Z
fc4c3c
 @itemx --context
fc4c3c
+@itemx --scontext
fc4c3c
+@itemx --lcontext
fc4c3c
+@itemx --format=context
fc4c3c
 @opindex -Z
fc4c3c
 @opindex --context
fc4c3c
+@opindex --format=security
fc4c3c
+@opindex --scontext
fc4c3c
+@opindex --lcontext
fc4c3c
 @cindex SELinux
fc4c3c
 @cindex security context
fc4c3c
 Display the SELinux security context or @samp{?} if none is found.
fc4c3c
-When used with the @option{-l} option, print the security context
fc4c3c
-to the left of the size column.
fc4c3c
+@option{-Z} counts as format option and enables displaying of SELinux
fc4c3c
+context.
fc4c3c
+@option{--scontext} prints SELinux context left to the file name.
fc4c3c
+@option{--lcontext} prints long format with SELinux context in the middle.
fc4c3c
+@option{--context} prints permissions, user/group, context and file name (in comparison to @option{--lcontext}, omits size, modification time and number of hardlinks).
fc4c3c
+
fc4c3c
+Note: When multiple format options are used in @command{ls},
fc4c3c
+the last one is used. Therefore @samp{ls -lZ} (security format
fc4c3c
+is last - same as @samp{ls --context}) differs from @samp{ls -Zl}
fc4c3c
+(long format with selinux context is shown, same as @samp{ls --lcontext})
fc4c3c
+
fc4c3c
+Do not rely on @option{--scontext} and @option{--lcontext}
fc4c3c
+options in your scripts. They will be removed in next major
fc4c3c
+version of Red Hat Enterprise Linux. @option{--context} behaviour
fc4c3c
+will change (just enabling displaying SELinux context).
fc4c3c
 
fc4c3c
 @end table
fc4c3c