Bug 715289

Summary: SELinux is preventing /usr/libexec/hald-probe-storage from 'open' accesses on the file /opt/rapid7/nexpose/nsc/nxpgsql/pgsql/lib/libuuid.so.1.
Product: [Fedora] Fedora Reporter: GJahchan
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 13CC: dominick.grift, dwalsh, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard: setroubleshoot_trace_hash:062e6f4e3a758da937bb22b752ccf0703b9b8177e7b03ee5ac619d973c79eec6
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-06-22 13:55:49 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 GJahchan 2011-06-22 13:20:09 UTC
SELinux is preventing /usr/libexec/hald-probe-storage from 'open' accesses on the file /opt/rapid7/nexpose/nsc/nxpgsql/pgsql/lib/libuuid.so.1.

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

If you believe that hald-probe-storage should be allowed open access on the libuuid.so.1 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 hald-probe-stor /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp

Additional Information:
Source Context                system_u:system_r:hald_t:s0
Target Context                user_u:object_r:user_home_t:s0
Target Objects                /opt/rapid7/nexpose/nsc/nxpgsql/pgsql/lib/libuuid.
                              so.1 [ file ]
Source                        hald-probe-stor
Source Path                   /usr/libexec/hald-probe-storage
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           hal-0.5.14-3.fc13
Target RPM Packages           
Policy RPM                    selinux-policy-3.7.19-101.fc13
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 2.6.34.8-68.fc13.x86_64
                              #1 SMP Thu Feb 17 15:03:58 UTC 2011 x86_64 x86_64
Alert Count                   3
First Seen                    Wed 22 Jun 2011 04:03:17 PM EEST
Last Seen                     Wed 22 Jun 2011 04:04:15 PM EEST
Local ID                      1a3acadf-dc5b-42a7-872d-f7c58f8a1282

Raw Audit Messages
type=AVC msg=audit(1308747855.48:52509): avc:  denied  { open } for  pid=30085 comm="hald-probe-stor" name="libuuid.so.1.2" dev=dm-1 ino=1584812 scontext=system_u:system_r:hald_t:s0 tcontext=user_u:object_r:user_home_t:s0 tclass=file


type=SYSCALL msg=audit(1308747855.48:52509): arch=x86_64 syscall=open success=no exit=EACCES a0=7ffddc2aed24 a1=0 a2=0 a3=6ffffeff items=1 ppid=1637 pid=30085 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm=hald-probe-stor exe=/usr/libexec/hald-probe-storage subj=system_u:system_r:hald_t:s0 key=(null)

type=CWD msg=audit(1308747855.48:52509): cwd=/usr/libexec

type=PATH msg=audit(1308747855.48:52509): item=0 name=/opt/rapid7/nexpose/nsc/nxpgsql/pgsql/lib/libuuid.so.1 inode=1584812 dev=fd:01 mode=0100700 ouid=509 ogid=0 rdev=00:00 obj=user_u:object_r:user_home_t:s0

Hash: hald-probe-stor,hald_t,user_home_t,file,open

audit2allowunable to open /etc/selinux/targeted/policy/policy.24:  Permission denied


audit2allow -Runable to open /etc/selinux/targeted/policy/policy.24:  Permission denied

Comment 1 Daniel Walsh 2011-06-22 13:55:49 UTC
restorecon -R -v /opt