selinux-refpolicy/policy/modules/admin/sudo.te

35 lines
793 B
Plaintext
Raw Normal View History

policy_module(sudo)
2005-08-09 19:30:43 +00:00
## <desc>
## <p>
## Determine whether all sudo domains
## can connect to TCP HTTP ports. This
## is needed if an additional authentication
## mechanism via an HTTP server is
## required for users to use sudo.
## </p>
## </desc>
gen_tunable(sudo_all_tcp_connect_http_port, false)
## <desc>
## <p>
## Determine whether the user application exec
## domain attribute should be respected for sudo
## access. If not enabled, only user domains
## themselves may use sudo.
## </p>
## </desc>
gen_tunable(sudo_allow_user_exec_domains, false)
2005-08-09 19:30:43 +00:00
########################################
#
# Declarations
2009-07-28 14:29:11 +00:00
attribute sudodomain;
2005-08-09 19:30:43 +00:00
type sudo_exec_t;
2007-07-19 18:57:48 +00:00
application_executable_file(sudo_exec_t)
tunable_policy(`sudo_all_tcp_connect_http_port',`
corenet_tcp_connect_http_port(sudodomain)
')