Bug 684496

Summary: SELinux is preventing /usr/bin/pads from 'read' accesses on the directory net.
Product: [Fedora] Fedora Reporter: Jeremy Baudoin <jacquesstud04>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED CURRENTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 14CC: dwalsh, jacquesstud04, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard: setroubleshoot_trace_hash:95934f848fa9d8ec1e68f733407d533829fbb8da81e92a749642ed3cdafc0624
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-05-27 06:57:13 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 Jeremy Baudoin 2011-03-13 02:52:27 UTC
SELinux is preventing /usr/bin/pads from 'read' accesses on the directory net.

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

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

Additional Information:
Source Context                system_u:system_r:pads_t:s0
Target Context                system_u:object_r:sysfs_t:s0
Target Objects                net [ dir ]
Source                        pads
Source Path                   /usr/bin/pads
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           pads-1.2-4.fc12
Target RPM Packages           
Policy RPM                    selinux-policy-3.9.7-31.fc14
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed)
                              2.6.35.6-45.fc14.x86_64 #1 SMP Mon Oct 18 23:57:44
                              UTC 2010 x86_64 x86_64
Alert Count                   1
First Seen                    Sat 12 Mar 2011 08:50:25 PM CST
Last Seen                     Sat 12 Mar 2011 08:50:25 PM CST
Local ID                      59d2bf57-88d6-43d4-80ea-44e80738840a

Raw Audit Messages
type=AVC msg=audit(1299984625.917:121): avc:  denied  { read } for  pid=1939 comm="pads" name="net" dev=sysfs ino=2875 scontext=system_u:system_r:pads_t:s0 tcontext=system_u:object_r:sysfs_t:s0 tclass=dir


type=SYSCALL msg=audit(1299984625.917:121): arch=x86_64 syscall=open success=no exit=EACCES a0=3f2b8226df a1=90800 a2=22d8a90 a3=a items=0 ppid=1 pid=1939 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm=pads exe=/usr/bin/pads subj=system_u:system_r:pads_t:s0 key=(null)

Hash: pads,pads_t,sysfs_t,dir,read

audit2allow

#============= pads_t ==============
allow pads_t sysfs_t:dir read;

audit2allow -R

#============= pads_t ==============
allow pads_t sysfs_t:dir read;

Comment 1 Daniel Walsh 2011-05-26 20:49:13 UTC
Any update on this one?