Bug 1774072 - SELinux is preventing systemd-tmpfile from 'getattr' accesses on the file /var/tmp/sos.qbc3h4zl/sosreport-atlantis-2019-11-12-yojbsre/etc/security/opasswd.
Summary: SELinux is preventing systemd-tmpfile from 'getattr' accesses on the file /va...
Keywords:
Status: CLOSED DUPLICATE of bug 1772976
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 31
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Lukas Vrabec
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:41c40e25e8451208e19353d4f53...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-11-19 14:01 UTC by John W Smith
Modified: 2019-11-19 15:52 UTC (History)
5 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2019-11-19 15:52:33 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

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 ***


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