Blame SOURCES/coreutils-selinuxmanpages.patch

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