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

86 lines
1.9 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>
#######################################
## <summary>
## The per role template for the Oidentd module.
## </summary>
## <desc>
## <p>
## This template creates derived domains which are used
## for Oident daemon.
## </p>
## <p>
## This template is invoked automatically for each user, and
## generally does not need to be invoked directly
## by policy writers.
## </p>
## </desc>
## <param name="userdomain_prefix">
## <summary>
## The prefix of the user domain (e.g., user
## is the prefix for user_t).
## </summary>
## </param>
## <param name="user_domain">
## <summary>
## The type of the user domain.
## </summary>
## </param>
## <param name="user_role">
## <summary>
## The role associated with the user domain.
## </summary>
## </param>
#
2008-10-13 13:36:50 +00:00
template(`oident_per_role_template', `
2008-10-06 14:01:59 +00:00
########################################
#
# Oident daemon shared declarations
#
gen_require(`
attribute oidentd_user_content_type;
')
type $1_oidentd_home_t, oidentd_user_content_type;
2008-10-13 13:36:50 +00:00
userdom_user_home_content($1, $1_oidentd_home_t)
2008-10-06 14:01:59 +00:00
2008-10-13 13:36:50 +00:00
typeattribute $1_oidentd_home_t oidentd_user_content_type;
2008-10-06 14:01:59 +00:00
########################################
#
# Oident daemon shared policy
#
2008-10-13 13:36:50 +00:00
allow $2 $1_oidentd_home_t:file manage_file_perms;
allow $2 $1_oidentd_home_t:file relabel_file_perms;
2008-10-06 14:01:59 +00:00
')
########################################
## <summary>
## Allow the specified domain to read
## Oidentd personal configuration files.
## </summary>
## <param name="domain">
## <summary>
## Domain allowed access.
## </summary>
## </param>
#
2008-10-13 13:36:50 +00:00
interface(`oident_read_all_user_content', `
2008-10-06 14:01:59 +00:00
gen_require(`
attribute oidentd_user_content_type;
')
allow $1 oidentd_user_content_type:file read_file_perms;
userdom_search_all_users_home_dirs($1)
')