Bug 1737188

Summary: SELinux is preventing (modprobe) from 'read' accesses on the directory linger.
Product: [Fedora] Fedora Reporter: Mikhail <mikhail.v.gavrilov>
Component: selinux-policyAssignee: Lukas Vrabec <lvrabec>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: dwalsh, lvrabec, mgrepl, plautrba, zpytela
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:dd37a36137f131f2210b48c94ca95230d3463fe8a4ee08c842ae62ab4376eab5;VARIANT_ID=workstation;
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-08-05 14:16:08 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Mikhail 2019-08-03 16:12:43 UTC
Description of problem:
SELinux is preventing (modprobe) from 'read' accesses on the directory linger.

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

If you believe that (modprobe) should be allowed read 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                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                      f440c1b5-a58b-443f-92e9-1d2d812386dc

Raw Audit Messages
type=AVC msg=audit(1564848709.309:116): avc:  denied  { read } for  pid=1148 comm="(d-logind)" name="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,read

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:16:08 UTC

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