Bug 1299429

Summary: SELinux is preventing /usr/sbin/usbhid-ups from 'read' accesses on the file +usb:2-0:1.0.
Product: [Fedora] Fedora Reporter: Laurent Rineau <laurent.rineau__fedora>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: medium    
Version: 23CC: dominick.grift, dwalsh, lvrabec, mgrepl, plautrba
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:9ad43d89182686500c13eefb01c2236baed5ea8215db41fcc5ad1d7dddeb206c;
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-09-15 14:47:17 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 Laurent Rineau 2016-01-18 11:07:11 UTC
Description of problem:
The problem occurs at boot.
SELinux is preventing /usr/sbin/usbhid-ups from 'read' accesses on the file +usb:2-0:1.0.

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

If you believe that usbhid-ups should be allowed read access on the +usb:2-0:1.0 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 usbhid-ups /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp

Additional Information:
Source Context                system_u:system_r:nut_upsdrvctl_t:s0
Target Context                system_u:object_r:udev_var_run_t:s0
Target Objects                +usb:2-0:1.0 [ file ]
Source                        usbhid-ups
Source Path                   /usr/sbin/usbhid-ups
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           
Policy RPM                    <Unknown>
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 4.3.3-300.fc23.x86_64 #1 SMP Tue
                              Jan 5 23:31:01 UTC 2016 x86_64 x86_64
Alert Count                   75
First Seen                    2016-01-18 10:14:58 CET
Last Seen                     2016-01-18 10:48:42 CET
Local ID                      0756567b-eaad-4212-a5df-2fb9114766dd

Raw Audit Messages
type=AVC msg=audit(1453110522.822:578): avc:  denied  { read } for  pid=2487 comm="usbhid-ups" name="+usb:2-0:1.0" dev="tmpfs" ino=16850 scontext=system_u:system_r:nut_upsdrvctl_t:s0 tcontext=system_u:object_r:udev_var_run_t:s0 tclass=file permissive=0


type=SYSCALL msg=audit(1453110522.822:578): arch=x86_64 syscall=open success=no exit=EACCES a0=7fffd6e4ef10 a1=80000 a2=1b6 a3=80000 items=0 ppid=2480 pid=2487 auid=4294967295 uid=57 gid=57 euid=57 suid=57 fsuid=57 egid=57 sgid=57 fsgid=57 tty=(none) ses=4294967295 comm=usbhid-ups exe=/usr/sbin/usbhid-ups subj=system_u:system_r:nut_upsdrvctl_t:s0 key=(null)

Hash: usbhid-ups,nut_upsdrvctl_t,udev_var_run_t,file,read


Additional info:
reporter:       libreport-2.6.3
hashmarkername: setroubleshoot
kernel:         4.3.3-300.fc23.x86_64
type:           libreport

Comment 1 Lukas Vrabec 2016-09-15 14:47:17 UTC

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