Initial Likewise policy (Revisited Scott Salleys' policy).
PATCH 1/1 Initial Likewise policy (Revisited Scott Salleys' policy).
This is my take on Scott Salleys' Initial Likewise Open support.
This policy builds but i suspect that it still needs improvement. I made some comments in the policy.
I suspect i made some errors on my own aswell. This because not every Likewise stream connect interface had "unlink" in there and i added "unlink" policy for each stream connect interface call in Likewise personal policy.
---
:100644 100644 83d26a5... 03a8781... M policy/modules/kernel/files.if
:100644 100644 db5ca26... d3cedf6... M policy/modules/services/kerberos.if
:000000 100644 0000000... 013bb54... A policy/modules/services/likewise.fc
:000000 100644 0000000... 7c32b68... A policy/modules/services/likewise.if
:000000 100644 0000000... 785791b... A policy/modules/services/likewise.te
:100644 100644 b193dd8... 41d6517... M policy/modules/system/authlogin.if
policy/modules/kernel/files.if | 18 ++ policy/modules/services/kerberos.if | 20 ++ policy/modules/services/likewise.fc | 49 +++ policy/modules/services/likewise.if | 27 ++ policy/modules/services/likewise.te | 548 +++++++++++++++++++++++++++++++++++ policy/modules/system/authlogin.if | 4 + 6 files changed, 666 insertions(+), 0 deletions(-)
policy/modules/kernel/files.if +18 -0
@@ -2923,6 +2923,24 @@ interface(`files_dontaudit_getattr_home_dir',` ######################################## ## <summary> +## Relabel to user home root (/home). +## </summary> +## <param name="domain"> +## <summary> +## Domain allowed access. +## </summary> +## </param> +# +interface(`files_relabelto_home',` + gen_require(` + type home_root_t; + ') + + allow $1 home_root_t:dir relabelto; +') + +######################################## +## <summary> ## Search home directories root (/home). ## </summary> ## <param name="domain">
policy/modules/services/kerberos.if +20 -0
@@ -195,6 +195,26 @@ interface(`kerberos_read_keytab',` ######################################## ## <summary> +## Read/Write the kerberos key table. +## </summary> +## <param name="domain"> +## <summary> +## Domain allowed access. +## </summary> +## </param> +## <rolecap/> +# +interface(`kerberos_rw_keytab',` + gen_require(` + type krb5_keytab_t; + ') + + files_search_etc($1) + allow $1 krb5_keytab_t:file rw_file_perms; +') + +######################################## +## <summary> ## Create a derived type for kerberos keytab ## </summary> ## <param name="prefix">
policy/modules/services/likewise.fc new file +49 -0
49 lines not on this page · raw message
policy/modules/services/likewise.if new file +27 -0
@@ -0,0 +1,27 @@ +## <summary>Likewise Active Directory support for UNIX.</summary> +## <desc> +## <p> +## Likewise Open is a free, open source application that joins Linux, Unix, +## and Mac machines to Microsoft Active Directory and securely authenticates +## users with their domain credentials. +## </p> +## </desc> + +######################################## +## <summary> +## Connect to lsassd. +## </summary> +## <param name="domain"> +## <summary> +## Domain allowed access. +## </summary> +## </param> +# +interface(`likewise_stream_connect_lsassd', ` + gen_require(` + type likewise_var_lib_t, lsassd_var_socket_t, lsassd_t; + ') + + files_search_pids($1) + stream_connect_pattern($1, likewise_var_lib_t, lsassd_var_socket_t, lsassd_t) +')
policy/modules/services/likewise.te new file +548 -0
548 lines not on this page · raw message
policy/modules/system/authlogin.if +4 -0
@@ -1403,6 +1403,10 @@ interface(`auth_use_nsswitch',` ') optional_policy(` + likewise_stream_connect_lsassd($1) + ') + + optional_policy(` nis_use_ypbind($1) ')
Signature · 9 lines
1.6.6.1 -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 198 bytes Desc: not available Url : http://oss.tresys.com/pipermail/refpolicy/attachments/20100305/4f7ad64b/attachment.bin