Thank you, hoban/tgelter. Closing, then, as Fix Released.
** Changed in: coreutils (Ubuntu)
Status: Triaged => Fix Released
--
"cp" command doesn't preserve selinux context
https://bugs.launchpad.net/bugs/203433
You received this bug notification because you are a member of Ubuntu
Bugs, w
Hey. I had forgotten all about this bug. :)
Yep, it's fixed now, thanks!
--
"cp" command doesn't preserve selinux context
https://bugs.launchpad.net/bugs/203433
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
--
ubuntu-bugs mailing list
Hello tgelter,
Could you please check if this is resolved on Karmic?
--
"cp" command doesn't preserve selinux context
https://bugs.launchpad.net/bugs/203433
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
--
ubuntu-bugs mailing list
ub
thank you for opening this bug and helping make Ubuntu better. A patch
has just been proposed upstream and, if accepted, it should be added to
coreutils-7.0 (and make it to Intrepid+1).
The just-proposed patch was presented with this text:
--
Subject: [PATCH]: cp '-a'
I hadn't actually tested the -p or the --preserve=context. Here's why
(this done on RHEL 5.1):
[EMAIL PROTECTED] tmp]# ls -Z /etc/shadow
-r root root system_u:object_r:shadow_t /etc/shadow
[EMAIL PROTECTED] tmp]# cp -p /etc/shadow .
[EMAIL PROTECTED] tmp]# ls -Z shadow
-r r
[EMAIL PROTECTED]:/tmp# ls -Z /etc/shadow
system_u:object_r:shadow_t /etc/shadow
[EMAIL PROTECTED]:/tmp# cp --preserve=all /etc/shadow .
[EMAIL PROTECTED]:/tmp# ls -Z shadow
system_u:object_r:shadow_t shadow
According to the man page for cp -a is the same as -dpR which turns out to mean:
--no-der
** Description changed:
Binary package hint: coreutils
Attempting to demonstrate the power of selinux I tried the following
demo (works in RHEL):
[EMAIL PROTECTED]:/var/www# ls -lZ /etc/shadow
-rw-r-+ 1 root shadow system_u:object_r:shadow_t 1193 2008-03-17 17:55
/etc/shadow