Bug 1558741

Summary: SELinux is preventing systemd-sleep from module_request access on the system Unknown
Product: [Fedora] Fedora Reporter: Chris Murphy <bugzilla>
Component: selinux-policyAssignee: Lukas Vrabec <lvrabec>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 27CC: dwalsh, lvrabec, mgrepl, plautrba, pmoore
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: selinux-policy-3.13.1-283.29.fc27 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-03-27 20:13:56 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
journal.log none

Description Chris Murphy 2018-03-20 23:00:34 UTC
Created attachment 1410910 [details]
journal.log

Right after the -28 policy was installed, I did restorecon -rv / but I still get this AVC, looks like it's one of two that pop up everytime the system wakes from suspend to ram.



SELinux is preventing systemd-sleep from module_request access on the system Unknown.

*****  Plugin catchall_boolean (89.3 confidence) suggests   ******************

If you want to allow domain to kernel load modules
Then you must tell SELinux about this by enabling the 'domain_kernel_load_modules' boolean.

Do
setsebool -P domain_kernel_load_modules 1

*****  Plugin catchall (11.6 confidence) suggests   **************************

If you believe that systemd-sleep should be allowed module_request access on the Unknown system 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 'systemd-sleep' --raw | audit2allow -M my-systemdsleep
# semodule -X 300 -i my-systemdsleep.pp

Additional Information:
Source Context                system_u:system_r:init_t:s0
Target Context                system_u:system_r:kernel_t:s0
Target Objects                Unknown [ system ]
Source                        systemd-sleep
Source Path                   systemd-sleep
Port                          <Unknown>
Host                          f27h.localdomain
Source RPM Packages           
Target RPM Packages           
Policy RPM                    selinux-policy-3.13.1-283.28.fc27.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     f27h.localdomain
Platform                      Linux f27h.localdomain
                              4.16.0-0.rc5.git3.1.fc29.x86_64+debug #1 SMP Fri
                              Mar 16 15:10:36 UTC 2018 x86_64 x86_64
Alert Count                   7
First Seen                    2018-03-19 21:45:05 MDT
Last Seen                     2018-03-20 10:59:46 MDT
Local ID                      5b55af82-428d-4b7c-8840-ce23096c6b42

Raw Audit Messages
type=AVC msg=audit(1521565186.378:445): avc:  denied  { module_request } for  pid=7042 comm="(systemd)" kmod=6E65746465762D6080ECE2BB55 scontext=system_u:system_r:init_t:s0 tcontext=system_u:system_r:kernel_t:s0 tclass=system permissive=0


Hash: systemd-sleep,init_t,kernel_t,system,module_request

Comment 1 Fedora Update System 2018-03-25 13:13:26 UTC
selinux-policy-3.13.1-283.29.fc27 has been submitted as an update to Fedora 27. https://bodhi.fedoraproject.org/updates/FEDORA-2018-ad9976b6a2

Comment 2 Fedora Update System 2018-03-25 22:41:50 UTC
selinux-policy-3.13.1-283.29.fc27 has been pushed to the Fedora 27 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-2018-ad9976b6a2

Comment 3 Fedora Update System 2018-03-27 20:13:56 UTC
selinux-policy-3.13.1-283.29.fc27 has been pushed to the Fedora 27 stable repository. If problems still persist, please make note of it in this bug report.