All of lore.kernel.org
 help / color / mirror / Atom feed
From: Darrel Goeddel <dgoeddel@TrustedCS.com>
To: Stephen Smalley <sds@tycho.nsa.gov>
Cc: Daniel J Walsh <dwalsh@redhat.com>,
	James Morris <jmorris@redhat.com>,
	SELinux <SELinux@tycho.nsa.gov>
Subject: Re: Another place where policy blows up because of translations in MCS.
Date: Wed, 31 Aug 2005 09:57:36 -0500	[thread overview]
Message-ID: <4315C560.6070100@trustedcs.com> (raw)
In-Reply-To: <1125498135.18888.291.camel@moss-spartans.epoch.ncsc.mil>

Stephen Smalley wrote:
> On Wed, 2005-08-31 at 10:08 -0400, Stephen Smalley wrote:
> 
>>Note that we wouldn't want to require setfiles to link against
>>libsetrans, as there is no upstream libsetrans and it is optional.
>>Hence, either setfiles would need to dlopen libsetrans in the same
>>manner as libselinux to access the translation functions or libselinux
>>needs to export wrapper functions for the translation functions it has
>>already looked up from libsetrans.  The latter seems simpler, but
>>requires that we add such functions to libselinux that are exported and
>>have proper namespace prefixes, unlike the hidden
>>trans_to_raw_context/raw_to_trans_context functions.  The exported
>>functions would also need to internally check the context_translations
>>flag unlike the current trans_to_raw_context/raw_to_trans_context
>>functions.
> 
> 
> See the attached patches for libselinux and setfiles.  Does this address
> the issue?  Is it the right approach (i.e. keeping libsepol
> translation-unaware and handling this in setfiles)?

This seems to be the proper approach.  We should keep the concept of
translated contexts at the higher levels (libselinux and applications) to
keep things as simple as possible.  The patches look good from here.  I
just wonder how I've never seen the problem.

-- 

Darrel

--
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:[~2005-08-31 14:57 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-08-30 16:02 Another place where policy blows up because of translations in MCS Daniel J Walsh
2005-08-30 16:09 ` Stephen Smalley
2005-08-30 17:21   ` Daniel J Walsh
2005-08-31 12:57     ` Stephen Smalley
2005-08-31 14:08       ` Stephen Smalley
2005-08-31 14:22         ` Stephen Smalley
2005-08-31 14:57           ` Darrel Goeddel [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=4315C560.6070100@trustedcs.com \
    --to=dgoeddel@trustedcs.com \
    --cc=SELinux@tycho.nsa.gov \
    --cc=dwalsh@redhat.com \
    --cc=jmorris@redhat.com \
    --cc=sds@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.