selinux-policy/policy/modules/services/oident.if

103 lines
2.2 KiB
Plaintext
Raw Normal View History

2008-10-06 14:01:59 +00:00
## <summary>SELinux policy for Oident daemon.</summary>
## <desc>
## <p>
## Oident daemon is a server that implements the TCP/IP
## standard IDENT user identification protocol as
## specified in the RFC 1413 document.
## </p>
## </desc>
2008-11-05 16:10:46 +00:00
########################################
2008-10-06 14:01:59 +00:00
## <summary>
2008-11-05 16:10:46 +00:00
## Allow the specified domain to read
## Oidentd personal configuration files.
2008-10-06 14:01:59 +00:00
## </summary>
2008-11-05 16:10:46 +00:00
## <param name="domain">
## <summary>
## Domain allowed access.
## </summary>
2008-10-06 14:01:59 +00:00
## </param>
#
interface(`oident_read_user_content',`
2008-10-06 14:01:59 +00:00
gen_require(`
2008-11-05 16:10:46 +00:00
type oidentd_home_t;
2008-10-06 14:01:59 +00:00
')
2008-11-05 16:10:46 +00:00
allow $1 oidentd_home_t:file read_file_perms;
userdom_search_user_home_dirs($1)
')
2008-10-06 14:01:59 +00:00
2008-11-05 16:10:46 +00:00
########################################
## <summary>
## Allow the specified domain to create, read, write, and delete
## Oidentd personal configuration files.
## </summary>
## <param name="domain">
## <summary>
## Domain allowed access.
## </summary>
## </param>
#
interface(`oident_manage_user_content',`
2008-11-05 16:10:46 +00:00
gen_require(`
type oidentd_home_t;
')
2008-10-06 14:01:59 +00:00
2008-11-05 16:10:46 +00:00
allow $1 oidentd_home_t:file manage_file_perms;
userdom_search_user_home_dirs($1)
2008-10-06 14:01:59 +00:00
')
########################################
## <summary>
2008-11-05 16:10:46 +00:00
## Allow the specified domain to relabel
2008-10-06 14:01:59 +00:00
## Oidentd personal configuration files.
## </summary>
## <param name="domain">
## <summary>
## Domain allowed access.
## </summary>
## </param>
#
interface(`oident_relabel_user_content',`
2008-10-06 14:01:59 +00:00
gen_require(`
2008-11-05 16:10:46 +00:00
type oidentd_home_t;
2008-10-06 14:01:59 +00:00
')
2008-11-05 16:10:46 +00:00
allow $1 oidentd_home_t:file relabel_file_perms;
userdom_search_user_home_dirs($1)
2008-10-06 14:01:59 +00:00
')
2010-09-20 12:39:27 +00:00
########################################
## <summary>
## All of the rules required to administrate
## an oident environment
## </summary>
## <param name="domain">
## <summary>
## Domain allowed access.
## </summary>
## </param>
## <param name="role">
## <summary>
## Role allowed access.
## </summary>
## </param>
## <rolecap/>
#
interface(`oident_admin',`
gen_require(`
type oidentd_t, oidentd_initrc_exec_t, oidentd_config_t;
')
allow $1 oidentd_t:process { ptrace signal_perms };
ps_process_pattern($1, oidentd_t)
init_labeled_script_domtrans($1, oidentd_initrc_exec_t)
domain_system_change_exemption($1)
role_transition $2 oidentd_initrc_exec_t system_r;
allow $2 system_r;
files_search_etc($1)
admin_pattern($1, oidentd_config_t)
')