All of lore.kernel.org
 help / color / mirror / Atom feed
* role orthogonality
@ 2003-04-20  8:51 Robert Bihlmeyer
  2003-04-24 20:30 ` Stephen Smalley
  2003-04-25  3:50 ` Russell Coker
  0 siblings, 2 replies; 3+ messages in thread
From: Robert Bihlmeyer @ 2003-04-20  8:51 UTC (permalink / raw)
  To: selinux

[-- Attachment #1: Type: text/plain, Size: 1526 bytes --]

One thing that I still poorly understand is the interaction between
types and roles.

Am I right that roles are only relevant when transitioning, and not
during normal type enforcement?

It seems to me that we often want to break that orthogonality, so we
encode the role in the type (e.g. sysadm_tty_device_t vs
user_tty_device_t). I find this ugly, boring and repetitive -- exactly
the kind of thing that computers should shield us from. Wouldn't it be
possible to make the policy language grok these desires? Out of my
hat:

    rtype foo_t, domain;
    type foo_etc_t, file_type;
    rtype foo_files_t, file_type;

    allow foo_t self:process signal;
    allow foo_t foo_etc_t:file r_file_perms;
    allow foo_t foo_files_t:file rw_file_perms;

This is supposed to mean that foo_t and foo_files_t exist seperately
for every role, while there is only one foo_etc_t. Or you can think of
foo_t and foo_files_t having "hard" boundaries between roles.

So in this scenario user_r:foo_t may signal user_r:foo_t, but not
sysadm_r:foo_t; user_r:foo_files_t [1] may only be read/written by
user_r:foo_t, not sysadm_r:foo_t; but foo_etc_t can be read by foo_t
under any role.

It's probably desirable to allow more detailed specification as well:
    allow sysadm_r:foo_t user_r:foo_files_t:file rw_file_perms;
meaning that sysadm_r can access user_r's foo_files as well. (Yes we
run into colon overload problems here.)

Now, what's wrong with this naive proposal?


[1] Files would need to be able to hold roles, then.

-- 
Robbe

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

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

end of thread, other threads:[~2003-04-25  3:50 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-04-20  8:51 role orthogonality Robert Bihlmeyer
2003-04-24 20:30 ` Stephen Smalley
2003-04-25  3:50 ` Russell Coker

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.