Skip to contentSkip to conversation

What do you mean by a 'domain'.

DISCUSSION dE 4 participants 6 messages Apr 7, 2014 – Apr 8, 2014 SELinux security module

lore
Share & tools
lore

dE

author
#0 lore raw

Hi!

Sorry for the trival question; but on reading various SELinux resources, it appears everyone talks about some 'domain' but no one defines what is it.

So I wanna what what is a domain in SELinux.

Thank you!

#1 lore raw
Quoted 10 lines · dE

Hi!

Sorry for the trival question; but on reading various SELinux resources, it appears everyone talks about some 'domain' but no one defines what is it.

So I wanna what what is a domain in SELinux.

Thank you!

Hello,

Generally a domain is a scope or realm, consisting of related contexts in which you define and operate your security components (depending on your security model) using a combination of:

SELinux user, role, type and level (optionally, MLS sensitivity level)

Particularly, a domain is also used interchangeably with SELinux "type"

In addition, in RBAC (Role-based security model) to some extent a "role" can serve as an intermediary between domains (types) and be part of it.

Representations:

SELinux User :  SELinux Role :  SELinux Type :  Sensitivity Level
unconfined_u :  unconfined_r : unconfined_t  : s0-s0:c0.c1024
# ps -eZ
# ls -laZ

Best Regards,

Signature · 1 line
 Patrick K.
#2 lore raw
Quoted 34 lines · ITF
Quoted 10 lines · dE

Hi!

Sorry for the trival question; but on reading various SELinux resources, it appears everyone talks about some 'domain' but no one defines what is it.

So I wanna what what is a domain in SELinux.

Thank you!

Hello,

Generally a domain is a scope or realm, consisting of related contexts in which you define and operate your security components (depending on your security model) using a combination of:

SELinux user, role, type and level (optionally, MLS sensitivity level)

Particularly, a domain is also used interchangeably with SELinux "type"

In addition, in RBAC (Role-based security model) to some extent a "role" can serve as an intermediary between domains (types) and be part of it.

Representations:

SELinux User :  SELinux Role :  SELinux Type :  Sensitivity Level
unconfined_u :  unconfined_r : unconfined_t  : s0-s0:c0.c1024
Quoted 9 lines
# ps -eZ
# ls -laZ

Best Regards,

I would describe a "Domain" as in SELinux type applied to a process as opposed to a type applied to an Object like a file, port, interface, network ...

author
#4 lore raw
Quoted 11 lines · Stephen Smalley
Quoted 7 lines · dE

Hi!

Sorry for the trival question; but on reading various SELinux resources, it appears everyone talks about some 'domain' but no one defines what is it.

So I wanna what what is a domain in SELinux.

See:
http://www.nsa.gov/research/_files/selinux/papers/policy2/x86.shtml

So domain is a SELinux identifier of a process and it's not necessary to for each process to have a unique SELinux domain.

I didn't know NSA hosted docs also. Thanks! I'll refer to them instead.

#5 lore raw
In reply to Stephen Smalley
Signature · 3 lines
-- 
 Patrick K. Kashi, PhD
 CTO
Quoted 12 lines · Stephen Smalley
Quoted 7 lines · dE

Hi!

Sorry for the trival question; but on reading various SELinux resources, it appears everyone talks about some 'domain' but no one defines what is it.

So I wanna what what is a domain in SELinux.

See:
http://www.nsa.gov/research/_files/selinux/papers/policy2/x86.shtml

The definition of the term "domain" in "Type Enforcement model" is security context and attributes assigned to a process BUT not necessarily in SELinux:

SELinux internally won't care about domain, it uses type for that matter.

Would you mind to correct me, if I'm wrong?

above document asserts:

QUOTE:
" ... Although the example TE configuration often uses the term domain when referring to the type of a process,

the SELinux TE model does not internally distinguish domains from types."

UNQOUTE

Best regards,

Patrick K.