Likewise Open policy (3rd submitted version)
Scott Salley
AppliedPATCH 1/1 Likewise Open policy (3rd submitted version)
I've done my best to incorporate the changes and suggestions made by the list.
Changes since last mail:
* Based the bulk of this patch on the mail from Dominick Grift. ** Added suggested interface files_relabelto_home.
** Added suggested interface kerberos_rw_keytab.
** Re-ordered most of the lines.
** Removed types that don't appear to be used.
* Added port 135 as 'epmap' as that seems to be the most common abbreviation that is also accurate.
Testing:
This patch was applied to a Fedora 12 system and Likewise Open was able to install, join the domain, and authenticate domain users.
Signed-off-by Scott Salley <[email protected]>
--- policy/modules/kernel/corenetwork.te.in | 1 + policy/modules/kernel/files.if | 18 ++ policy/modules/services/kerberos.if | 20 ++ policy/modules/services/likewise.fc | 54 ++++ policy/modules/services/likewise.if | 27 ++ policy/modules/services/likewise.te | 465 +++++++++++++++++++++++++++++++ policy/modules/system/authlogin.if | 4 + 7 files changed, 589 insertions(+), 0 deletions(-) create mode 100644 policy/modules/services/likewise.fc create mode 100644 policy/modules/services/likewise.if create mode 100644 policy/modules/services/likewise.te
policy/modules/kernel/corenetwork.te.in +1 -0
@@ -97,6 +97,7 @@ network_port(dhcpd, udp,67,s0, udp,547,s0, tcp, 547,s0, udp,548,s0, tcp, 548,s0, network_port(dict, tcp,2628,s0) network_port(distccd, tcp,3632,s0) network_port(dns, udp,53,s0, tcp,53,s0) +network_port(epmap, tcp,135,s0, udp,135,s0) network_port(fingerd, tcp,79,s0) network_port(ftp, tcp,21,s0, tcp,990,s0, udp,990,s0) network_port(ftp_data, tcp,20,s0)
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 +54 -0
54 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 to securely authenticate +## 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 +465 -0
465 lines not on this page · raw message
policy/modules/system/authlogin.if +4 -0
@@ -1407,6 +1407,10 @@ interface(`auth_use_nsswitch',` ') optional_policy(` + likewise_stream_connect_lsassd($1) + ') + + optional_policy(` nscd_socket_use($1) ')
Signature · 1 line
1.7.0.1.147.g6d84b