Bug 1398277

Summary: SELinux is preventing udev-configure- from using the 'wake_alarm' capabilities.
Product: [Fedora] Fedora Reporter: kakoskin
Component: selinux-policyAssignee: Lukas Vrabec <lvrabec>
Status: CLOSED EOL QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 25CC: artemio.silva, blackpearl, damian.kostyra, dominick.grift, dwalsh, frol.onn, info, lvrabec, mgrepl, nospam, plautrba, pmoore, ssekidde
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:23b5f21867dabf780deb4378531d07725988aa60f74f8438c943e50419fcb9b7;
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-12-12 10:22:09 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 kakoskin 2016-11-24 11:31:29 UTC
Description of problem:
I was testing setting up a HP printer. I had ran and closed HP-systray. After plugging printer in and unplugging it I got this denial.
SELinux is preventing udev-configure- from using the 'wake_alarm' capabilities.

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

If you believe that udev-configure- should have the wake_alarm capability 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:
# ausearch -c 'udev-configure-' --raw | audit2allow -M my-udevconfigure
# semodule -X 300 -i my-udevconfigure.pp

Additional Information:
Source Context                system_u:system_r:cupsd_config_t:s0
Target Context                system_u:system_r:cupsd_config_t:s0
Target Objects                Unknown [ capability2 ]
Source                        udev-configure-
Source Path                   udev-configure-
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           
Policy RPM                    selinux-policy-3.13.1-224.fc25.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 4.8.8-300.fc25.x86_64 #1 SMP Tue
                              Nov 15 18:10:06 UTC 2016 x86_64 x86_64
Alert Count                   28
First Seen                    2016-11-08 15:10:26 EET
Last Seen                     2016-11-24 13:22:16 EET
Local ID                      f8cb481e-2543-44c8-af6e-72cf14d0d1c0

Raw Audit Messages
type=AVC msg=audit(1479986536.577:232): avc:  denied  { wake_alarm } for  pid=2598 comm="udev-configure-" capability=35  scontext=system_u:system_r:cupsd_config_t:s0 tcontext=system_u:system_r:cupsd_config_t:s0 tclass=capability2 permissive=0


Hash: udev-configure-,cupsd_config_t,cupsd_config_t,capability2,wake_alarm

Version-Release number of selected component:
selinux-policy-3.13.1-224.fc25.noarch

Additional info:
reporter:       libreport-2.8.0
hashmarkername: setroubleshoot
kernel:         4.8.8-300.fc25.x86_64
type:           libreport

Comment 1 kakoskin 2016-11-25 07:25:23 UTC
Description of problem:
I ran command hp-probe with hp printer connected while debugging bug https://bugzilla.redhat.com/show_bug.cgi?id=1398291.

Version-Release number of selected component:
selinux-policy-3.13.1-224.fc25.noarch

Additional info:
reporter:       libreport-2.8.0
hashmarkername: setroubleshoot
kernel:         4.8.10-300.fc25.x86_64
type:           libreport

Comment 2 Henry Kroll 2017-01-28 23:07:05 UTC
Confirmed: selinux-policy-3.13.1-225.6.fc25
kernel: 4.9.4-201.fc25.x86_64

Comment 3 Artemio 2017-03-02 22:47:13 UTC
*** Bug 1428599 has been marked as a duplicate of this bug. ***

Comment 4 Damian Kostyra 2017-03-12 14:35:43 UTC
Description of problem:
Logowanie z innego komputera w lokalnej sieci

Version-Release number of selected component:
selinux-policy-3.13.1-225.11.fc25.noarch

Additional info:
reporter:       libreport-2.8.0
hashmarkername: setroubleshoot
kernel:         4.9.13-200.fc25.i686
type:           libreport

Comment 5 Johnson 2017-03-20 09:09:47 UTC
Description of problem:
The selinux alert popped up when I ran the hp-setup command.

Version-Release number of selected component:
selinux-policy-3.13.1-225.11.fc25.noarch

Additional info:
reporter:       libreport-2.8.0
hashmarkername: setroubleshoot
kernel:         4.9.14-200.fc25.x86_64
type:           libreport

Comment 6 Johnson 2017-03-23 13:02:07 UTC
Description of problem:
Happens while trying to detect a usb conected printer by hplip.

Version-Release number of selected component:
selinux-policy-3.13.1-225.11.fc25.noarch

Additional info:
reporter:       libreport-2.8.0
hashmarkername: setroubleshoot
kernel:         4.9.14-200.fc25.x86_64
type:           libreport

Comment 7 Johnson 2017-03-23 15:34:23 UTC
Description of problem:
Happens when I switch on usb printer (hp1020 plus)

Version-Release number of selected component:
selinux-policy-3.13.1-225.11.fc25.noarch

Additional info:
reporter:       libreport-2.8.0
hashmarkername: setroubleshoot
kernel:         4.9.14-200.fc25.x86_64
type:           libreport

Comment 8 FroL_Onn 2017-04-21 07:07:17 UTC
Have the same problem with HP LaserJet 1020.

Any fixes or workarounds?

Comment 9 Fedora End Of Life 2017-11-16 18:40:37 UTC
This message is a reminder that Fedora 25 is nearing its end of life.
Approximately 4 (four) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 25. It is Fedora's policy to close all
bug reports from releases that are no longer maintained. At that time
this bug will be closed as EOL if it remains open with a Fedora  'version'
of '25'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version'
to a later Fedora version.

Thank you for reporting this issue and we are sorry that we were not
able to fix it before Fedora 25 is end of life. If you would still like
to see this bug fixed and are able to reproduce it against a later version
of Fedora, you are encouraged  change the 'version' to a later Fedora
version prior this bug is closed as described in the policy above.

Although we aim to fix as many bugs as possible during every release's
lifetime, sometimes those efforts are overtaken by events. Often a
more recent Fedora release includes newer upstream software that fixes
bugs or makes them obsolete.

Comment 10 Fedora End Of Life 2017-12-12 10:22:09 UTC
Fedora 25 changed to end-of-life (EOL) status on 2017-12-12. Fedora 25 is
no longer maintained, which means that it will not receive any further
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of
Fedora please feel free to reopen this bug against that version. If you
are unable to reopen this bug, please file a new report against the
current release. If you experience problems, please add a comment to this
bug.

Thank you for reporting this bug and we are sorry it could not be fixed.