Bug 1470620 - SELinux is preventing pmie_check from 'execute' accesses on the file /usr/bin/hostname.
SELinux is preventing pmie_check from 'execute' accesses on the file /usr/bin...
Status: NEW
Product: Fedora
Classification: Fedora
Component: selinux-policy (Show other bugs)
26
x86_64 Unspecified
unspecified Severity unspecified
: ---
: ---
Assigned To: Lukas Vrabec
Fedora Extras Quality Assurance
abrt_hash:f877ae86afc4f3ba41d56a5d381...
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2017-07-13 06:12 EDT by Kazuo Moriwaka
Modified: 2017-07-13 06:12 EDT (History)
7 users (show)

See Also:
Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed:
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Kazuo Moriwaka 2017-07-13 06:12:37 EDT
Description of problem:
SELinux is preventing pmie_check from 'execute' accesses on the file /usr/bin/hostname.

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

If you believe that pmie_check should be allowed execute access on the hostname 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 'pmie_check' --raw | audit2allow -M my-pmiecheck
# semodule -X 300 -i my-pmiecheck.pp

Additional Information:
Source Context                system_u:system_r:pcp_pmie_t:s0
Target Context                system_u:object_r:hostname_exec_t:s0
Target Objects                /usr/bin/hostname [ file ]
Source                        pmie_check
Source Path                   pmie_check
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           hostname-3.18-2.fc26.x86_64
Policy RPM                    selinux-policy-3.13.1-259.fc26.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 4.11.9-300.fc26.x86_64 #1 SMP Wed
                              Jul 5 16:21:56 UTC 2017 x86_64 x86_64
Alert Count                   20
First Seen                    2017-06-23 16:02:02 JST
Last Seen                     2017-07-13 18:57:22 JST
Local ID                      1666e24d-bd19-4895-80cd-9133388512d4

Raw Audit Messages
type=AVC msg=audit(1499939842.413:235): avc:  denied  { execute } for  pid=2276 comm="pmie_check" name="hostname" dev="dm-1" ino=101536461 scontext=system_u:system_r:pcp_pmie_t:s0 tcontext=system_u:object_r:hostname_exec_t:s0 tclass=file permissive=0


Hash: pmie_check,pcp_pmie_t,hostname_exec_t,file,execute

Version-Release number of selected component:
selinux-policy-3.13.1-259.fc26.noarch

Additional info:
component:      selinux-policy
reporter:       libreport-2.9.1
hashmarkername: setroubleshoot
kernel:         4.11.9-300.fc26.x86_64
type:           libreport

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