Bug 679594

Summary: SELinux is preventing /usr/sbin/semodule from 'unlink' accesses on the file ldd.te.
Product: [Fedora] Fedora Reporter: John Freed <okrh>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 14CC: dwalsh, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard: setroubleshoot_trace_hash:7c63c24858480aa263a1b09d76d5fc7b1a486afd1455865f3183f6783fd29f6e
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-02-23 08:19:12 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description John Freed 2011-02-22 22:47:11 UTC
SELinux is preventing /usr/sbin/semodule from 'unlink' accesses on the file ldd.te.

*****  Plugin catchall (100. confidence) suggests  ***************************

If you believe that semodule should be allowed unlink access on the ldd.te 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 semodule /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp

Additional Information:
Source Context                unconfined_u:unconfined_r:semanage_t:s0-s0:c0.c102
                              3
Target Context                unconfined_u:object_r:admin_home_t:s0
Target Objects                ldd.te [ file ]
Source                        semodule
Source Path                   /usr/sbin/semodule
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           policycoreutils-2.0.83-33.10.fc14
Target RPM Packages           
Policy RPM                    selinux-policy-3.9.7-29.fc14
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 2.6.35.11-83.fc14.x86_64 #1 SMP Mon
                              Feb 7 07:06:44 UTC 2011 x86_64 x86_64
Alert Count                   1
First Seen                    Tue 22 Feb 2011 11:41:57 PM CET
Last Seen                     Tue 22 Feb 2011 11:41:57 PM CET
Local ID                      8dd27208-d1ce-471e-a086-51ffcec0d953

Raw Audit Messages
type=AVC msg=audit(1298414517.483:121887): avc:  denied  { unlink } for  pid=29527 comm="semodule" name="ldd.te" dev=dm-0 ino=9869 scontext=unconfined_u:unconfined_r:semanage_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:admin_home_t:s0 tclass=file


type=SYSCALL msg=audit(1298414517.483:121887): arch=x86_64 syscall=unlink success=no exit=EACCES a0=7fff09979a00 a1=7fff09979960 a2=7fff09979960 a3=72702f73656c7564 items=0 ppid=29443 pid=29527 auid=500 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=pts2 ses=112 comm=semodule exe=/usr/sbin/semodule subj=unconfined_u:unconfined_r:semanage_t:s0-s0:c0.c1023 key=(null)

Hash: semodule,semanage_t,admin_home_t,file,unlink

audit2allow

#============= semanage_t ==============
allow semanage_t admin_home_t:file unlink;

audit2allow -R

#============= semanage_t ==============
allow semanage_t admin_home_t:file unlink;

Comment 1 John Freed 2011-02-22 23:00:02 UTC
this is a continuation of the previous bug #679593

Comment 2 Miroslav Grepl 2011-02-23 08:19:12 UTC

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