From: Daniel J Walsh <dwalsh@redhat.com>
To: Stephen Smalley <sds@tycho.nsa.gov>
Cc: "David P. Quigley" <dpquigl@tycho.nsa.gov>,
Joshua Brindle <method@manicmethod.com>,
selinux@tycho.nsa.gov
Subject: Re: [PATCH] libsemanage: Add Ruby Bindings
Date: Thu, 07 May 2009 15:16:19 -0400 [thread overview]
Message-ID: <4A033383.3070508@redhat.com> (raw)
In-Reply-To: <1241721308.6452.148.camel@localhost.localdomain>
On 05/07/2009 02:35 PM, Stephen Smalley wrote:
> On Thu, 2009-05-07 at 14:19 -0400, Daniel J Walsh wrote:
>> On 05/07/2009 01:11 PM, David P. Quigley wrote:
>>> On Thu, 2009-05-07 at 13:10 -0400, Joshua Brindle wrote:
>>>> David P. Quigley wrote:
>>>>> From: David P. Quigley<dpquigl@moss-guppy.epoch.ncsc.mil>
>>>>>
>>>>> This patch adds a SWIG specification file for ruby bindings for libsemanage.
>>>>> The spec file is almost identical to the python SWIG file with the exception
>>>>> that all list generating typemaps have been removed and the python related
>>>>> functions have been replaced with the corresponding ruby ones. Finally the
>>>>> Makefile is modified to be able to build the new bindings. Something to note is
>>>>> that on 64-bit systems ruby.h might be found somewhere under /usr/lib64 instead
>>>>> of /usr/lib so LIBDIR=/usr/lib64 will be needed to build the ruby bindings from
>>>>> source.
>>>> What is going to be using these bindings?
>>> I currently have several Facter addons for Puppet that make use of them.
>>> We are looking into what can be done to expand Puppet's ability to
>>> effectively manage systems with SELinux.
>>>
>>> Dave
>>>
>>>
>>> --
>>> 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.
>> My concern with doing this patch is that we end up with puppetd being
>> able to manage selinux policy directly rather then executing semanage
>> command. But for now puppetd needs to run as an unconfined domain.
>
> I don't think we gain much by such separation, as puppetd will run in a
> single domain (so even with policy access control in libsemanage, we
> would still end up allowing puppetd_t to make any desired policy
> changes) and it would control all the inputs to semanage.
>
> Forcing it to use a helper utility rather than being able to directly
> use the interface will just make error handling and reporting more
> awkward and will make it slower (as motivated the bindings for
> libselinux, right?). There is no real trust boundary there.
>
Well when I first wrote system-config-selinux, I used the libsemanage
python bindings and ended up with a Huge X Windows application that
needed full access to semanage functionality. I understand the
motivation, but I still would like to break semanage functionality up so
that I could allow a domain to only set booleans for example (Or
particular booleans)
--
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.
next prev parent reply other threads:[~2009-05-07 19:16 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-05-07 14:55 [PATCH] libsemanage: Add Ruby Bindings David P. Quigley
2009-05-07 17:10 ` Joshua Brindle
2009-05-07 17:11 ` David P. Quigley
2009-05-07 18:19 ` Daniel J Walsh
2009-05-07 18:35 ` Stephen Smalley
2009-05-07 19:16 ` Daniel J Walsh [this message]
2009-05-07 19:21 ` Stephen Smalley
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=4A033383.3070508@redhat.com \
--to=dwalsh@redhat.com \
--cc=dpquigl@tycho.nsa.gov \
--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.