All of lore.kernel.org
 help / color / mirror / Atom feed
From: Eamon Walsh <ewalsh@tycho.nsa.gov>
To: Stephen Smalley <sds@tycho.nsa.gov>
Cc: Joshua Brindle <method@manicmethod.com>,
	Daniel J Walsh <dwalsh@redhat.com>,
	SE Linux <selinux@tycho.nsa.gov>
Subject: Re: Change default error handling in libselinux matchpathcon	to	use syslog instead of stderr.
Date: Wed, 19 Sep 2007 13:12:22 -0400	[thread overview]
Message-ID: <46F15876.3050004@tycho.nsa.gov> (raw)
In-Reply-To: <1190137543.14037.77.camel@moss-spartans.epoch.ncsc.mil>

Stephen Smalley wrote:
> On Tue, 2007-09-18 at 13:43 -0400, Joshua Brindle wrote:
>> Stephen Smalley wrote:

[...]

>>> You already can override the callback (set_matchpathcon_printf), but the
>>> claim in the bug report is that isn't usable from a library function
>>> that calls matchpathcon because it doesn't know whether it has already
>>> been set by the application.
>>>   
>> Hrm... so the alternative is to send it to syslog? I don't buy it. Can 
>> we just add an interface to see if the default callbacks have been 
>> overridden?
> 
> Yep.  And it should be based on the newer interfaces.  There is already
> a selinux_set_callback() and adding a selinux_get_callback() should be
> trivial.  setfiles is already rewritten to use the new interfaces in
> trunk, and we should be moving everything off of matchpathcon and onto
> selabel_lookup.

We could add a get function, and/or modify selinux_set_callback(), 
currently void, to return the previous callback in the same way as 
signal(2).

> 
> For RHEL 5, I suppose there might be a matchpathcon-specific interface
> for getting the callback.
> 

-- 
Eamon Walsh <ewalsh@tycho.nsa.gov>
National Security Agency

--
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.

      parent reply	other threads:[~2007-09-19 17:12 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-09-18 15:35 Change default error handling in libselinux matchpathcon to use syslog instead of stderr Daniel J Walsh
2007-09-18 16:43 ` Stephen Smalley
2007-09-18 19:47   ` Daniel J Walsh
2007-09-18 17:09 ` Joshua Brindle
2007-09-18 17:23   ` Stephen Smalley
2007-09-18 17:43     ` Joshua Brindle
2007-09-18 17:45       ` Stephen Smalley
2007-09-18 19:54         ` Daniel J Walsh
2007-09-19 14:03           ` Stephen Smalley
2007-09-19 17:12         ` Eamon Walsh [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=46F15876.3050004@tycho.nsa.gov \
    --to=ewalsh@tycho.nsa.gov \
    --cc=dwalsh@redhat.com \
    --cc=method@manicmethod.com \
    --cc=sds@tycho.nsa.gov \
    --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.