| Summary: | SELinux is preventing /sbin/chkconfig from 'create' accesses on the lnk_file S58ntpd. | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Elad Alfassa <elad> |
| Component: | selinux-policy | Assignee: | Miroslav Grepl <mgrepl> |
| Status: | CLOSED DUPLICATE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | medium | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | rawhide | CC: | dwalsh, jsmith.fedora, mgrepl, watzkej |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | x86_64 | ||
| OS: | Linux | ||
| Whiteboard: | setroubleshoot_trace_hash:225707b5e59fcdf41951bf553829c4b6e09654f26046c2ad696664f92ee15c8d | ||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2011-02-07 10:03:02 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
*** This bug has been marked as a duplicate of bug 675278 *** |
SELinux is preventing /sbin/chkconfig from 'create' accesses on the lnk_file S58ntpd. ***** Plugin catchall_labels (83.8 confidence) suggests ******************** If you want to allow chkconfig to have create access on the S58ntpd lnk_file Then you need to change the label on S58ntpd Do # semanage fcontext -a -t FILE_TYPE 'S58ntpd' where FILE_TYPE is one of the following: locale_t. Then execute: restorecon -v 'S58ntpd' ***** Plugin catchall (17.1 confidence) suggests *************************** If you believe that chkconfig should be allowed create access on the S58ntpd lnk_file by default. Then you should report this as a bug. You can generate a local policy module to allow this access. Do allow this access for now by executing: # grep chkconfig /var/log/audit/audit.log | audit2allow -M mypol # semodule -i mypol.pp Additional Information: Source Context system_u:system_r:gnomeclock_t:s0-s0:c0.c1023 Target Context system_u:object_r:etc_t:s0 Target Objects S58ntpd [ lnk_file ] Source chkconfig Source Path /sbin/chkconfig Port <Unknown> Host (removed) Source RPM Packages chkconfig-1.3.49-1.fc15 Target RPM Packages Policy RPM selinux-policy-3.9.13-9.fc15 Selinux Enabled True Policy Type targeted Enforcing Mode Enforcing Host Name (removed) Platform Linux (removed) 2.6.38-0.rc3.git0.1.fc15.x86_64 #1 SMP Wed Feb 2 03:34:17 UTC 2011 x86_64 x86_64 Alert Count 2 First Seen EST 13:59:10 2011 פבר 05 ש' Last Seen EST 13:59:10 2011 פבר 05 ש' Local ID 958468f3-c0f1-48b2-b707-11e4421ba683 Raw Audit Messages type=AVC msg=audit(1296932350.6:137): avc: denied { create } for pid=2196 comm="chkconfig" name="S58ntpd" scontext=system_u:system_r:gnomeclock_t:s0-s0:c0.c1023 tcontext=system_u:object_r:etc_t:s0 tclass=lnk_file type=SYSCALL msg=audit(1296932350.6:137): arch=x86_64 syscall=symlink success=no exit=EACCES a0=7fffa758a1e0 a1=7fffa758a2b0 a2=2 a3=0 items=0 ppid=2023 pid=2196 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm=chkconfig exe=/sbin/chkconfig subj=system_u:system_r:gnomeclock_t:s0-s0:c0.c1023 key=(null) Hash: chkconfig,gnomeclock_t,etc_t,lnk_file,create audit2allow #============= gnomeclock_t ============== allow gnomeclock_t etc_t:lnk_file create; audit2allow -R #============= gnomeclock_t ============== allow gnomeclock_t etc_t:lnk_file create;