Bug 1777422 - SELinux is preventing systemd from using the 'setsched' accesses on a process.
Summary: SELinux is preventing systemd from using the 'setsched' accesses on a process.
Keywords:
Status: CLOSED INSUFFICIENT_DATA
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: rawhide
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Lukas Vrabec
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:9a98407eecb48fa7206ff789066...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-11-27 15:25 UTC by Mikhail
Modified: 2019-11-27 18:42 UTC (History)
5 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2019-11-27 18:42:54 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Mikhail 2019-11-27 15:25:24 UTC
Description of problem:
SELinux is preventing systemd from using the 'setsched' accesses on a process.

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

If you believe that systemd should be allowed setsched access on processes labeled virtd_t 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' --raw | audit2allow -M my-systemd
# semodule -X 300 -i my-systemd.pp

Additional Information:
Source Context                system_u:system_r:init_t:s0
Target Context                system_u:system_r:virtd_t:s0-s0:c0.c1023
Target Objects                Unknown [ process ]
Source                        systemd
Source Path                   systemd
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           
Policy RPM                    selinux-policy-3.14.5-16.fc32.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Permissive
Host Name                     (removed)
Platform                      Linux (removed) 5.4.0-2.fc32.x86_64 #1 SMP Mon Nov
                              25 22:45:19 UTC 2019 x86_64 x86_64
Alert Count                   2
First Seen                    2019-11-27 08:34:35 +05
Last Seen                     2019-11-27 08:40:33 +05
Local ID                      14ca5970-e46d-4ba3-b9bb-c2bd0488554d

Raw Audit Messages
type=AVC msg=audit(1574826033.955:506): avc:  denied  { setsched } for  pid=1 comm="systemd" scontext=system_u:system_r:init_t:s0 tcontext=system_u:system_r:virtd_t:s0-s0:c0.c1023 tclass=process permissive=1


Hash: systemd,init_t,virtd_t,process,setsched

Version-Release number of selected component:
selinux-policy-3.14.5-16.fc32.noarch

Additional info:
component:      selinux-policy
reporter:       libreport-2.11.3
hashmarkername: setroubleshoot
kernel:         5.4.0-2.fc32.x86_64
type:           libreport


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