Bug 1774072

Summary: SELinux is preventing systemd-tmpfile from 'getattr' accesses on the file /var/tmp/sos.qbc3h4zl/sosreport-atlantis-2019-11-12-yojbsre/etc/security/opasswd.
Product: [Fedora] Fedora Reporter: John W Smith <jazzer2007>
Component: selinux-policyAssignee: Lukas Vrabec <lvrabec>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 31CC: dwalsh, lvrabec, mgrepl, plautrba, zpytela
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:41c40e25e8451208e19353d4f5308c8769cd152c51e499b544f31dd6cf65647e;
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-11-19 15:52:33 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 John W Smith 2019-11-19 14:01:00 UTC
Description of problem:
SELinux is preventing systemd-tmpfile from 'getattr' accesses on the file /var/tmp/sos.qbc3h4zl/sosreport-atlantis-2019-11-12-yojbsre/etc/security/opasswd.

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

If you believe that systemd-tmpfile should be allowed getattr access on the opasswd file 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-tmpfile' --raw | audit2allow -M my-systemdtmpfile
# semodule -X 300 -i my-systemdtmpfile.pp

Additional Information:
Source Context                system_u:system_r:systemd_tmpfiles_t:s0
Target Context                system_u:object_r:shadow_t:s0
Target Objects                /var/tmp/sos.qbc3h4zl/sosreport-
                              atlantis-2019-11-12-yojbsre/etc/security/opasswd [
                              file ]
Source                        systemd-tmpfile
Source Path                   systemd-tmpfile
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           
Policy RPM                    selinux-policy-3.14.4-40.fc31.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Permissive
Host Name                     (removed)
Platform                      Linux (removed) 5.3.11-300.fc31.x86_64 #1 SMP Tue
                              Nov 12 19:08:07 UTC 2019 x86_64 x86_64
Alert Count                   1
First Seen                    2019-11-18 18:12:44 EST
Last Seen                     2019-11-18 18:12:44 EST
Local ID                      f787b091-2902-47cb-82a8-58e190d694e5

Raw Audit Messages
type=AVC msg=audit(1574118764.603:12956): avc:  denied  { getattr } for  pid=283896 comm="systemd-tmpfile" path="/var/tmp/sos.qbc3h4zl/sosreport-atlantis-2019-11-12-yojbsre/etc/security/opasswd" dev="dm-4" ino=105036183 scontext=system_u:system_r:systemd_tmpfiles_t:s0 tcontext=system_u:object_r:shadow_t:s0 tclass=file permissive=1


Hash: systemd-tmpfile,systemd_tmpfiles_t,shadow_t,file,getattr

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

Additional info:
component:      selinux-policy
reporter:       libreport-2.10.1
hashmarkername: setroubleshoot
kernel:         5.3.11-300.fc31.x86_64
type:           libreport

Potential duplicate: bug 1573105

Comment 1 Zdenek Pytela 2019-11-19 15:52:33 UTC

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