Research
.
Skip Search Box

SELinux Mailing List

Re: object class discovery userland

From: Stephen Smalley <sds_at_tycho.nsa.gov>
Date: Tue, 29 May 2007 14:36:29 -0400


On Tue, 2007-05-29 at 13:50 -0400, Eamon Walsh wrote:
> Joshua Brindle wrote:
> > Eamon Walsh wrote:
> >> Here's a first go at an interface. It's an init function
> >> that is a replacement for avc_init(). It takes flags, the
> >> class/permission mapping to use, and callback functions.
> >>
> >> This is trying to solve a few other problems at the same time, namely:
> >>
> >> - selinux prefix on the function name
> >
> > So the client callsites will have to change then, oh well, we wanted to
> > do this anyway..
>
> Well, the old avc_init() could be kept around for awhile. Calling it
> would still work, it just wouldn't have a mapping (would treat incoming
> class/perm values literally).
>
> >
> >> - drops support for memory, threading, and locking callbacks
> >> (would just always use malloc and pthread)
> >
> > Were these ever used or were they a remnant of the early
> > implementations?
>
> I'm not aware of any users of them. I put them in basically because the
> X server wrapped malloc ("Xalloc"), glib has malloc wrappers and so
> forth. But the X people are moving away from this and back to straight
> malloc. I've come around to the belief that this is better done through
> the linker with private functions.

Might want to look at dbusd; it uses the callbacks.

-- 
Stephen Smalley
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.
Received on Tue 29 May 2007 - 14:36:31 EDT
 

Date Posted: Jan 15, 2009 | Last Modified: Jan 15, 2009 | Last Reviewed: Jan 15, 2009

 
bottom

National Security Agency / Central Security Service