Bug 812464 - SELinux is preventing /sbin/load_policy from 'read' accesses on the Datei /etc/shells.
Summary: SELinux is preventing /sbin/load_policy from 'read' accesses on the Datei /et...
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 16
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:eb2dab6e4ac21c61dc695d9fc53...
: 812465 812467 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-04-13 19:50 UTC by autarch princeps
Modified: 2012-04-13 20:17 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-04-13 20:16:21 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description autarch princeps 2012-04-13 19:50:33 UTC
libreport version: 2.0.8
executable:     /usr/bin/python
hashmarkername: setroubleshoot
kernel:         3.3.1-3.fc16.x86_64
reason:         SELinux is preventing /sbin/load_policy from 'read' accesses on the Datei /etc/shells.
time:           Fr 13 Apr 2012 21:50:16 CEST

description:
:SELinux is preventing /sbin/load_policy from 'read' accesses on the Datei /etc/shells.
:
:*****  Plugin restorecon (99.5 confidence) suggests  *************************
:
:If you want to fix the label. 
:/etc/shells default label should be etc_t.
:Then you can run restorecon.
:Do
:# /sbin/restorecon -v /etc/shells
:
:*****  Plugin catchall (1.49 confidence) suggests  ***************************
:
:If you believe that load_policy should be allowed read access on the shells 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 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:ldconfig_tmp_t:s0
:Target Objects                /etc/shells [ file ]
:Source                        load_policy
:Source Path                   /sbin/load_policy
:Port                          <Unbekannt>
:Host                          (removed)
:Source RPM Packages           policycoreutils-2.1.4-13.fc16.x86_64
:Target RPM Packages           setup-2.8.36-3.fc16.noarch
:Policy RPM                    selinux-policy-3.10.0-80.fc16.noarch
:Selinux Enabled               True
:Policy Type                   targeted
:Enforcing Mode                Enforcing
:Host Name                     (removed)
:Platform                      Linux (removed) 3.3.1-3.fc16.x86_64 #1 SMP
:                              Wed Apr 4 18:08:51 UTC 2012 x86_64 x86_64
:Alert Count                   1
:First Seen                    Fr 13 Apr 2012 21:48:55 CEST
:Last Seen                     Fr 13 Apr 2012 21:48:55 CEST
:Local ID                      dce5056d-7a63-4616-a4d4-4fed5464e6dc
:
:Raw Audit Messages
:type=AVC msg=audit(1334346535.995:180): avc:  denied  { read } for  pid=15017 comm="load_policy" path="/etc/shells" dev="sda3" ino=131625 scontext=unconfined_u:unconfined_r:load_policy_t:s0-s0:c0.c1023 tcontext=system_u:object_r:ldconfig_tmp_t:s0 tclass=file
:
:
:type=SYSCALL msg=audit(1334346535.995:180): arch=x86_64 syscall=execve success=yes exit=0 a0=51564e0 a1=5270260 a2=0 a3=12 items=0 ppid=15016 pid=15017 auid=1000 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=pts0 ses=2 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,ldconfig_tmp_t,file,read
:
:audit2allow
:
:#============= load_policy_t ==============
:allow load_policy_t ldconfig_tmp_t:file read;
:
:audit2allow -R
:
:#============= load_policy_t ==============
:allow load_policy_t ldconfig_tmp_t:file read;
:

Comment 1 Daniel Walsh 2012-04-13 20:16:21 UTC
The alert tells you what to do.  I have no idea how /etc/shells got mislabeled.

Comment 2 Daniel Walsh 2012-04-13 20:16:38 UTC
*** Bug 812465 has been marked as a duplicate of this bug. ***

Comment 3 Daniel Walsh 2012-04-13 20:17:52 UTC
*** Bug 812467 has been marked as a duplicate of this bug. ***


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