selinux-refpolicy/policy/modules/services/ldap.if

76 lines
1.4 KiB
Plaintext
Raw Normal View History

2005-08-17 18:33:43 +00:00
## <summary>OpenLDAP directory server</summary>
########################################
## <summary>
## Read the contents of the OpenLDAP
## database directories.
## </summary>
## <param name="domain">
## <summary>
2005-08-17 18:33:43 +00:00
## Domain allowed access.
## </summary>
2005-08-17 18:33:43 +00:00
## </param>
#
2006-02-02 21:08:12 +00:00
interface(`ldap_list_db',`
2005-08-17 18:33:43 +00:00
gen_require(`
type slapd_db_t;
')
allow $1 slapd_db_t:dir r_dir_perms;
')
########################################
## <summary>
## Read the OpenLDAP configuration files.
## </summary>
## <param name="domain">
## <summary>
2005-08-17 18:33:43 +00:00
## Domain allowed access.
## </summary>
2005-08-17 18:33:43 +00:00
## </param>
2006-09-06 22:07:25 +00:00
## <rolecap/>
2005-08-17 18:33:43 +00:00
#
interface(`ldap_read_config',`
gen_require(`
type slapd_etc_t;
')
files_search_etc($1)
allow $1 slapd_etc_t:file { getattr read };
')
2005-09-20 20:48:17 +00:00
########################################
## <summary>
2006-08-15 20:00:58 +00:00
## Use LDAP over TCP connection. (Deprecated)
2005-09-20 20:48:17 +00:00
## </summary>
## <param name="domain">
## <summary>
2005-09-20 20:48:17 +00:00
## Domain allowed access.
## </summary>
2005-09-20 20:48:17 +00:00
## </param>
#
interface(`ldap_use',`
2006-08-15 20:00:58 +00:00
refpolicywarn(`$0($*) has been deprecated.')
2005-09-20 20:48:17 +00:00
')
########################################
## <summary>
## Connect to slapd over an unix stream socket.
## </summary>
## <param name="domain">
## <summary>
## Domain allowed access.
## </summary>
## </param>
#
interface(`ldap_stream_connect',`
gen_require(`
type slapd_t, slapd_var_run_t;
')
files_search_pids($1)
allow $1 slapd_var_run_t:sock_file write;
allow $1 slapd_t:unix_stream_socket connectto;
')