Bug 704762 - SELinux is preventing /sbin/dhclient from 'write' accesses on the plik /var/run/dhclient-eth0.pid.
Summary: SELinux is preventing /sbin/dhclient from 'write' accesses on the plik /var/r...
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 14
Hardware: i386
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: setroubleshoot_trace_hash:6a597409ce6...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-05-14 18:39 UTC by emanmc
Modified: 2011-05-30 13:30 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-05-16 07:25:11 UTC
Type: ---


Attachments (Terms of Use)

Description emanmc 2011-05-14 18:39:34 UTC
SELinux is preventing /sbin/dhclient from 'write' accesses on the plik /var/run/dhclient-eth0.pid.

*****  Plugin restorecon (99.5 confidence) suggests  *************************

If aby naprawić etykietę. 
domyślna etykieta /var/run/dhclient-eth0.pid powinna wynosić dhcpc_var_run_t.
Then można wykonać polecenie restorecon.
Do
# /sbin/restorecon -v /var/run/dhclient-eth0.pid

*****  Plugin catchall (1.49 confidence) suggests  ***************************

If aby dhclient powinno mieć domyślnie write dostęp do dhclient-eth0.pid file.
Then proszę to zgłosić jako błąd.
Można utworzyć lokalny moduł polityki, aby umożliwić ten dostęp.
Do
można tymczasowo zezwolić na ten dostęp wykonując polecenia:
# grep dhclient /var/log/audit/audit.log | audit2allow -M moja_polityka
# semodule -i moja_polityka.pp

Additional Information:
Source Context                system_u:system_r:dhcpc_t:s0
Target Context                system_u:object_r:virt_var_run_t:s0
Target Objects                /var/run/dhclient-eth0.pid [ file ]
Source                        dhclient
Source Path                   /sbin/dhclient
Port                          <Nieznane>
Host                          (removed)
Source RPM Packages           dhclient-4.2.0-21.P2.fc14
Target RPM Packages           
Policy RPM                    selinux-policy-3.9.7-40.fc14
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 2.6.35.13-91.fc14.i686 #1 SMP Tue May 3
                              13:36:36 UTC 2011 i686 i686
Alert Count                   6
First Seen                    sob, 14 maj 2011, 20:37:07
Last Seen                     sob, 14 maj 2011, 20:38:57
Local ID                      f841af99-7c5f-4777-baf8-cc43c46c8750

Raw Audit Messages
type=AVC msg=audit(1305398337.815:156): avc:  denied  { write } for  pid=7969 comm="dhclient" name="dhclient-eth0.pid" dev=dm-3 ino=391611 scontext=system_u:system_r:dhcpc_t:s0 tcontext=system_u:object_r:virt_var_run_t:s0 tclass=file


type=SYSCALL msg=audit(1305398337.815:156): arch=i386 syscall=open success=no exit=EACCES a0=bff77e5b a1=80241 a2=1a4 a3=ebf310 items=0 ppid=1310 pid=7969 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)

Hash: dhclient,dhcpc_t,virt_var_run_t,file,write

audit2allow

#============= dhcpc_t ==============
allow dhcpc_t virt_var_run_t:file write;

audit2allow -R

#============= dhcpc_t ==============
allow dhcpc_t virt_var_run_t:file write;

Comment 1 Miroslav Grepl 2011-05-16 07:25:11 UTC
*****  Plugin restorecon (99.5 confidence) suggests  *************************

If aby naprawić etykietę. 
domyślna etykieta /var/run/dhclient-eth0.pid powinna wynosić dhcpc_var_run_t.
Then można wykonać polecenie restorecon.
Do
# /sbin/restorecon -v /var/run/dhclient-eth0.pid


The command will fix the label. Please reopen if this happen again.


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