Bug 1478885 - SELinux is preventing iptables.init from 'getattr' accesses on the file /usr/sbin/setfiles.
SELinux is preventing iptables.init from 'getattr' accesses on the file /usr/...
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:5262b2d475094fdc87622df560b...
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2017-08-07 08:41 EDT by Elias da Silva
Modified: 2017-08-07 08:41 EDT (History)
8 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 Elias da Silva 2017-08-07 08:41:52 EDT
Description of problem:
/etc/sysconfig/iptables-config:
  IPTABLES_SAVE_ON_STOP="yes"
# systemctl stop iptables
SELinux is preventing iptables.init from 'getattr' accesses on the file /usr/sbin/setfiles.

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

If sie denken, dass es iptables.init standardmäßig erlaubt sein sollte, getattr Zugriff auf setfiles file zu erhalten.
Then sie sollten dies als Fehler melden.
Um diesen Zugriff zu erlauben, können Sie ein lokales Richtlinien-Modul erstellen.
Do
allow this access for now by executing:
# ausearch -c 'iptables.init' --raw | audit2allow -M my-iptablesinit
# semodule -X 300 -i my-iptablesinit.pp

Additional Information:
Source Context                system_u:system_r:iptables_t:s0
Target Context                system_u:object_r:setfiles_exec_t:s0
Target Objects                /usr/sbin/setfiles [ file ]
Source                        iptables.init
Source Path                   iptables.init
Port                          <Unbekannt>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           policycoreutils-2.6-5.fc26.x86_64
Policy RPM                    selinux-policy-3.13.1-260.1.fc26.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 4.11.10-300.fc26.x86_64 #1 SMP Wed
                              Jul 12 17:05:39 UTC 2017 x86_64 x86_64
Alert Count                   7
First Seen                    2017-08-07 13:09:25 CEST
Last Seen                     2017-08-07 14:26:32 CEST
Local ID                      95b57d8d-dd27-4965-b056-c77b351b79c9

Raw Audit Messages
type=AVC msg=audit(1502108792.991:211): avc:  denied  { getattr } for  pid=1977 comm="iptables.init" path="/usr/sbin/setfiles" dev="dm-0" ino=142446 scontext=system_u:system_r:iptables_t:s0 tcontext=system_u:object_r:setfiles_exec_t:s0 tclass=file permissive=0


Hash: iptables.init,iptables_t,setfiles_exec_t,file,getattr

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

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

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