Hide Forgot
SELinux is preventing dhclient-script from 'getattr' accesses on the file /bin/systemctl. ***** Plugin catchall (100. confidence) suggests *************************** If you believe that dhclient-script should be allowed getattr access on the systemctl 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 dhclient-script /var/log/audit/audit.log | audit2allow -M mypol # semodule -i mypol.pp Additional Information: Source Context system_u:system_r:dhcpc_t:s0 Target Context system_u:object_r:systemd_systemctl_exec_t:s0 Target Objects /bin/systemctl [ file ] Source dhclient-script Source Path dhclient-script Port <Unknown> Host (removed) Source RPM Packages Target RPM Packages systemd-units-24-1.fc15 Policy RPM selinux-policy-3.9.16-15.fc15 Selinux Enabled True Policy Type targeted Enforcing Mode Enforcing Host Name (removed) Platform Linux (removed) 2.6.38.2-9.fc15.i686 #1 SMP Wed Mar 30 16:54:01 UTC 2011 i686 i686 Alert Count 1 First Seen Fri 22 Apr 2011 07:50:30 PM PDT Last Seen Fri 22 Apr 2011 07:50:30 PM PDT Local ID c4e50d68-d049-4c79-b78d-2658d6462b44 Raw Audit Messages type=AVC msg=audit(1303527030.409:263): avc: denied { getattr } for pid=6780 comm="dhclient-script" path="/bin/systemctl" dev=sda2 ino=18464 scontext=system_u:system_r:dhcpc_t:s0 tcontext=system_u:object_r:systemd_systemctl_exec_t:s0 tclass=file Hash: dhclient-script,dhcpc_t,systemd_systemctl_exec_t,file,getattr audit2allow #============= dhcpc_t ============== allow dhcpc_t systemd_systemctl_exec_t:file getattr; audit2allow -R #============= dhcpc_t ============== allow dhcpc_t systemd_systemctl_exec_t:file getattr;
Any idea what it is doing with this program?
Miroslav we probably need to add systemd_exec_systemctl(dhcpc_t)
Yes, it looks so.
*** This bug has been marked as a duplicate of bug 699533 ***