All of lore.kernel.org
 help / color / mirror / Atom feed
* Number of roles reported by checkpolicy
@ 2003-10-20  9:00 Faye Coker
  2003-10-20 13:23 ` Stephen Smalley
  2003-10-20 13:24 ` David Caplan
  0 siblings, 2 replies; 3+ messages in thread
From: Faye Coker @ 2003-10-20  9:00 UTC (permalink / raw)
  To: selinux

Running checkpolicy shows I have 4 users and 5 roles:

faye@kaos:/etc/selinux$ checkpolicy
checkpolicy:  loading policy configuration from policy.conf
security:  4 users, 5 roles, 683 types
security:  29 classes, 71806 rules

however, I can only see four roles:

faye@kaos:/etc/selinux$ grep ^role policy.conf|cut -f2 "-d "|sort -u
staff_r
sysadm_r
system_r
user_r

Any ideas as to why checkpolicy is reporting five roles, when I can only see 
four?

faye
--
Faye Coker
faye@lurking-grue.org



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

* Re: Number of roles reported by checkpolicy
  2003-10-20  9:00 Number of roles reported by checkpolicy Faye Coker
@ 2003-10-20 13:23 ` Stephen Smalley
  2003-10-20 13:24 ` David Caplan
  1 sibling, 0 replies; 3+ messages in thread
From: Stephen Smalley @ 2003-10-20 13:23 UTC (permalink / raw)
  To: Faye Coker; +Cc: selinux

On Mon, 2003-10-20 at 05:00, Faye Coker wrote:
> Running checkpolicy shows I have 4 users and 5 roles:
> 
> faye@kaos:/etc/selinux$ checkpolicy
> checkpolicy:  loading policy configuration from policy.conf
> security:  4 users, 5 roles, 683 types
> security:  29 classes, 71806 rules
> 
> however, I can only see four roles:
> 
> faye@kaos:/etc/selinux$ grep ^role policy.conf|cut -f2 "-d "|sort -u
> staff_r
> sysadm_r
> system_r
> user_r
> 
> Any ideas as to why checkpolicy is reporting five roles, when I can only see 
> four?

You are forgetting the secret nsa_has_all_power role.  Oops, nevermind.
Actually, that would be the implicitly defined object_r role for objects
that is being counted.

-- 
Stephen Smalley <sds@epoch.ncsc.mil>
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] 3+ messages in thread

* Re: Number of roles reported by checkpolicy
  2003-10-20  9:00 Number of roles reported by checkpolicy Faye Coker
  2003-10-20 13:23 ` Stephen Smalley
@ 2003-10-20 13:24 ` David Caplan
  1 sibling, 0 replies; 3+ messages in thread
From: David Caplan @ 2003-10-20 13:24 UTC (permalink / raw)
  To: faye; +Cc: selinux



Faye Coker wrote:
> Running checkpolicy shows I have 4 users and 5 roles:
> 
> faye@kaos:/etc/selinux$ checkpolicy
> checkpolicy:  loading policy configuration from policy.conf
> security:  4 users, 5 roles, 683 types
> security:  29 classes, 71806 rules
> 
> however, I can only see four roles:
> 
> faye@kaos:/etc/selinux$ grep ^role policy.conf|cut -f2 "-d "|sort -u
> staff_r
> sysadm_r
> system_r
> user_r
> 
> Any ideas as to why checkpolicy is reporting five roles, when I can only see 
> four?
> 

object_r is inserted as the first role into the role table (see 
roles_init() in .../checkpolicy/policydb.c) when the policy database is 
initialized.

David

__________________________________

David Caplan     410 290 1411 x105
dac@tresys.com
Tresys Technology, LLC
8840 Stanford Blvd., Suite 2100
Columbia, MD 21045


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

end of thread, other threads:[~2003-10-20 13:23 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-10-20  9:00 Number of roles reported by checkpolicy Faye Coker
2003-10-20 13:23 ` Stephen Smalley
2003-10-20 13:24 ` David Caplan

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.