Bug 1599067 - SELinux is preventing upowerd from 'open' accesses on the chr_file /dev/input/event0.
Summary: SELinux is preventing upowerd from 'open' accesses on the chr_file /dev/input...
Keywords:
Status: CLOSED DUPLICATE of bug 1595187
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 27
Hardware: i686
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Lukas Vrabec
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:fb27a116959c6b2ccc6622598b1...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-07-08 12:54 UTC by hagu
Modified: 2018-07-24 16:20 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-07-24 16:20:59 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description hagu 2018-07-08 12:54:15 UTC
Description of problem:
SELinux is preventing upowerd from 'open' accesses on the chr_file /dev/input/event0.

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

Si vous pensez que upowerd devrait être autorisé à accéder open sur event0 chr_file par défaut.
Then vous devriez rapporter ceci en tant qu'anomalie.
Vous pouvez générer un module de stratégie local pour autoriser cet accès.
Do
autoriser cet accès pour le moment en exécutant :
# ausearch -c "upowerd" --raw | audit2allow -M my-upowerd
# semodule -X 300 -i my-upowerd.pp

Additional Information:
Source Context                system_u:system_r:init_t:s0
Target Context                system_u:object_r:event_device_t:s0
Target Objects                /dev/input/event0 [ chr_file ]
Source                        upowerd
Source Path                   upowerd
Port                          <Inconnu>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           
Policy RPM                    <Inconnu>
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 4.13.12-200.fc26.i686 #1 SMP Wed
                              Nov 8 17:30:26 UTC 2017 i686 i686
Alert Count                   5
First Seen                    2018-07-08 11:11:00 CEST
Last Seen                     2018-07-08 14:41:28 CEST
Local ID                      c1d5b10e-8523-426c-96eb-a9c2b7df4d85

Raw Audit Messages
type=AVC msg=audit(1531053688.151:372): avc:  denied  { open } for  pid=2366 comm="upowerd" path="/dev/input/event0" dev="devtmpfs" ino=13326 scontext=system_u:system_r:init_t:s0 tcontext=system_u:object_r:event_device_t:s0 tclass=chr_file permissive=0


Hash: upowerd,init_t,event_device_t,chr_file,open


Additional info:
component:      selinux-policy
reporter:       libreport-2.9.3
hashmarkername: setroubleshoot
kernel:         4.13.12-200.fc26.i686
type:           libreport

Potential duplicate: bug 1595187

Comment 1 Ken Dreyer 2018-07-12 01:46:56 UTC
Description of problem:
Logged into XFCE and saw the denial. I even ran an /.autorelabel before this.

Version-Release number of selected component:
selinux-policy-3.13.1-283.35.fc27.noarch

Additional info:
reporter:       libreport-2.9.3
hashmarkername: setroubleshoot
kernel:         4.17.5-100.fc27.x86_64
type:           libreport

Comment 2 Patrik Moško 2018-07-18 12:36:56 UTC
Description of problem:
This problem occurs right after booting my machine.


Additional info:
reporter:       libreport-2.9.3
hashmarkername: setroubleshoot
kernel:         4.17.6-100.fc27.x86_64
type:           libreport

Comment 3 Lukas Vrabec 2018-07-24 16:20:59 UTC

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


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