All of lore.kernel.org
 help / color / mirror / Atom feed
* Policy compiler issues.
@ 2004-05-19 22:10 Bush, Daniel
  2004-05-20  3:22 ` Russell Coker
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Bush, Daniel @ 2004-05-19 22:10 UTC (permalink / raw)
  To: SELinux

Hi all,
  I've got what is probably a fairly stupid question, but I'll ask anyway:
  I'm trying to deploy SELInux in an embedded environment. Footprint space is tight, every kilobyte counts. The environment is also fairly dynamic, the users list and assigned roles can change fairly rapidly.
  It's my understanding that whenever the users' list changes (aside from default users)in a SELinux system, that the policy files and security labels need to be re-compiled. Is there any way around that? Can a user be assigned a set of (non-default user) roles without re-compiling the security system?

  Another question: Can SELinux be compiled under uClibc? I'm not having much luck at that, and I was wondering if something special needed to be done, or if anybody had any tips.

Thanks in advance for your patience and help.

-=Dan Bush
"Peace through superior surrealism"



--
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] 7+ messages in thread
* RE: Policy compiler issues.
@ 2004-05-20 15:54 Bush, Daniel
  2004-05-20 16:21 ` Stephen Smalley
  0 siblings, 1 reply; 7+ messages in thread
From: Bush, Daniel @ 2004-05-20 15:54 UTC (permalink / raw)
  To: Stephen Smalley; +Cc: SELinux

First and foremost: Thank you all for your help. I REALLY appreciate it. 
That said:

>>   I'm trying to deploy SELInux in an embedded environment. Footprint 
>> space is tight, every kilobyte counts. The environment is also fairly 
>> dynamic, the users list and assigned roles can change fairly rapidly.
>
>That seems like an odd combination - embedded but highly dynamic users and roles?  
    Yes, it's an odd combination, but _is_ the case. 

>How do you plan on distributing updates to the users list and user-role authorizations?
   That's another part of the problem... We have a server/management mechanisim planned, but it's a Win2k environment (Yeah, yeah, I know. Wasn't my decision...) I figure we can deploy the compilers on a suitably modified CygWin, mount either the CygWin or the SELinux device as an NFS device on the other, and get the necessary functionality that way. We're still working on that.
   As it stands the whole system needs to weigh in at less than about 64M with smaller being MUCH better (32M would be ideal.) So you can see, there's not much room for a full compiler/linker suite.

>> Can a user be assigned a set of (non-default user) roles without 
>> re-compiling the security system?

>If you want the user to be recognized by SELinux as an individual user, then you need to >modify the policy (either directly patching the binary policy or modifying the source and >recompiling) and reload it.  There is already a user_u user that is a fallback for 
>ordinary users who do not have a specific entry in the SELinux policy, so if you don't 
>add the user to the SELinux policy, he will be mapped to user_u and limited to the roles >authorized for user_u. 
    "user_u" isn't really the problem. The other, higher orders are. The specification calls for a couple of new user classes (I'm pretty sure I can institute those.) and those  classes have a forseeable need to have their membership lists changed in the field. If we need to re-compile the policy when that happens, this presents a problem.

> Direct manipulation of the binary policy is possible, and I expect that libraries and 
>tools for doing so will become available; note the earlier work by Tresys on binary 
>policy patching that was posted to this list, plus the posting re future work on loadable >binary policy modules. 

This sounds promising... Could you please direct me to the date range of the messages you're referring to?

>>   Can SELinux be compiled under uClibc? 
>I haven't tried.  What kind of problem are you encountering?
   I just wanted to know if it was definitely known Impossible before I went any further. I've just made a couple of wild stabs at it, and it could be things in my environment that are mucking up the works. (It's definitely not ready for prime-time yet...) Since I seem to be cutting new trail here, I'll keep everybody posted on my progress. 

-=Dan Bush
"Peace through superior surrealism"



--
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] 7+ messages in thread

end of thread, other threads:[~2004-05-20 18:13 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-05-19 22:10 Policy compiler issues Bush, Daniel
2004-05-20  3:22 ` Russell Coker
2004-05-20  5:42 ` Luke Kenneth Casson Leighton
2004-05-20 12:20 ` Stephen Smalley
  -- strict thread matches above, loose matches on Subject: below --
2004-05-20 15:54 Bush, Daniel
2004-05-20 16:21 ` Stephen Smalley
2004-05-20 17:32   ` Frank Mayer

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.