Bug 678132 - SELinux is preventing /sbin/load_policy from 'search' accesses on the directory /.
Summary: SELinux is preventing /sbin/load_policy from 'search' accesses on the directo...
Keywords:
Status: CLOSED DUPLICATE of bug 678131
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:1f022ad8346...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-02-16 20:46 UTC by Clyde E. Kunkel
Modified: 2011-02-16 21:53 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-02-16 21:53:28 UTC
Type: ---


Attachments (Terms of Use)

Description Clyde E. Kunkel 2011-02-16 20:46:53 UTC
SELinux is preventing /sbin/load_policy from 'search' accesses on the directory /.

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

If you believe that load_policy 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 load_policy /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp

Additional Information:
Source Context                unconfined_u:unconfined_r:load_policy_t:s0-s0:c0.c
                              1023
Target Context                system_u:object_r:logrotate_t:s0
Target Objects                / [ dir ]
Source                        load_policy
Source Path                   /sbin/load_policy
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                   1
First Seen                    Wed 16 Feb 2011 04:43:11 PM EST
Last Seen                     Wed 16 Feb 2011 04:43:11 PM EST
Local ID                      13d476ae-8a19-4b34-ab36-17657573e578

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


type=SYSCALL msg=audit(1297892591.54:226): arch=x86_64 syscall=access success=no exit=ENOENT a0=7f997d130400 a1=4 a2=7f997d335850 a3=7f997d12c6d4 items=0 ppid=6679 pid=6680 auid=500 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=pts5 ses=1 comm=load_policy exe=/sbin/load_policy subj=unconfined_u:unconfined_r:load_policy_t:s0-s0:c0.c1023 key=(null)

Hash: load_policy,load_policy_t,logrotate_t,dir,search

audit2allow

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

audit2allow -R

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

Comment 1 Daniel Walsh 2011-02-16 21:53:28 UTC

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


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