selinux-policy/policy/modules/services/ldap.if
2006-12-12 20:08:08 +00:00

76 lines
1.4 KiB
Plaintext

## <summary>OpenLDAP directory server</summary>
########################################
## <summary>
## Read the contents of the OpenLDAP
## database directories.
## </summary>
## <param name="domain">
## <summary>
## Domain allowed access.
## </summary>
## </param>
#
interface(`ldap_list_db',`
gen_require(`
type slapd_db_t;
')
allow $1 slapd_db_t:dir list_dir_perms;
')
########################################
## <summary>
## Read the OpenLDAP configuration files.
## </summary>
## <param name="domain">
## <summary>
## Domain allowed access.
## </summary>
## </param>
## <rolecap/>
#
interface(`ldap_read_config',`
gen_require(`
type slapd_etc_t;
')
files_search_etc($1)
allow $1 slapd_etc_t:file { getattr read };
')
########################################
## <summary>
## Use LDAP over TCP connection. (Deprecated)
## </summary>
## <param name="domain">
## <summary>
## Domain allowed access.
## </summary>
## </param>
#
interface(`ldap_use',`
refpolicywarn(`$0($*) has been deprecated.')
')
########################################
## <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;
')