Bug 691145 - SELinux is preventing /usr/sbin/NetworkManager from 'write' accesses on the sock_file log.
Summary: SELinux is preventing /usr/sbin/NetworkManager from 'write' accesses on the s...
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 15
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: setroubleshoot_trace_hash:43f34d2a37c...
: 691146 691147 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-03-27 03:20 UTC by Horst H. von Brand
Modified: 2011-03-28 11:36 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-03-28 11:36:00 UTC
Type: ---


Attachments (Terms of Use)

Description Horst H. von Brand 2011-03-27 03:20:54 UTC
SELinux is preventing /usr/sbin/NetworkManager from 'write' accesses on the sock_file log.

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

If you believe that NetworkManager should be allowed write access on the log sock_file 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 NetworkManager /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp

Additional Information:
Source Context                system_u:system_r:NetworkManager_t:s0
Target Context                system_u:object_r:device_t:s0
Target Objects                log [ sock_file ]
Source                        NetworkManager
Source Path                   /usr/sbin/NetworkManager
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           NetworkManager-0.8.2-8.git20101117.fc15
Target RPM Packages           
Policy RPM                    selinux-policy-3.9.16-6.fc15
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 2.6.38.1-6.fc15.x86_64
                              #1 SMP Wed Mar 23 22:43:31 UTC 2011 x86_64 x86_64
Alert Count                   532
First Seen                    Fri 25 Mar 2011 08:51:51 AM CLST
Last Seen                     Sun 27 Mar 2011 12:19:19 AM CLST
Local ID                      e20d48e3-4105-4e52-a100-6821493a6d36

Raw Audit Messages
type=AVC msg=audit(1301195959.454:10908): avc:  denied  { write } for  pid=1060 comm="NetworkManager" name="log" dev=devtmpfs ino=16533 scontext=system_u:system_r:NetworkManager_t:s0 tcontext=system_u:object_r:device_t:s0 tclass=sock_file


type=SYSCALL msg=audit(1301195959.454:10908): arch=x86_64 syscall=connect success=no exit=EACCES a0=12 a1=330c1997c0 a2=6e a3=0 items=0 ppid=1 pid=1060 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: NetworkManager,NetworkManager_t,device_t,sock_file,write

audit2allow

#============= NetworkManager_t ==============
allow NetworkManager_t device_t:sock_file write;

audit2allow -R

#============= NetworkManager_t ==============
allow NetworkManager_t device_t:sock_file write;

Comment 1 Miroslav Grepl 2011-03-28 11:31:05 UTC
*** Bug 691146 has been marked as a duplicate of this bug. ***

Comment 2 Miroslav Grepl 2011-03-28 11:31:23 UTC
*** Bug 691147 has been marked as a duplicate of this bug. ***

Comment 3 Miroslav Grepl 2011-03-28 11:36:00 UTC
restorecon -R -v /dev/log

should fix.


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