All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ivan Gyurdiev <gyurdiev@redhat.com>
To: Chad Hanson <chanson@TrustedCS.com>
Cc: Daniel J Walsh <dwalsh@redhat.com>,
	Joshua Brindle <jbrindle@tresys.com>,
	selinux@tycho.nsa.gov
Subject: RE: [RFC] selinux management API
Date: Thu, 21 Jul 2005 06:22:31 -0400	[thread overview]
Message-ID: <1121941351.19340.25.camel@localhost.localdomain> (raw)
In-Reply-To: <36282A1733C57546BE392885C0618592AF27EE@chaos.tcs.tcs-sec.com>


I believe we're discussing the same thing, from different points 
of view, and a solution can be designed that fits everyone's needs.

> > But I don't like the idea of Admins modifying policy in order to 
> > customize their system.  This is what we
> > are trying to get away from.   

Dan's concern is from usability point of view.
The policy source is not a good way for a sysadmin
to modify security restrictions. It is better suited
for specifying static parts of policy, shipped by
the vendor, which require rich language to
properly describe..

I'm not sure setools are an acceptable replacement 
either. There are existing tools and systems,
which we could integrate with. From our discussions at Red Hat, 
I understand that Dan wants iptables to be used as a frontend
to configuring certain parts of policy. He also
wants to hide the interface security context from the user.
I can only assume that he wants the port context hidden too.
On the other hand he'd like to be able to specify the
source context (application context) and match against it. 

I'm not sure whether all of this is a good idea or not,
(or wheter entirely possible), but it seems clear that 
any policy manipulation should occur through 
libsemanage, and eventually through libsepol.
Any iptables integration (if implemented) would have
to occur via those libaries.

So yes, it seems to me that it would be appropriate
to provide an API for managing network interfaces.
Whether we support changing the context of an interface,
or simply querying it, is an implementation detail.
I started writing some libsepol support with
the query operation today. I've also implemented
query on ports (give sepol a number, or a range,
get back the security context).


--
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-07-21 10:25 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-07-19 14:48 [RFC] selinux management API Chad Hanson
2005-07-21 10:22 ` Ivan Gyurdiev [this message]
  -- strict thread matches above, loose matches on Subject: below --
2005-07-18 22:31 Chad Hanson
2005-07-18 22:11 Chad Hanson
2005-07-19 14:08 ` Daniel J Walsh
2005-07-18 16:06 Chad Hanson
2005-07-18 18:28 ` Ivan Gyurdiev
2005-07-18 19:35   ` Daniel J Walsh
2005-07-19  2:25   ` Joshua Brindle
2005-07-15 14:46 Joshua Brindle
2005-07-15 15:56 ` Ivan Gyurdiev
2005-07-15 18:12   ` Joshua Brindle
2005-07-15 19:19     ` Ivan Gyurdiev
2005-07-15 19:29       ` Joshua Brindle
2005-07-15 19:45         ` Ivan Gyurdiev
2005-07-15 19:57           ` Joshua Brindle
2005-07-15 20:08             ` Ivan Gyurdiev
2005-07-28  8:36     ` Russell Coker
2005-07-28 13:43       ` Joshua Brindle
2005-07-28 13:54         ` Russell Coker
2005-08-01 18:12       ` Jason Tang
2005-08-02  2:15         ` Russell Coker

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=1121941351.19340.25.camel@localhost.localdomain \
    --to=gyurdiev@redhat.com \
    --cc=chanson@TrustedCS.com \
    --cc=dwalsh@redhat.com \
    --cc=jbrindle@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.