Bug 453689 - AVC when connecting with NetworkManager
AVC when connecting with NetworkManager
Status: CLOSED CURRENTRELEASE
Product: Fedora
Classification: Fedora
Component: selinux-policy (Show other bugs)
9
All Linux
low Severity low
: ---
: ---
Assigned To: Daniel Walsh
Fedora Extras Quality Assurance
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2008-07-01 19:13 EDT by Martin Nagy
Modified: 2016-07-26 19:47 EDT (History)
2 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2008-11-17 17:04:58 EST
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 Martin Nagy 2008-07-01 19:13:54 EDT
Description of problem:
I was trying to connect to the network using ifup script. Later, I tried the
NetworkManager and got these avc:

host=notas type=AVC msg=audit(1214953736.277:425): avc: denied { read } for
pid=2170 comm="NetworkManager" name="dhclient-eth0.pid" dev=dm-1 ino=86431
scontext=system_u:system_r:NetworkManager_t:s0
tcontext=unconfined_u:object_r:var_run_t:s0 tclass=file host=notas type=SYSCALL
msg=audit(1214953736.277:425): arch=40000003 syscall=5 success=no exit=-13
a0=9e6fea0 a1=8000 a2=0 a3=8000 items=0 ppid=1 pid=2170 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) 

host=notas type=AVC msg=audit(1214953736.281:426): avc: denied { read } for
pid=21362 comm="dhclient" name="dhclient-eth0.pid" dev=dm-1 ino=86431
scontext=system_u:system_r:dhcpc_t:s0
tcontext=unconfined_u:object_r:var_run_t:s0 tclass=file host=notas type=SYSCALL
msg=audit(1214953736.281:426): arch=40000003 syscall=5 success=no exit=-13
a0=bff4cea3 a1=0 a2=1b6 a3=0 items=0 ppid=21361 pid=21362 auid=4294967295 uid=0
gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295
comm="dhclient" exe="/sbin/dhclient" subj=system_u:system_r:dhcpc_t:s0 key=(null)

host=notas type=AVC msg=audit(1214953738.17:429): avc: denied { write } for
pid=21362 comm="dhclient" name="dhclient-eth0.pid" dev=dm-1 ino=86431
scontext=system_u:system_r:dhcpc_t:s0
tcontext=unconfined_u:object_r:var_run_t:s0 tclass=file host=notas type=SYSCALL
msg=audit(1214953738.17:429): arch=40000003 syscall=5 success=no exit=-13
a0=bff4cea3 a1=241 a2=1a4 a3=369f4e items=0 ppid=1 pid=21362 auid=4294967295
uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none)
ses=4294967295 comm="dhclient" exe="/sbin/dhclient"
subj=system_u:system_r:dhcpc_t:s0 key=(null) 

Version-Release number of selected component (if applicable):
NetworkManager-0.7.0-0.9.4.svn3675.fc9.i386
selinux-policy-3.3.1-72.fc9.noarch

How reproducible:


Steps to Reproduce:
1.
2.
3.
  
Actual results:


Expected results:


Additional info:
Comment 1 Daniel Walsh 2008-07-02 09:20:47 EDT
restorecon -R -v /var/run 
should fix
Comment 2 Daniel Walsh 2008-07-02 09:36:51 EDT
Fixed in selinux-policy-3.3.1-75.fc9.noarch

I fixed the policy to create the file with the proper context.
Comment 3 Daniel Walsh 2008-11-17 17:04:58 EST
Closing all bugs that have been in modified for over a month.  Please reopen if the bug is not actually fixed.

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