All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/5] libselinux: labeling API for userspace object managers
@ 2006-11-16  2:25 Eamon Walsh
  2006-11-16  2:46 ` [PATCH 1/5] libselinux: labeling API basic front-end interface Eamon Walsh
                   ` (6 more replies)
  0 siblings, 7 replies; 19+ messages in thread
From: Eamon Walsh @ 2006-11-16  2:25 UTC (permalink / raw)
  To: selinux; +Cc: sds

This is a companion interface to the userspace AVC, for use by userspace
object managers to look up contexts for use in labeling their objects.
It also provides an alternate interface to the file contexts
configuration.

The need for this interface is discussed in this thread:
http://marc.theaimsgroup.com/?l=selinux&m=116195833329572&w=2

The interface provides support for pluggable backends, multithreading,
and user-provided callbacks for logging, memory allocation, and context
validation.  It is designed to allow policy separation by package (the
"prefix" string).  Lookups are done by object class and a string "key".

Patch 1: basic interface
Patch 2: basic implementation
Patch 3: security_class_to_string() function
Patch 4: simple, generic backend
Patch 5: file contexts backend

Patches may trickle out slowly as I am planning some thanksgiving
vacation time.  But the most important ones are 1 and 2 since they make
up the front-end.

Comments welcome!


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

^ permalink raw reply	[flat|nested] 19+ messages in thread
* [PATCH 0/5] libselinux: labeling API for userspace object managers (try 2)
@ 2006-11-30  3:47 Eamon Walsh
  2006-11-30  4:05 ` [PATCH 1/5] libselinux: labeling API basic front-end interface Eamon Walsh
  0 siblings, 1 reply; 19+ messages in thread
From: Eamon Walsh @ 2006-11-30  3:47 UTC (permalink / raw)
  To: selinux

This is a companion interface to the userspace AVC, for use by userspace
object managers to look up contexts for use in labeling their objects.
It also provides an alternate interface to the file contexts
configuration.

In this iteration, the interface has been changed to return handles to
the user.  This should clear up confusion regarding the "prefix" string
(now "name") which is now passed together with the security class to the
label_open() function that creates the handle.

Also added is the av_perm to string call requested by KaiGai Kohei.
There are two functions, security_av_perm_to_string() which does a
single bit, and security_av_string() which duplicates
print_access_vector() except returns the result in a malloc'ed buffer.

Patch 1: basic interface
Patch 2: basic implementation
Patch 3: string functions
Patch 4: simple, generic backend
Patch 5: file contexts backend

Comments welcome!

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

^ permalink raw reply	[flat|nested] 19+ messages in thread

end of thread, other threads:[~2006-12-06 17:15 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-11-16  2:25 [PATCH 0/5] libselinux: labeling API for userspace object managers Eamon Walsh
2006-11-16  2:46 ` [PATCH 1/5] libselinux: labeling API basic front-end interface Eamon Walsh
2006-11-20 15:36   ` Karl MacMillan
2006-11-27 22:23     ` Eamon Walsh
2006-11-16  2:51 ` [PATCH 2/5] libselinux: labeling API basic front-end implementation Eamon Walsh
2006-11-20 15:42   ` Karl MacMillan
2006-11-27 22:44     ` Eamon Walsh
2006-11-16 14:10 ` [PATCH 0/5] libselinux: labeling API for userspace object managers Joshua Brindle
2006-11-16 18:49   ` Eamon Walsh
2006-11-16 19:06     ` [PATCH 0/5] libselinux: labeling API for userspace objectmanagers Joshua Brindle
2006-11-16 21:12       ` Eamon Walsh
2006-11-16 21:54 ` [PATCH 3/5] libselinux: security_class_to_string helper function Eamon Walsh
2006-11-18  1:05   ` KaiGai Kohei
2006-11-27 22:45     ` Eamon Walsh
2006-11-16 22:55 ` [PATCH 4/5] libselinux: labeling API simple backend Eamon Walsh
2006-11-17 23:09 ` [PATCH 5/5] libselinux: labeling API file_contexts backend Eamon Walsh
2006-11-18  0:46 ` [PATCH 0/5] libselinux: one large patch Eamon Walsh
  -- strict thread matches above, loose matches on Subject: below --
2006-11-30  3:47 [PATCH 0/5] libselinux: labeling API for userspace object managers (try 2) Eamon Walsh
2006-11-30  4:05 ` [PATCH 1/5] libselinux: labeling API basic front-end interface Eamon Walsh
2006-12-06 17:15   ` Karl MacMillan

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.