Bug 1737189 - SELinux is preventing (modprobe) from 'mounton' accesses on the directory /run/systemd/unit-root/var/lib/systemd/linger.
Summary: SELinux is preventing (modprobe) from 'mounton' accesses on the directory /ru...
Keywords:
Status: CLOSED DUPLICATE of bug 1734831
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:db9380087d15292e3bb9a382628...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-08-03 16:13 UTC by Mikhail
Modified: 2019-08-05 14:15 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-08-05 14:15:54 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Mikhail 2019-08-03 16:13:09 UTC
Description of problem:
SELinux is preventing (modprobe) from 'mounton' accesses on the directory /run/systemd/unit-root/var/lib/systemd/linger.

*****  Plugin restorecon (99.5 confidence) suggests   ************************

If you want to fix the label. 
/run/systemd/unit-root/var/lib/systemd/linger default label should be init_var_run_t.
Then you can run restorecon. The access attempt may have been stopped due to insufficient permissions to access a parent directory in which case try to change the following command accordingly.
Do
# /sbin/restorecon -v /run/systemd/unit-root/var/lib/systemd/linger

*****  Plugin catchall (1.49 confidence) suggests   **************************

If you believe that (modprobe) should be allowed mounton access on the linger directory 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 '(modprobe)' --raw | audit2allow -M my-modprobe
# semodule -X 300 -i my-modprobe.pp

Additional Information:
Source Context                system_u:system_r:init_t:s0
Target Context                system_u:object_r:systemd_logind_var_lib_t:s0
Target Objects                /run/systemd/unit-root/var/lib/systemd/linger [
                              dir ]
Source                        (modprobe)
Source Path                   (modprobe)
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           
Policy RPM                    selinux-policy-3.14.4-25.fc31.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Permissive
Host Name                     (removed)
Platform                      Linux (removed) 5.3.0-0.rc2.git4.1.fc31.x86_64 #1
                              SMP Fri Aug 2 13:10:34 UTC 2019 x86_64 x86_64
Alert Count                   2
First Seen                    2019-08-03 21:11:48 +05
Last Seen                     2019-08-03 21:11:49 +05
Local ID                      7b856296-98af-4778-b6e7-9b4666aaa759

Raw Audit Messages
type=AVC msg=audit(1564848709.323:118): avc:  denied  { mounton } for  pid=1148 comm="(d-logind)" path="/run/systemd/unit-root/var/lib/systemd/linger" dev="nvme0n1p2" ino=138743107 scontext=system_u:system_r:init_t:s0 tcontext=system_u:object_r:systemd_logind_var_lib_t:s0 tclass=dir permissive=1


Hash: (modprobe),init_t,systemd_logind_var_lib_t,dir,mounton

Version-Release number of selected component:
selinux-policy-3.14.4-25.fc31.noarch

Additional info:
component:      selinux-policy
reporter:       libreport-2.10.1
hashmarkername: setroubleshoot
kernel:         5.3.0-0.rc2.git4.1.fc31.x86_64
type:           libreport

Comment 1 Lukas Vrabec 2019-08-05 14:15:54 UTC

*** This bug has been marked as a duplicate of bug 1734831 ***


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