Note: This is a beta release of Red Hat Bugzilla 5.0. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Also email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback here.
Bug 1687297 - SELinux is preventing ps from 'getattr' accesses on the file /usr/libexec/postfix/post-install.
Summary: SELinux is preventing ps from 'getattr' accesses on the file /usr/libexec/pos...
Status: NEW
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 29
Hardware: x86_64
OS: Unspecified
Target Milestone: ---
Assignee: Lukas Vrabec
QA Contact: Fedora Extras Quality Assurance
Whiteboard: abrt_hash:f7557a6a3db17c197b826e12c56...
Depends On:
TreeView+ depends on / blocked
Reported: 2019-03-11 08:45 UTC by Kees de Jong
Modified: 2019-03-11 09:59 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Last Closed:

Attachments (Terms of Use)

Description Kees de Jong 2019-03-11 08:45:42 UTC
Description of problem:
Updated from postfix-2:3.3.1-5.fc29.x86_64 to postfix-2:3.3.3-1.fc29.x86_64. This triggered this SELinux alert. Not sure if critical or not, but I thought it's best to report it.
SELinux is preventing ps from 'getattr' accesses on the file /usr/libexec/postfix/post-install.

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

If you believe that ps should be allowed getattr access on the post-install file by default.
Then you should report this as a bug.
You can generate a local policy module to allow this access.
allow this access for now by executing:
# ausearch -c 'ps' --raw | audit2allow -M my-ps
# semodule -X 300 -i my-ps.pp

Additional Information:
Source Context                system_u:system_r:psad_t:s0
Target Context                system_u:object_r:postfix_exec_t:s0
Target Objects                /usr/libexec/postfix/post-install [ file ]
Source                        ps
Source Path                   ps
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           postfix-3.3.1-5.fc29.x86_64
Policy RPM                    selinux-policy-3.14.2-49.fc29.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 4.20.13-200.fc29.x86_64 #1 SMP Wed
                              Feb 27 19:42:55 UTC 2019 x86_64 x86_64
Alert Count                   2
First Seen                    2019-03-11 09:37:49 CET
Last Seen                     2019-03-11 09:37:49 CET
Local ID                      adc1a1c7-c130-447a-b670-afb319e70ed5

Raw Audit Messages
type=AVC msg=audit(1552293469.40:272): avc:  denied  { getattr } for  pid=23394 comm="ps" path="/usr/libexec/postfix/post-install" dev="dm-2" ino=305318 scontext=system_u:system_r:psad_t:s0 tcontext=system_u:object_r:postfix_exec_t:s0 tclass=file permissive=0

Hash: ps,psad_t,postfix_exec_t,file,getattr

Version-Release number of selected component:

Additional info:
component:      selinux-policy
reporter:       libreport-2.10.0
hashmarkername: setroubleshoot
kernel:         4.20.13-200.fc29.x86_64
type:           libreport

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