All of lore.kernel.org
 help / color / mirror / Atom feed
From: Martin Orr <martin@martinorr.name>
To: "Christopher J. PeBenito" <cpebenito@tresys.com>
Cc: SELinux List <selinux@tycho.nsa.gov>
Subject: Re: [refpolicy] Let dhcp use init fds
Date: Thu, 07 Aug 2008 18:01:20 +0100	[thread overview]
Message-ID: <489B2A60.4020204@martinorr.name> (raw)
In-Reply-To: <1216391538.21191.149.camel@gorn>

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.

      reply	other threads:[~2008-08-07 17:01 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=489B2A60.4020204@martinorr.name \
    --to=martin@martinorr.name \
    --cc=cpebenito@tresys.com \
    --cc=selinux@tycho.nsa.gov \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.