Bug 1558741 - SELinux is preventing systemd-sleep from module_request access on the system Unknown
Summary: SELinux is preventing systemd-sleep from module_request access on the system ...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 27
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Lukas Vrabec
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-03-20 23:00 UTC by Chris Murphy
Modified: 2018-03-27 20:13 UTC (History)
5 users (show)

Fixed In Version: selinux-policy-3.13.1-283.29.fc27
Clone Of:
Environment:
Last Closed: 2018-03-27 20:13:56 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
journal.log (500.62 KB, text/x-vhdl)
2018-03-20 23:00 UTC, Chris Murphy
no flags Details

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.


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