Bug 801511
| Summary: | restorecon doesn't change security context | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Sjoerd Mullender <sjoerd> |
| Component: | policycoreutils | Assignee: | Daniel Walsh <dwalsh> |
| Status: | CLOSED NOTABUG | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 17 | CC: | dwalsh, mgrepl |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | x86_64 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2012-03-09 15:49:32 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
Sjoerd Mullender
2012-03-08 17:38:46 UTC
Try /usr/sbin/semanage fcontext -a -t shell_exec_t /usr/bin/esh This is weird. I didn't expect this to help since the path that is specified is not the path of the binary, but it did help: # ls -Z /bin/esh -rwxr-xr-x. root root system_u:object_r:bin_t:s0 /bin/esh # /usr/sbin/semanage fcontext -a -t shell_exec_t /usr/bin/esh # /usr/sbin/semanage -o - | grep esh fcontext -a -f 'all files' -t shell_exec_t '/bin/esh' fcontext -a -f 'all files' -t shell_exec_t '/usr/bin/esh' # /sbin/restorecon /bin/esh # ls -Z /bin/esh -rwxr-xr-x. root root system_u:object_r:shell_exec_t:s0 /bin/esh /bin is a symbolic link to /usr/bin But I take it esh should be labeled as a shell_exec_t? (In reply to comment #3) > /bin is a symbolic link to /usr/bin That explains it! (In reply to comment #4) > But I take it esh should be labeled as a shell_exec_t? Not by Fedora. It's something of my own. Well google actually says it exists as the "easy" shell. http://linux.about.com/cs/linux101/g/esh.htm |