Bug 473449 - selinux denies NetworkManager access to /dev/ppp
Summary: selinux denies NetworkManager access to /dev/ppp
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 10
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Daniel Walsh
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2008-11-28 15:53 UTC by Jurgen Kramer
Modified: 2008-12-05 16:14 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2008-12-05 16:14:02 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
generated sealert message (2.78 KB, text/plain)
2008-11-28 15:53 UTC, Jurgen Kramer
no flags Details

Description Jurgen Kramer 2008-11-28 15:53:32 UTC
Created attachment 325020 [details]
generated sealert message

Description of problem:
When trying to use the mobile connection from NM a selinux denial messages is generated.

Version-Release number of selected component (if applicable):
selinux-policy-3.5.13-18
selinux-policy-targeted-3.5.13-18

How reproducible:
always

Steps to Reproduce:
1. Select autoconfigured mobile connection in NM
2. 
3.
  
Actual results:
selinux denial generated, no connection

Expected results:
working connection

Additional info:

Comment 1 Karsten Wade 2008-12-01 14:36:16 UTC
I'm having the same problem, and in addition, my entire console locks just at the moment the setroubleshootd throws up the alert.  I was able to dig out these AVC denials from /var/log/audit/audit.log:

type=AVC msg=audit(1228085098.916:45): avc:  denied  { getattr } for  pid=2365 comm="NetworkManager" path="/
dev/ppp" dev=tmpfs ino=2272 scontext=system_u:system_r:NetworkManager_t:s0 tcontext=system_u:object_r:ppp_de
vice_t:s0 tclass=chr_file
type=SYSCALL msg=audit(1228085098.916:45): arch=40000003 syscall=195 success=no exit=-13 a0=80a7595 a1=bfb16
fc4 a2=489ff4 a3=80805e0 items=0 ppid=1 pid=2365 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sg
id=0 fsgid=0 tty=(none) ses=4294967295 comm="NetworkManager" exe="/usr/sbin/NetworkManager" subj=system_u:sy
stem_r:NetworkManager_t:s0 key=(null)

Comment 2 Daniel Walsh 2008-12-01 20:30:13 UTC
You can allow this for now.

# audit2allow -M mypol -l -i /var/log/audit/audit.log
# semodule -i mypol.pp

Fixed in selinux-policy-3.5.13-27.fc10

Comment 3 Jurgen Kramer 2008-12-05 16:14:02 UTC
Verified that the new policy fixes the selinux denails


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