All of lore.kernel.org
 help / color / mirror / Atom feed
* Loading things into policy
@ 2005-10-19  0:33 Ivan Gyurdiev
  2005-10-19  0:37 ` Ivan Gyurdiev
                   ` (2 more replies)
  0 siblings, 3 replies; 14+ messages in thread
From: Ivan Gyurdiev @ 2005-10-19  0:33 UTC (permalink / raw)
  To: selinux; +Cc: Stephen Smalley, Joshua Brindle

So, I have a question regarding customizations to policy.

I plan to support those functions in all databases:
add() - add a new thing, or fail if it exists
           (maybe add a configurable parameter saying whether we should 
fail, or only warn if it exists)
modify() - add a new thing, or modify it if it exists

In addition, I'm thinking of adding:
set() - modify a thing, but don't add it if it doesn't exist (for booleans).

=====================

Which of those functions should be used to load things into policy?  
Should the load function be configurable per database? That way we can 
specify whether each database allows overrides of the in-policy 
defaults, or adding new things..etc.

For example, for ports only additive changes make sense to me, so we 
could make add() as the default load function. For booleans we want 
set() to be the default function...etc.. Maybe for users we want to 
allow overrides as well?

Should I even support all of them at the sepol layer? It might be 
simpler to just support the one that gets used for loading in sepol, 
since policy modifications will be done by rebuilding the policy anyway, 
so a single load function will be used for modifications. Then 
libsemanage could support the others on the flat file (but the 
modification gets applied to policy by rebuilding, and calling the 
default load function). Thoughts?

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

end of thread, other threads:[~2005-10-19 19:12 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-10-19  0:33 Loading things into policy Ivan Gyurdiev
2005-10-19  0:37 ` Ivan Gyurdiev
2005-10-19 13:45 ` Joshua Brindle
2005-10-19 16:31   ` Ivan Gyurdiev
2005-10-19 17:36     ` Stephen Smalley
2005-10-19 17:20 ` Stephen Smalley
2005-10-19 17:31   ` Stephen Smalley
2005-10-19 17:51   ` Stephen Smalley
2005-10-19 18:11   ` Ivan Gyurdiev
2005-10-19 18:13     ` Ron Kuris
2005-10-19 18:20       ` Stephen Smalley
2005-10-19 18:31       ` Ivan Gyurdiev
2005-10-19 18:28     ` Ivan Gyurdiev
2005-10-19 19:12       ` Ivan Gyurdiev

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.