All of lore.kernel.org
 help / color / mirror / Atom feed
* [refpolicy] Let dhcp use init fds
@ 2008-06-25 16:51 Martin Orr
  2008-07-18 14:32 ` Christopher J. PeBenito
  0 siblings, 1 reply; 3+ messages in thread
From: Martin Orr @ 2008-06-25 16:51 UTC (permalink / raw)
  To: SELinux List, Christopher J. PeBenito

Without this patch, I see no output from dhclient when it is run during boot.
There is no avc message because it is dontaudited in init_daemon_domain.

Index: policy/modules/system/sysnetwork.te
===================================================================
--- policy/modules/system/sysnetwork.te.orig
+++ policy/modules/system/sysnetwork.te
@@ -126,6 +126,7 @@
 files_dontaudit_search_locks(dhcpc_t)

 init_rw_utmp(dhcpc_t)
+init_use_fds(dhcpc_t)

 logging_send_syslog_msg(dhcpc_t)


-- 
Martin Orr

--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to majordomo@tycho.nsa.gov with
the words "unsubscribe selinux" without quotes as the message.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [refpolicy] Let dhcp use init fds
  2008-06-25 16:51 [refpolicy] Let dhcp use init fds Martin Orr
@ 2008-07-18 14:32 ` Christopher J. PeBenito
  2008-08-07 17:01   ` Martin Orr
  0 siblings, 1 reply; 3+ messages in thread
From: Christopher J. PeBenito @ 2008-07-18 14:32 UTC (permalink / raw)
  To: Martin Orr; +Cc: SELinux List

On Wed, 2008-06-25 at 17:51 +0100, Martin Orr wrote:
> Without this patch, I see no output from dhclient when it is run during boot.
> There is no avc message because it is dontaudited in init_daemon_domain.
> 
> Index: policy/modules/system/sysnetwork.te
> ===================================================================
> --- policy/modules/system/sysnetwork.te.orig
> +++ policy/modules/system/sysnetwork.te
> @@ -126,6 +126,7 @@
>  files_dontaudit_search_locks(dhcpc_t)
> 
>  init_rw_utmp(dhcpc_t)
> +init_use_fds(dhcpc_t)
> 
>  logging_send_syslog_msg(dhcpc_t)

I would think that allowing it to write to the console would be required
to make this work too.  If thats the case I'm not sure we want it; I
don't think we want daemons writing to the console.

-- 
Chris PeBenito
Tresys Technology, LLC
(410) 290-1411 x150


--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to majordomo@tycho.nsa.gov with
the words "unsubscribe selinux" without quotes as the message.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [refpolicy] Let dhcp use init fds
  2008-07-18 14:32 ` Christopher J. PeBenito
@ 2008-08-07 17:01   ` Martin Orr
  0 siblings, 0 replies; 3+ messages in thread
From: Martin Orr @ 2008-08-07 17:01 UTC (permalink / raw)
  To: Christopher J. PeBenito; +Cc: SELinux List

On 18/07/08 15:32, Christopher J. PeBenito wrote:
> On Wed, 2008-06-25 at 17:51 +0100, Martin Orr wrote:
>> Without this patch, I see no output from dhclient when it is run during boot.
>> There is no avc message because it is dontaudited in init_daemon_domain.
>>
>> Index: policy/modules/system/sysnetwork.te
>> ===================================================================
>> --- policy/modules/system/sysnetwork.te.orig
>> +++ policy/modules/system/sysnetwork.te
>> @@ -126,6 +126,7 @@
>>  files_dontaudit_search_locks(dhcpc_t)
>>
>>  init_rw_utmp(dhcpc_t)
>> +init_use_fds(dhcpc_t)
>>
>>  logging_send_syslog_msg(dhcpc_t)
> 
> I would think that allowing it to write to the console would be required
> to make this work too.  If thats the case I'm not sure we want it; I
> don't think we want daemons writing to the console.

That puzzled me too, and I tracked it down to logging_send_syslog_msg:
	# cjp: this should most likely be removed:
	term_use_console($1)

I want messages from dhcp specifically to appear on the console, because it
takes a long time and can fail e.g. if I knocked the network cable loose,
but I suppose that's not enough reason to put it in refpolicy, and I can
keep it in my local policy quite happily.

-- 
Martin Orr

--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to majordomo@tycho.nsa.gov with
the words "unsubscribe selinux" without quotes as the message.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2008-08-07 17:01 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-06-25 16:51 [refpolicy] Let dhcp use init fds Martin Orr
2008-07-18 14:32 ` Christopher J. PeBenito
2008-08-07 17:01   ` Martin Orr

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.