|
Chris PeBenito |
5e1ed4 |
## <summary>MIT Kerberos admin and KDC</summary>
|
|
Chris PeBenito |
5e1ed4 |
## <desc>
|
|
Chris PeBenito |
5e1ed4 |
##
|
|
Chris PeBenito |
5e1ed4 |
## This policy supports:
|
|
Chris PeBenito |
5e1ed4 |
##
|
|
Chris PeBenito |
5e1ed4 |
##
|
|
Chris PeBenito |
5e1ed4 |
## Servers:
|
|
Chris PeBenito |
5e1ed4 |
##
|
|
Chris PeBenito |
5e1ed4 |
## kadmind
|
|
Chris PeBenito |
5e1ed4 |
## krb5kdc
|
|
Chris PeBenito |
5e1ed4 |
##
|
|
Chris PeBenito |
65c861 |
##
|
|
Chris PeBenito |
5e1ed4 |
##
|
|
Chris PeBenito |
5e1ed4 |
## Clients:
|
|
Chris PeBenito |
5e1ed4 |
##
|
|
Chris PeBenito |
5e1ed4 |
## kinit
|
|
Chris PeBenito |
5e1ed4 |
## kdestroy
|
|
Chris PeBenito |
5e1ed4 |
## klist
|
|
Chris PeBenito |
5e1ed4 |
## ksu (incomplete)
|
|
Chris PeBenito |
5e1ed4 |
##
|
|
Chris PeBenito |
65c861 |
##
|
|
Chris PeBenito |
5e1ed4 |
## </desc>
|
|
Chris PeBenito |
5e1ed4 |
|
|
Chris PeBenito |
5e1ed4 |
########################################
|
|
Chris PeBenito |
5e1ed4 |
## <summary>
|
|
Chris PeBenito |
5e1ed4 |
## Use kerberos services
|
|
Chris PeBenito |
5e1ed4 |
## </summary>
|
|
Chris PeBenito |
5e1ed4 |
## <param name="domain">
|
|
Chris PeBenito |
5e1ed4 |
## Domain allowed access.
|
|
Chris PeBenito |
5e1ed4 |
## </param>
|
|
Chris PeBenito |
5e1ed4 |
#
|
|
Chris PeBenito |
5e1ed4 |
interface(`kerberos_use',`
|
|
Chris PeBenito |
5e1ed4 |
gen_require(`
|
|
Chris PeBenito |
5e1ed4 |
type krb5_conf_t;
|
|
Chris PeBenito |
5e1ed4 |
class files r_file_perms;
|
|
Chris PeBenito |
5e1ed4 |
')
|
|
Chris PeBenito |
5e1ed4 |
|
|
Chris PeBenito |
5e1ed4 |
tunable_policy(`allow_kerberos',`
|
|
Chris PeBenito |
5e1ed4 |
allow $1 self:tcp_socket { create connect ioctl read getattr write setattr append bind getopt setopt shutdown };
|
|
Chris PeBenito |
5e1ed4 |
allow $1 self:udp_socket { create ioctl read getattr write setattr append bind getopt setopt shutdown connect };
|
|
Chris PeBenito |
5e1ed4 |
corenet_tcp_sendrecv_all_if($1)
|
|
Chris PeBenito |
5e1ed4 |
corenet_udp_sendrecv_all_if($1)
|
|
Chris PeBenito |
5e1ed4 |
corenet_raw_sendrecv_all_if($1)
|
|
Chris PeBenito |
5e1ed4 |
corenet_tcp_sendrecv_all_nodes($1)
|
|
Chris PeBenito |
5e1ed4 |
corenet_udp_sendrecv_all_nodes($1)
|
|
Chris PeBenito |
5e1ed4 |
corenet_raw_sendrecv_all_nodes($1)
|
|
Chris PeBenito |
5e1ed4 |
corenet_tcp_sendrecv_kerberos_port($1)
|
|
Chris PeBenito |
5e1ed4 |
corenet_udp_sendrecv_kerberos_port($1)
|
|
Chris PeBenito |
5e1ed4 |
corenet_tcp_bind_all_nodes($1)
|
|
Chris PeBenito |
5e1ed4 |
corenet_udp_bind_all_nodes($1)
|
|
Chris PeBenito |
5e1ed4 |
sysnet_read_config($1)
|
|
Chris PeBenito |
a7a979 |
')
|
|
Chris PeBenito |
5e1ed4 |
|
|
Chris PeBenito |
a7a979 |
tunable_policy(`allow_kerberos && use_dns',`
|
|
Chris PeBenito |
a7a979 |
corenet_udp_sendrecv_dns_port($1)
|
|
Chris PeBenito |
5e1ed4 |
')
|
|
Chris PeBenito |
5e1ed4 |
|
|
Chris PeBenito |
5e1ed4 |
files_search_etc($1)
|
|
Chris PeBenito |
5e1ed4 |
allow $1 krb5_conf_t:file { getattr read };
|
|
Chris PeBenito |
5e1ed4 |
dontaudit $1 krb5_conf_t:file write;
|
|
Chris PeBenito |
5e1ed4 |
')
|
|
Chris PeBenito |
5e1ed4 |
|
|
Chris PeBenito |
5e1ed4 |
########################################
|
|
Chris PeBenito |
5e1ed4 |
## <summary>
|
|
Chris PeBenito |
5e1ed4 |
## Read the kerberos configuration file (/etc/krb5.conf).
|
|
Chris PeBenito |
5e1ed4 |
## </summary>
|
|
Chris PeBenito |
5e1ed4 |
## <param name="domain">
|
|
Chris PeBenito |
5e1ed4 |
## Domain allowed access.
|
|
Chris PeBenito |
5e1ed4 |
## </param>
|
|
Chris PeBenito |
5e1ed4 |
#
|
|
Chris PeBenito |
5e1ed4 |
interface(`kerberos_read_conf',`
|
|
Chris PeBenito |
5e1ed4 |
gen_require(`
|
|
Chris PeBenito |
5e1ed4 |
type krb5_conf_t;
|
|
Chris PeBenito |
5e1ed4 |
class files r_file_perms;
|
|
Chris PeBenito |
5e1ed4 |
')
|
|
Chris PeBenito |
5e1ed4 |
|
|
Chris PeBenito |
5e1ed4 |
files_search_etc($1)
|
|
Chris PeBenito |
5e1ed4 |
allow $1 krb5_conf_t:file r_file_perms;
|
|
Chris PeBenito |
5e1ed4 |
')
|