Bug 679594 - SELinux is preventing /usr/sbin/semodule from 'unlink' accesses on the file ldd.te.
Summary: SELinux is preventing /usr/sbin/semodule from 'unlink' accesses on the file l...
Keywords:
Status: CLOSED DUPLICATE of bug 679593
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 14
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: setroubleshoot_trace_hash:7c63c248584...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-02-22 22:47 UTC by John Freed
Modified: 2011-02-23 08:19 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-02-23 08:19:12 UTC
Type: ---


Attachments (Terms of Use)

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 ***


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