Bug 551280 - SELinux is preventing /usr/sbin/NetworkManager "unlink" access on resolv.conf.
Summary: SELinux is preventing /usr/sbin/NetworkManager "unlink" access on resolv.conf.
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 12
Hardware: i386
OS: Linux
low
medium
Target Milestone: ---
Assignee: Daniel Walsh
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: setroubleshoot_trace_hash:5e8cc73e402...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-12-29 19:39 UTC by Rodrigo Otávio Abreu França
Modified: 2010-01-08 20:43 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2010-01-08 20:12:09 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Rodrigo Otávio Abreu França 2009-12-29 19:39:23 UTC
Sumário:

SELinux is preventing /usr/sbin/NetworkManager "unlink" access on resolv.conf.

Descrição detalhada:

[SElinux está em modo permissivo. Esse acesso não foi negado.]

SELinux denied access requested by NetworkManager. It is not expected that this
access is required by NetworkManager and this access may signal an intrusion
attempt. It is also possible that the specific version or configuration of the
application is causing it to require additional access.

Permitindo acesso:

You can generate a local policy module to allow this access - see FAQ
(http://fedora.redhat.com/docs/selinux-faq-fc5/#id2961385) Please file a bug
report.

Informações adicionais:

Contexto de origem            system_u:system_r:NetworkManager_t:s0
Contexto de destino           system_u:object_r:pppd_var_run_t:s0
Objetos de destino            resolv.conf [ file ]
Origem                        NetworkManager
Caminho da origem             /usr/sbin/NetworkManager
Porta                         <Desconhecido>
Máquina                      (removed)
Pacotes RPM de origem         NetworkManager-0.7.996-7.git20091113.fc12
Pacotes RPM de destino        
RPM da política              selinux-policy-3.6.32-59.fc12
Selinux habilitado            True
Tipo de política             targeted
Modo reforçado               Permissive
Nome do plugin                catchall
Nome da máquina              (removed)
Plataforma                    Linux (removed) 2.6.31.9-174.fc12.i686.PAE #1 SMP
                              Mon Dec 21 06:04:56 UTC 2009 i686 athlon
Contador de alertas           1
Visto pela primeira vez em    Ter 29 Dez 2009 11:06:03 BRST
Visto pela última vez em     Ter 29 Dez 2009 11:06:03 BRST
ID local                      6ee4db28-0ce6-4aca-b95f-a4191f1393d3
Números de linha             

Mensagens de auditoria não p 

node=(removed) type=AVC msg=audit(1262091963.148:21779): avc:  denied  { unlink } for  pid=1096 comm="NetworkManager" name="resolv.conf" dev=sda5 ino=177 scontext=system_u:system_r:NetworkManager_t:s0 tcontext=system_u:object_r:pppd_var_run_t:s0 tclass=file

node=(removed) type=SYSCALL msg=audit(1262091963.148:21779): arch=40000003 syscall=38 success=yes exit=0 a0=8810118 a1=8833800 a2=80d9bb8 a3=8833800 items=0 ppid=1 pid=1096 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm="NetworkManager" exe="/usr/sbin/NetworkManager" subj=system_u:system_r:NetworkManager_t:s0 key=(null)



Hash String generated from  selinux-policy-3.6.32-59.fc12,catchall,NetworkManager,NetworkManager_t,pppd_var_run_t,file,unlink
audit2allow suggests:
audit2allow is not installed.

Comment 1 Daniel Walsh 2009-12-29 21:27:07 UTC
You can add these rules for now using

# grep avc /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp

Fixed in selinux-policy-3.6.32-65.fc12.noarch

Comment 2 Fedora Update System 2010-01-04 21:55:39 UTC
selinux-policy-3.6.32-66.fc12 has been submitted as an update for Fedora 12.
http://admin.fedoraproject.org/updates/selinux-policy-3.6.32-66.fc12

Comment 3 Fedora Update System 2010-01-05 22:51:43 UTC
selinux-policy-3.6.32-66.fc12 has been pushed to the Fedora 12 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update selinux-policy'.  You can provide feedback for this update here: http://admin.fedoraproject.org/updates/F12/FEDORA-2010-0184

Comment 4 Rodrigo Otávio Abreu França 2010-01-06 17:06:07 UTC
I effected the update of " selinux-policy-3.6.32-66.fc12" , I will be testing and reporting if my problem it was decided.

Comment 5 Fedora Update System 2010-01-08 20:06:28 UTC
selinux-policy-3.6.32-66.fc12 has been pushed to the Fedora 12 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 6 Rodrigo Otávio Abreu França 2010-01-08 20:12:59 UTC
The problem is resolved.


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