Skip to contentSkip to conversation

Likewise Open policy (3rd submitted version)

PATCH New Scott Salley 1 participant 1 message Mar 10, 2010

lore
Share & tools
lore

Scott Salley

author Applied
#0 lore raw

PATCH 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.

---
 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
index f199aa3..9a5a82a 100644
@@ -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
index 83d26a5..03a8781 100644
@@ -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
index db5ca26..d3cedf6 100644
@@ -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
new file mode 100644
index 0000000..6b1568d
@@ -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
index b193dd8..0981a2c 100644
@@ -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