Skip to contentSkip to conversation

kernel_domain.patch

refpolicy Daniel J Walsh 2 participants 6 messages Jun 2, 2010 – Jun 7, 2010

lore
Share & tools
lore
#2 lore raw
Quoted 11 lines · Christopher J. PeBenito
Quoted 7 lines · Daniel J Walsh

http://people.fedoraproject.org/~dwalsh/SELinux/F14/kernel_domain.patch

Fix interface descriptions

Lots of new domains.

Added polydomain

What is the purpose of polydomain?

If I have a polinstatiated homedir like on an MLS machine. When login programs creates the homedir it needs to populate it with content from /etc/skel. When it does this, it needs to relabel it to user homedir content.

tunable_policy(allow_polyinstantiation',
files_polyinstantiate_all(polydomain) userdom_manage_user_home_content_dirs(polydomain) userdom_manage_user_home_content_files(polydomain) userdom_relabelto_user_home_dirs(polydomain) userdom_relabelto_user_home_files(polydomain)
'

#3 lore raw
Quoted 10 lines · Daniel J Walsh
Quoted 9 lines · Christopher J. PeBenito
Quoted 7 lines · Daniel J Walsh

http://people.fedoraproject.org/~dwalsh/SELinux/F14/kernel_domain.patch

Fix interface descriptions

Lots of new domains.

Added polydomain

Quoted 7 lines
Quoted 2 lines

What is the purpose of polydomain?

If I have a polinstatiated homedir like on an MLS machine. When login programs creates the homedir it needs to populate it with content from /etc/skel. When it does this, it needs to relabel it to user homedir content.

That sounds like rules in auth_login_pgm_domain() that should already exist.

Quoted 7 lines

tunable_policy(allow_polyinstantiation',
files_polyinstantiate_all(polydomain) userdom_manage_user_home_content_dirs(polydomain) userdom_manage_user_home_content_files(polydomain) userdom_relabelto_user_home_dirs(polydomain) userdom_relabelto_user_home_files(polydomain)
'

Signature · 3 lines
Chris PeBenito
Tresys Technology, LLC
www.tresys.com | oss.tresys.com
#4 lore raw
Quoted 14 lines · Christopher J. PeBenito
Quoted 13 lines · Daniel J Walsh
Quoted 11 lines · Christopher J. PeBenito
Quoted 7 lines · Daniel J Walsh

http://people.fedoraproject.org/~dwalsh/SELinux/F14/kernel_domain.patch

Fix interface descriptions

Lots of new domains.

Added polydomain

What is the purpose of polydomain?

Quoted 16 lines
Quoted 4 lines

If I have a polinstatiated homedir like on an MLS machine. When login programs creates the homedir it needs to populate it with content from /etc/skel. When it does this, it needs to relabel it to user homedir content.

That sounds like rules in auth_login_pgm_domain() that should already exist.

Quoted 7 lines

tunable_policy(allow_polyinstantiation',
files_polyinstantiate_all(polydomain) userdom_manage_user_home_content_dirs(polydomain) userdom_manage_user_home_content_files(polydomain) userdom_relabelto_user_home_dirs(polydomain) userdom_relabelto_user_home_files(polydomain)
'

The rules do not exist there currently other then
files_polyinstantiate_all(polydomain)

We could move this there or eliminate it and use the attribute save hundreds/thousands of rules.

#5 lore raw
Quoted 31 lines · Daniel J Walsh
Quoted 14 lines · Christopher J. PeBenito
Quoted 13 lines · Daniel J Walsh
Quoted 11 lines · Christopher J. PeBenito
Quoted 7 lines · Daniel J Walsh

http://people.fedoraproject.org/~dwalsh/SELinux/F14/kernel_domain.patch

Fix interface descriptions

Lots of new domains.

Added polydomain

What is the purpose of polydomain?

Quoted 16 lines
Quoted 4 lines

If I have a polinstatiated homedir like on an MLS machine. When login programs creates the homedir it needs to populate it with content from /etc/skel. When it does this, it needs to relabel it to user homedir content.

That sounds like rules in auth_login_pgm_domain() that should already exist.

Quoted 7 lines

tunable_policy(allow_polyinstantiation',
files_polyinstantiate_all(polydomain) userdom_manage_user_home_content_dirs(polydomain) userdom_manage_user_home_content_files(polydomain) userdom_relabelto_user_home_dirs(polydomain) userdom_relabelto_user_home_files(polydomain)
'

Quoted 5 lines

The rules do not exist there currently other then
files_polyinstantiate_all(polydomain)

We could move this there or eliminate it and use the attribute save hundreds/thousands of rules.

I'd prefer it as part of the auth_login_pgm_domain(), since that is what the concept is. If you want to look at turning that interface into an attribute with rules in authlogin.te then that would be fine.

If you're that concerned about the rule count, perhaps you could convince Red Hat to invest some time in an optimizing policy compiler? :)

Signature · 3 lines
Chris PeBenito
Tresys Technology, LLC
www.tresys.com | oss.tresys.com