| Summary: | SELinux is preventing /usr/bin/python from 'write' accesses on the None /etc/sysconfig/system-config-firewall.old. | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | dkfedorabugs |
| Component: | selinux-policy | Assignee: | Miroslav Grepl <mgrepl> |
| Status: | CLOSED NOTABUG | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 16 | CC: | dominick.grift, dwalsh, Lcstyle, mgrepl, twoerner, uckelman |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | x86_64 | ||
| OS: | Unspecified | ||
| Whiteboard: | abrt_hash:e36fce3bff4e9c2375007b4c16db2b711bda8cd039169cf259872e692ab0ffed | ||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2012-03-15 16:38:51 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
Why is this gui app trying to write to /etc? This is what s-c-f does: files_manage_system_conf_files(firewallgui_t) files_etc_filetrans_system_conf(firewallgui_t) But the problem is that the "system-config-firewall.old" file was created with bad label. Thomas, how is "/etc/sysconfig/system-config-firewall.old" created? Actually, I would say that /etc/sysconfig/system-config-firewall is mislabeled and this is reason why also *.old is mislabeled. Reporter, what does $ ls -Z /etc/sysconfig/system-config-firewall The D-BUS backend does, not the GUI. But the GUI is using the D-BUS backend. Reassigning to selinux-policy. /etc/sysconfig/system-config-firewall.old is a copy of /etc/sysconfig/system-config-firewall Yeap, I thought it. I think this will not happen again and this is an labeling issue. $ restorecon -R -v /etc/sysconfig/system-config-firewall* should fix this issue. Sorry but it didn't fix it. ok what does $ ls -Z /etc/sysconfig/system-config-firewall* |
libreport version: 2.0.8 executable: /usr/bin/python hashmarkername: setroubleshoot kernel: 3.2.3-2.fc16.x86_64 reason: SELinux is preventing /usr/bin/python from 'write' accesses on the None /etc/sysconfig/system-config-firewall.old. time: Wed 08 Feb 2012 10:10:06 PM MYT description: :SELinux is preventing /usr/bin/python from 'write' accesses on the None /etc/sysconfig/system-config-firewall.old. : :***** Plugin catchall (100. confidence) suggests *************************** : :If you believe that python should be allowed write access on the system-config-firewall.old <Unknown> 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: :# grep system-config-f /var/log/audit/audit.log | audit2allow -M mypol :# semodule -i mypol.pp : :Additional Information: :Source Context system_u:system_r:firewallgui_t:s0-s0:c0.c1023 :Target Context unconfined_u:object_r:etc_t:s0 :Target Objects /etc/sysconfig/system-config-firewall.old [ None ] :Source system-config-f :Source Path /usr/bin/python :Port <Unknown> :Host (removed) :Source RPM Packages python-2.7.2-5.2.fc16.x86_64 :Target RPM Packages :Policy RPM selinux-policy-3.10.0-75.fc16.noarch :Selinux Enabled True :Policy Type targeted :Enforcing Mode Enforcing :Host Name (removed) :Platform Linux (removed) 3.2.3-2.fc16.x86_64 #1 : SMP Fri Feb 3 20:08:08 UTC 2012 x86_64 x86_64 :Alert Count 4 :First Seen Wed 08 Feb 2012 10:06:02 PM MYT :Last Seen Wed 08 Feb 2012 10:08:47 PM MYT :Local ID e6ca8ec0-f2aa-4278-82b0-023b00eed4eb : :Raw Audit Messages :type=AVC msg=audit(1328710127.614:212): avc: denied { write } for pid=18631 comm="system-config-f" name="system-config-firewall.old" dev=dm-1 ino=4457955 scontext=system_u:system_r:firewallgui_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:etc_t:s0 tclass=filenode=(removed) type=SYSCALL msg=audit(1328710127.614:212): arch=c000003e syscall=2 success=no exit=-13 a0=1fa0a50 a1=241 a2=1b6 a3=238 items=0 ppid=1 pid=18631 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm="system-config-f" exe="/usr/bin/python" subj=system_u:system_r:firewallgui_t:s0-s0:c0.c1023 key=(null) : : :Hash: system-config-f,firewallgui_t,etc_t,None,write : :audit2allow : : :audit2allow -R : :