Blame SOURCES/coreutils-8.22-selinux-optionsseparate.patch

fc4c3c
diff -urNp coreutils-8.22-orig/src/cp.c coreutils-8.22/src/cp.c
fc4c3c
--- coreutils-8.22-orig/src/cp.c	2015-06-11 15:58:04.230858212 +0200
fc4c3c
+++ coreutils-8.22/src/cp.c	2015-06-11 15:59:13.191396755 +0200
fc4c3c
@@ -233,8 +233,10 @@ Copy SOURCE to DEST, or multiple SOURCE(
fc4c3c
   -x, --one-file-system        stay on this file system\n\
fc4c3c
 "), stdout);
fc4c3c
       fputs (_("\
fc4c3c
-  -Z, --context[=CTX]          set SELinux security context of destination\n\
fc4c3c
-                                 file to default type, or to CTX if specified\n\
fc4c3c
+  -Z                           set SELinux security context of destination\n\
fc4c3c
+                                 file to default type\n\
fc4c3c
+      --context[=CTX]          like -Z, or if CTX is specified then set the\n\
fc4c3c
+                                 SELinux or SMACK security context to CTX\n\
fc4c3c
 "), stdout);
fc4c3c
       fputs (HELP_OPTION_DESCRIPTION, stdout);
fc4c3c
       fputs (VERSION_OPTION_DESCRIPTION, stdout);
fc4c3c
diff -urNp coreutils-8.22-orig/src/install.c coreutils-8.22/src/install.c
fc4c3c
--- coreutils-8.22-orig/src/install.c	2015-06-11 15:58:04.230858212 +0200
fc4c3c
+++ coreutils-8.22/src/install.c	2015-06-11 16:00:16.754893027 +0200
fc4c3c
@@ -647,8 +647,10 @@ In the 4th form, create all components o
fc4c3c
 "), stdout);
fc4c3c
       fputs (_("\
fc4c3c
   -P, --preserve-context  preserve SELinux security context (-P deprecated)\n\
fc4c3c
-  -Z, --context[=CTX]     set SELinux security context of destination file to\n\
fc4c3c
-                            default type, or to CTX if specified\n\
fc4c3c
+  -Z                      set SELinux security context of destination\n\
fc4c3c
+                            file to default type\n\
fc4c3c
+      --context[=CTX]     like -Z, or if CTX is specified then set the\n\
fc4c3c
+                            SELinux or SMACK security context to CTX\n\
fc4c3c
 "), stdout);
fc4c3c
 
fc4c3c
       fputs (HELP_OPTION_DESCRIPTION, stdout);
fc4c3c
diff -urNp coreutils-8.22-orig/src/mkdir.c coreutils-8.22/src/mkdir.c
fc4c3c
--- coreutils-8.22-orig/src/mkdir.c	2013-12-05 01:59:36.000000000 +0100
fc4c3c
+++ coreutils-8.22/src/mkdir.c	2015-06-11 16:01:17.209364915 +0200
fc4c3c
@@ -66,8 +66,12 @@ Create the DIRECTORY(ies), if they do no
fc4c3c
   -m, --mode=MODE   set file mode (as in chmod), not a=rwx - umask\n\
fc4c3c
   -p, --parents     no error if existing, make parent directories as needed\n\
fc4c3c
   -v, --verbose     print a message for each created directory\n\
fc4c3c
-  -Z, --context[=CTX]  set the SELinux security context of each created\n\
fc4c3c
-                         directory to default type or to CTX if specified\n\
fc4c3c
+"), stdout);
fc4c3c
+      fputs (_("\
fc4c3c
+  -Z                   set SELinux security context of each created directory\n\
fc4c3c
+                         to the default type\n\
fc4c3c
+      --context[=CTX]  like -Z, or if CTX is specified then set the SELinux\n\
fc4c3c
+                         or SMACK security context to CTX\n\
fc4c3c
 "), stdout);
fc4c3c
       fputs (HELP_OPTION_DESCRIPTION, stdout);
fc4c3c
       fputs (VERSION_OPTION_DESCRIPTION, stdout);
fc4c3c
diff -urNp coreutils-8.22-orig/src/mkfifo.c coreutils-8.22/src/mkfifo.c
fc4c3c
--- coreutils-8.22-orig/src/mkfifo.c	2013-12-05 00:43:05.000000000 +0100
fc4c3c
+++ coreutils-8.22/src/mkfifo.c	2015-06-11 16:02:03.389725315 +0200
fc4c3c
@@ -61,8 +61,9 @@ Create named pipes (FIFOs) with the give
fc4c3c
   -m, --mode=MODE    set file permission bits to MODE, not a=rw - umask\n\
fc4c3c
 "), stdout);
fc4c3c
       fputs (_("\
fc4c3c
-  -Z, --context[=CTX]  set the SELinux security context of each NAME to\n\
fc4c3c
-                         default type, or CTX if specified\n\
fc4c3c
+  -Z                   set the SELinux security context to default type\n\
fc4c3c
+      --context[=CTX]  like -Z, or if CTX is specified then set the SELinux\n\
fc4c3c
+                         or SMACK security context to CTX\n\
fc4c3c
 "), stdout);
fc4c3c
       fputs (HELP_OPTION_DESCRIPTION, stdout);
fc4c3c
       fputs (VERSION_OPTION_DESCRIPTION, stdout);
fc4c3c
diff -urNp coreutils-8.22-orig/src/mknod.c coreutils-8.22/src/mknod.c
fc4c3c
--- coreutils-8.22-orig/src/mknod.c	2013-12-05 00:43:05.000000000 +0100
fc4c3c
+++ coreutils-8.22/src/mknod.c	2015-06-11 16:02:36.300982160 +0200
fc4c3c
@@ -63,8 +63,9 @@ Create the special file NAME of the give
fc4c3c
   -m, --mode=MODE    set file permission bits to MODE, not a=rw - umask\n\
fc4c3c
 "), stdout);
fc4c3c
       fputs (_("\
fc4c3c
-  -Z, --context[=CTX]  set the SELinux security context of NAME to\n\
fc4c3c
-                         default type, or to CTX if specified\n\
fc4c3c
+  -Z                   set the SELinux security context to default type\n\
fc4c3c
+      --context[=CTX]  like -Z, or if CTX is specified then set the SELinux\n\
fc4c3c
+                         or SMACK security context to CTX\n\
fc4c3c
 "), stdout);
fc4c3c
       fputs (HELP_OPTION_DESCRIPTION, stdout);
fc4c3c
       fputs (VERSION_OPTION_DESCRIPTION, stdout);