Bug 1391467

Summary: SELinux is preventing openct-control from using the 'wake_alarm' capabilities.
Product: [Fedora] Fedora Reporter: Laurent Rineau <laurent.rineau__fedora>
Component: selinux-policyAssignee: Lukas Vrabec <lvrabec>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 24CC: dominick.grift, dwalsh, lvrabec, mgrepl, plautrba, pmoore, ssekidde
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:a82576d000a67d75d4c0dba82293c15d4092a8889eb1d1ebaf606972314118f2;
Fixed In Version: selinux-policy-3.13.1-191.21.fc24 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-11-19 17:24:29 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-11-03 11:48:45 UTC
Description of problem:
The AVC occured at boot. Problably after an upgrade of the system.
SELinux is preventing openct-control from using the 'wake_alarm' capabilities.

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

If you believe that openct-control 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 'openct-control' --raw | audit2allow -M my-openctcontrol
# semodule -X 300 -i my-openctcontrol.pp

Additional Information:
Source Context                system_u:system_r:openct_t:s0
Target Context                system_u:system_r:openct_t:s0
Target Objects                Unknown [ capability2 ]
Source                        openct-control
Source Path                   openct-control
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           
Policy RPM                    selinux-policy-3.13.1-191.19.fc24.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 4.8.4-200.fc24.x86_64 #1 SMP Tue
                              Oct 25 13:06:04 UTC 2016 x86_64 x86_64
Alert Count                   1
First Seen                    2016-11-03 12:22:14 CET
Last Seen                     2016-11-03 12:22:14 CET
Local ID                      7c5a02fc-c7ca-4f95-bad3-9ba8f85b4f2d

Raw Audit Messages
type=AVC msg=audit(1478172134.437:134): avc:  denied  { wake_alarm } for  pid=1627 comm="openct-control" capability=35  scontext=system_u:system_r:openct_t:s0 tcontext=system_u:system_r:openct_t:s0 tclass=capability2 permissive=0


Hash: openct-control,openct_t,openct_t,capability2,wake_alarm

Version-Release number of selected component:
selinux-policy-3.13.1-191.19.fc24.noarch

Additional info:
reporter:       libreport-2.7.2
hashmarkername: setroubleshoot
kernel:         4.8.4-200.fc24.x86_64
type:           libreport

Comment 1 Laurent Rineau 2016-11-03 11:50:11 UTC
Probably due to a kernel update, from kernel-4.7.9-200.fc24.x86_64 to kernel-4.8.4-200.fc24.x86_64.

Comment 2 Fedora Update System 2016-11-09 16:31:55 UTC
selinux-policy-3.13.1-191.21.fc24 has been submitted as an update to Fedora 24. https://bodhi.fedoraproject.org/updates/FEDORA-2016-abb3ede5d5

Comment 3 Fedora Update System 2016-11-11 05:01:25 UTC
selinux-policy-3.13.1-191.21.fc24 has been pushed to the Fedora 24 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-abb3ede5d5

Comment 4 Fedora Update System 2016-11-19 17:24:29 UTC
selinux-policy-3.13.1-191.21.fc24 has been pushed to the Fedora 24 stable repository. If problems still persist, please make note of it in this bug report.