Bug 678129

Summary: SELinux is preventing /usr/sbin/semodule from 'search' accesses on the directory /.
Product: [Fedora] Fedora Reporter: Clyde E. Kunkel <clydekunkel7734>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: rawhideCC: dwalsh, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard: setroubleshoot_trace_hash:e417fe2ea67d4eb354204c6ee8fd7a4825e060fb668696f26d85eb169331d9cb
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-02-16 21:58:57 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 Clyde E. Kunkel 2011-02-16 20:44:01 UTC
SELinux is preventing /usr/sbin/semodule from 'search' accesses on the directory /.

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

If you believe that semodule should be allowed search access on the  directory 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                system_u:object_r:logrotate_t:s0
Target Objects                / [ dir ]
Source                        semodule
Source Path                   /usr/sbin/semodule
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           policycoreutils-2.0.85-12.fc15
Target RPM Packages           filesystem-2.4.37-1.fc15
Policy RPM                    selinux-policy-3.9.14-2.fc15
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Permissive
Host Name                     (removed)
Platform                      Linux (removed)
                              2.6.38-0.rc4.git0.2.fc15.x86_64 #1 SMP Tue Feb 8
                              04:08:32 UTC 2011 x86_64 x86_64
Alert Count                   3
First Seen                    Wed 16 Feb 2011 04:42:47 PM EST
Last Seen                     Wed 16 Feb 2011 04:43:12 PM EST
Local ID                      b7747532-a240-4635-b2a5-bd08ec832101

Raw Audit Messages
type=AVC msg=audit(1297892592.456:228): avc:  denied  { search } for  pid=6681 comm="semodule" name="/" dev=dm-0 ino=2 scontext=unconfined_u:unconfined_r:semanage_t:s0-s0:c0.c1023 tcontext=system_u:object_r:logrotate_t:s0 tclass=dir


type=SYSCALL msg=audit(1297892592.456:228): arch=x86_64 syscall=execve success=yes exit=0 a0=7ff60a52eaa0 a1=7ff61c742360 a2=0 a3=662f73747865746e items=0 ppid=6679 pid=6681 auid=500 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=pts5 ses=1 comm=setfiles exe=/sbin/setfiles subj=unconfined_u:unconfined_r:setfiles_t:s0-s0:c0.c1023 key=(null)

Hash: semodule,semanage_t,logrotate_t,dir,search

audit2allow

#============= semanage_t ==============
allow semanage_t logrotate_t:dir search;

audit2allow -R

#============= semanage_t ==============
allow semanage_t logrotate_t:dir search;

Comment 1 Clyde E. Kunkel 2011-02-16 20:45:24 UTC
Not sure why this popped up, was allowing semanage access to / and got another selinux avc alert.  Running in permissive mode.

Comment 2 Daniel Walsh 2011-02-16 21:58:57 UTC

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