Bug 676496 - SELinux is preventing /sbin/chkconfig from 'unlink' accesses on the lnk_file K74ntpd.
Summary: SELinux is preventing /sbin/chkconfig from 'unlink' accesses on the lnk_file ...
Keywords:
Status: CLOSED DUPLICATE of bug 675278
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: rawhide
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: setroubleshoot_trace_hash:99c5f89acbd...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-02-10 04:46 UTC by John Watzke
Modified: 2011-04-06 23:56 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-02-10 09:52:35 UTC
Type: ---


Attachments (Terms of Use)

Description John Watzke 2011-02-10 04:46:27 UTC
SELinux is preventing /sbin/chkconfig from 'unlink' accesses on the lnk_file K74ntpd.

*****  Plugin catchall_labels (83.8 confidence) suggests  ********************

If you want to allow chkconfig to have unlink access on the K74ntpd lnk_file
Then you need to change the label on K74ntpd
Do
# semanage fcontext -a -t FILE_TYPE 'K74ntpd'
where FILE_TYPE is one of the following: locale_t. 
Then execute: 
restorecon -v 'K74ntpd'


*****  Plugin catchall (17.1 confidence) suggests  ***************************

If you believe that chkconfig should be allowed unlink access on the K74ntpd 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                K74ntpd [ 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.rc4.git0.1.fc15.x86_64 #1 SMP Tue Feb 8
                              01:57:21 UTC 2011 x86_64 x86_64
Alert Count                   5
First Seen                    Wed 09 Feb 2011 04:29:17 PM CST
Last Seen                     Wed 09 Feb 2011 04:29:17 PM CST
Local ID                      dcc15ce8-9a0f-4b0a-b18a-0f1fcc4857f5

Raw Audit Messages
type=AVC msg=audit(1297290557.634:194): avc:  denied  { unlink } for  pid=7721 comm="chkconfig" name="K74ntpd" dev=dm-1 ino=525353 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(1297290557.634:194): arch=x86_64 syscall=unlink success=no exit=EACCES a0=1eeca20 a1=ffffffff a2=1eeca00 a3=0 items=0 ppid=7680 pid=7721 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,unlink

audit2allow

#============= gnomeclock_t ==============
allow gnomeclock_t etc_t:lnk_file unlink;

audit2allow -R

#============= gnomeclock_t ==============
allow gnomeclock_t etc_t:lnk_file unlink;

Comment 1 Miroslav Grepl 2011-02-10 09:52:35 UTC

*** This bug has been marked as a duplicate of bug 675278 ***


Note You need to log in before you can comment on or make changes to this bug.