CTX for preserve=all cp mode
This commit is contained in:
parent
0beb80a141
commit
146c35e640
@ -31,9 +31,9 @@ diff -urp coreutils-6.10-orig/man/cp.1 coreutils-6.10/man/cp.1
|
|||||||
.TP
|
.TP
|
||||||
\fB\-x\fR, \fB\-\-one\-file\-system\fR
|
\fB\-x\fR, \fB\-\-one\-file\-system\fR
|
||||||
stay on this file system
|
stay on this file system
|
||||||
|
+.TP
|
||||||
+\fB\-Z\fR, \fB\-\-context\fR=\fICONTEXT\fR
|
+\fB\-Z\fR, \fB\-\-context\fR=\fICONTEXT\fR
|
||||||
+(SELinux) set SELinux security context of copy to CONTEXT
|
+(SELinux) set SELinux security context of copy to CONTEXT
|
||||||
+.TP
|
|
||||||
.TP
|
.TP
|
||||||
\fB\-\-help\fR
|
\fB\-\-help\fR
|
||||||
display this help and exit
|
display this help and exit
|
||||||
@ -384,24 +384,12 @@ diff -urp coreutils-6.10-orig/src/cp.c coreutils-6.10/src/cp.c
|
|||||||
|
|
||||||
x->require_preserve = false;
|
x->require_preserve = false;
|
||||||
x->recursive = false;
|
x->recursive = false;
|
||||||
@@ -867,8 +873,10 @@ decode_preserve_arg (char const *arg, st
|
|
||||||
x->preserve_timestamps = on_off;
|
|
||||||
x->preserve_ownership = on_off;
|
|
||||||
x->preserve_links = on_off;
|
|
||||||
- if (selinux_enabled)
|
|
||||||
+ if (selinux_enabled) {
|
|
||||||
x->preserve_security_context = on_off;
|
|
||||||
+ x->require_preserve_context = on_off;
|
|
||||||
+ }
|
|
||||||
break;
|
|
||||||
|
|
||||||
default:
|
|
||||||
@@ -909,7 +917,7 @@ main (int argc, char **argv)
|
@@ -909,7 +917,7 @@ main (int argc, char **argv)
|
||||||
we'll actually use backup_suffix_string. */
|
we'll actually use backup_suffix_string. */
|
||||||
backup_suffix_string = getenv ("SIMPLE_BACKUP_SUFFIX");
|
backup_suffix_string = getenv ("SIMPLE_BACKUP_SUFFIX");
|
||||||
|
|
||||||
- while ((c = getopt_long (argc, argv, "abdfHilLprst:uvxPRS:T",
|
- while ((c = getopt_long (argc, argv, "abdfHilLprst:uvxPRS:T",
|
||||||
+ while ((c = getopt_long (argc, argv, "abcdfHilLprst:uvxPRS:TZ",
|
+ while ((c = getopt_long (argc, argv, "abcdfHilLprst:uvxPRS:TZ:",
|
||||||
long_opts, NULL))
|
long_opts, NULL))
|
||||||
!= -1)
|
!= -1)
|
||||||
{
|
{
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
Summary: The GNU core utilities: a set of tools commonly used in shell scripts
|
Summary: The GNU core utilities: a set of tools commonly used in shell scripts
|
||||||
Name: coreutils
|
Name: coreutils
|
||||||
Version: 6.12
|
Version: 6.12
|
||||||
Release: 13%{?dist}
|
Release: 14%{?dist}
|
||||||
License: GPLv3+
|
License: GPLv3+
|
||||||
Group: System Environment/Base
|
Group: System Environment/Base
|
||||||
Url: http://www.gnu.org/software/coreutils/
|
Url: http://www.gnu.org/software/coreutils/
|
||||||
@ -333,6 +333,12 @@ fi
|
|||||||
/sbin/runuser
|
/sbin/runuser
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Sun Oct 12 2008 Ondrej Vasik <ovasik@redhat.com> - 6.12-14
|
||||||
|
- cp -Z now correctly separated in man page (#466646)
|
||||||
|
- cp -Z works again (#466653)
|
||||||
|
- make preservation of SELinux CTX non-mandatory for
|
||||||
|
preserve=all cp option
|
||||||
|
|
||||||
* Wed Oct 08 2008 Ondrej Vasik <ovasik@redhat.com> - 6.12-13
|
* Wed Oct 08 2008 Ondrej Vasik <ovasik@redhat.com> - 6.12-13
|
||||||
- remove unimplemented (never accepted by upstream) option
|
- remove unimplemented (never accepted by upstream) option
|
||||||
for chcon changes only. Removed from help and man.
|
for chcon changes only. Removed from help and man.
|
||||||
|
Loading…
Reference in New Issue
Block a user