Skip to contentSkip to conversation

Enforcing default_user, default_role, default_type, default_range

DISCUSSION dE 3 participants 6 messages Jul 3, 2014 – Jul 5, 2014 SELinux security module

lore
Share & tools
lore

dE

author
#0 lore raw

These rules are not enforced by the object manager, but does restorecon read these?

Also what's the effect of these statements on SELinux aware applications?

Are there tools to list these statements? I didn't find anything in sesearch man page, and seinfo is silent on this.

#1 lore raw
Quoted 2 lines · dE

These rules are not enforced by the object manager, but does restorecon read these?

No. restorecon and other labeling tools just read the fcontext files.

Quoted 3 lines

Also what's the effect of these statements on SELinux aware applications?

Most likely nothing.

Quoted 3 lines

Are there tools to list these statements? I didn't find anything in sesearch man page, and seinfo is silent on this.
________________

Probably not. seinfo/sesearch have not been updated to handle them

Quoted 6 lines

_______________________________
Selinux mailing list
[email protected]
To unsubscribe, send email to [email protected]. To get help, send an email containing "help" to [email protected].

#2 lore raw

----- Original Message -----

Quoted 12 lines

From: Daniel J Walsh <[email protected]>
To: dE <[email protected]>; [email protected]
Cc:
Sent: Thursday, 3 July 2014, 10:44
Subject: Re: Enforcing default_user, default_role, default_type, default_range

Quoted 2 lines · dE

These rules are not enforced by the object manager, but does restorecon read these?

No.  restorecon and other labeling tools just read the fcontext files.

Quoted 1 line
Quoted 8 lines
Quoted 1 line

Also what's the effect of these statements on SELinux aware

applications?

Quoted 1 line

Most likely nothing.

Quoted 3 lines

Are there tools to list these statements? I didn't find anything in sesearch man page, and seinfo is silent on this.
________________

Probably not.  seinfo/sesearch have not been updated to handle them

There is an updated version of APOL that will show these plus all other rules to policy version 29.
You can either built it from:
https://github.com/TresysTechnology/setools3.git
or:
https://github.com/QuarkSecurity/setools

Or download the rpms from:
https://quarksecurity.com/files/RPMS/

Quoted 15 lines
Quoted 6 lines

_______________________________
Selinux mailing list
[email protected]
To unsubscribe, send email to [email protected]. To get help, send an email containing "help" to [email protected].

_______________________________________________
Selinux mailing list
[email protected]
To unsubscribe, send email to [email protected]. To get help, send an email containing "help" to [email protected].

#3 lore raw

----- Original Message -----

Quoted 8 lines

From: Richard Haines <[email protected]>
To: Daniel J Walsh <[email protected]>; dE <[email protected]>
Cc: "[email protected]" <[email protected]>
Sent: Thursday, 3 July 2014, 12:19
Subject: Re: Enforcing default_user, default_role, default_type, default_range

Quoted 17 lines

----- Original Message -----

Quoted 5 lines

From: Daniel J Walsh <[email protected]>
To: dE <[email protected]>; [email protected] Cc:
Sent: Thursday, 3 July 2014, 10:44
Subject: Re: Enforcing default_user, default_role, default_type,

default_range

Quoted 10 lines · dE
Quoted 2 lines

  These rules are not enforced by the object manager, but does restorecon read these?

No.  restorecon and other labeling tools just read the fcontext files.

Quoted 2 lines

  Also what's the effect of these statements on SELinux aware

applications?

Quoted 1 line

The SELinux Notebook section 2.10 - Computing Security Contexts attemps to explain labeling using these and other rules for SELinux-aware apps. For the next edition I've a few minor corrections - the CIL statement names have changed and security_compute_member always defaults to using the tcon user.

The book is available from:
http://www.freetechbooks.com/the-selinux-notebook-the-foundations-t785.html
If you find any errors or want any clarifications let me know as I'm working on the next version (for release one day - but not sure when).

Quoted 40 lines
Quoted 2 lines

Most likely nothing.

Quoted 1 line

  Are there tools to list these statements? I didn't find anything

in

Quoted 3 lines
Quoted 2 lines

  sesearch man page, and seinfo is silent on this.
  ________________

Probably not.  seinfo/sesearch have not been updated to handle them

There is an updated version of APOL that will show these plus all other rules to policy version 29.
You can either built it from:
https://github.com/TresysTechnology/setools3.git
or:
https://github.com/QuarkSecurity/setools

Or download the rpms from:
https://quarksecurity.com/files/RPMS/

Quoted 8 lines
Quoted 6 lines

  _______________________________
  Selinux mailing list
  [email protected]
  To unsubscribe, send email to [email protected]. To get help, send an email containing "help" to [email protected].

Quoted 7 lines

_______________________________________________
Selinux mailing list
[email protected]
To unsubscribe, send email to [email protected]. To get help, send an email containing "help" to [email protected].

_______________________________________________
Selinux mailing list
[email protected]
To unsubscribe, send email to [email protected]. To get help, send an email containing "help" to [email protected].

author
#4 lore raw
In reply to Richard Haines
Quoted 27 lines · Richard Haines

----- Original Message -----

Quoted 10 lines

From: Daniel J Walsh <[email protected]>
To: dE <[email protected]>; [email protected]
Cc:
Sent: Thursday, 3 July 2014, 10:44
Subject: Re: Enforcing default_user, default_role, default_type, default_range

Quoted 2 lines · dE

These rules are not enforced by the object manager, but does restorecon read these?

Quoted 8 lines

No. restorecon and other labeling tools just read the fcontext files.

Quoted 1 line

Also what's the effect of these statements on SELinux aware

applications?
Most likely nothing.

Quoted 3 lines

Are there tools to list these statements? I didn't find anything in sesearch man page, and seinfo is silent on this.
________________

Probably not. seinfo/sesearch have not been updated to handle them

There is an updated version of APOL that will show these plus all other rules to policy version 29.
You can either built it from:
https://github.com/TresysTechnology/setools3.git
or:
https://github.com/QuarkSecurity/setools

Quoted 17 lines

Or download the rpms from:
https://quarksecurity.com/files/RPMS/

Quoted 14 lines
Quoted 6 lines

_______________________________
Selinux mailing list
[email protected]
To unsubscribe, send email to [email protected]. To get help, send an email containing "help" to [email protected].

_______________________________________________
Selinux mailing list
[email protected]
To unsubscribe, send email to [email protected]. To get help, send an email containing "help" to [email protected].

Graphical tools only?

author
#5 lore raw
In reply to Daniel J Walsh
Quoted 17 lines · Daniel J Walsh
Quoted 2 lines · dE

These rules are not enforced by the object manager, but does restorecon read these?

No. restorecon and other labeling tools just read the fcontext files.

Quoted 2 lines

Also what's the effect of these statements on SELinux aware applications?

Most likely nothing.

Quoted 3 lines

Are there tools to list these statements? I didn't find anything in sesearch man page, and seinfo is silent on this.
________________

Probably not. seinfo/sesearch have not been updated to handle them

Quoted 6 lines

_______________________________
Selinux mailing list
[email protected]
To unsubscribe, send email to [email protected]. To get help, send an email containing "help" to [email protected].

Thanks for clarifying.