Skip to contentSkip to conversation

Bringing interfaces up at boot and SElinux (?)

DISCUSSION Russell Coker 1 participant 1 message Jun 11, 2005 3 messages not in the archive SELinux security module

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): [email protected]

#3 lore raw

This patch seemed to have been missed.

---------- Forwarded Message ----------

Subject: Re: Bringing interfaces up at boot and SElinux (?)
Date: Sunday 22 May 2005 23:36
From: Russell Coker <[email protected]>
To: [email protected]
Cc: Daniel J Walsh <[email protected]>

Quoted 5 lines · Daniel J Walsh
Quoted 2 lines

The error is probably from SELinux; there's a ping in /sbin/dhclient-script when it times out.

dhcpc should have the ability to ping.
domain_auto_trans(dhcpc_t, ping_exec_t, ping_t)

The problem is that ping_t is not defined in the targeted policy.

The attached patch will give dhcpc_t the access to do what it wants when
there is no ping_t domain, it will work with both targeted and strict policy (tested on targeted).

--

http://www.coker.com.au/selinux/   My NSA Security Enhanced Linux packages
http://www.coker.com.au/bonnie++/  Bonnie++ hard drive benchmark
http://www.coker.com.au/postal/    Postal SMTP/POP benchmark
http://www.coker.com.au/~russell/  My home page

-------------------------------------------------------

Signature · 4 lines
http://www.coker.com.au/selinux/   My NSA Security Enhanced Linux packages
http://www.coker.com.au/bonnie++/  Bonnie++ hard drive benchmark
http://www.coker.com.au/postal/    Postal SMTP/POP benchmark
http://www.coker.com.au/~russell/  My home page
program/dhcpc.te renamed from program/dhcpc.te.orig +3 -0
@@ -68,6 +68,9 @@
 ifdef(`cardmgr.te', `
 allow ping_t cardmgr_t:fd use;
 ') dnl end if cardmgr
+', `
+allow dhcpc_t self:capability setuid;
+allow dhcpc_t self:rawip_socket create_socket_perms;
 ') dnl end if ping
 
 ifdef(`dhcpd.te', `', `