Bug 178524

Summary: chcon --reference does not copy all security context of source
Product: [Fedora] Fedora Reporter: Need Real Name <lsof>
Component: coreutilsAssignee: Tim Waugh <twaugh>
Status: CLOSED NOTABUG QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 5   
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2006-01-23 08:39:40 EST Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:

Description Need Real Name 2006-01-21 06:25:24 EST
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.12) Gecko/20051215 Epiphany/1.9.4

Description of problem:
chcon --reference does not duplicate the security context of the source file.

[root@box plugins]# ls -Z
-rwxr-xr-x  root     root     user_u:object_r:usr_t            libflashplayer.solrwxrwxrwx  root     root     user_u:object_r:lib_t            nphelix.so -> /opt/RealPlayer/mozilla/nphelix.so
lrwxrwxrwx  root     root     user_u:object_r:lib_t            nphelix.xpt -> /opt/RealPlayer/mozilla/nphelix.xpt

[root@box plugins]# chcon libflashplayer.so --reference=nphelix.so

[root@box plugins]# ls -Z
-rwxr-xr-x  root     root     user_u:object_r:usr_t            libflashplayer.solrwxrwxrwx  root     root     user_u:object_r:lib_t            nphelix.so -> /opt/RealPlayer/mozilla/nphelix.so
lrwxrwxrwx  root     root     user_u:object_r:lib_t            nphelix.xpt -> /opt/RealPlayer/mozilla/nphelix.xpt

Version-Release number of selected component (if applicable):


How reproducible:
Always

Steps to Reproduce:
x

Additional info:
Comment 1 Tim Waugh 2006-01-23 08:39:40 EST
I think you want the '-h' flag.