selinux-policy/refpolicy/policy/modules/system/hostname.if
2005-05-09 13:26:33 +00:00

34 lines
902 B
Plaintext

# Copyright (C) 2005 Tresys Technology, LLC
#######################################
#
# hostname_transition(domain)
#
define(`hostname_transition',`
requires_block_template(`$0'_depend)
allow $1 hostname_exec_t:file { getattr read execute };
allow $1 hostname_t:process transition;
type_transition $1 hostname_exec_t:file hostname_t;
dontaudit $1 hostname_t:process { noatsecure siginh rlimitinh };
')
define(`hostname_transition_depend',`
type hostname_t, hostname_exec_t;
class file { getattr read execute };
class process { transition noatsecure siginh rlimitinh };
')
#######################################
#
# hostname_execute(domain)
#
define(`hostname_execute',`
requires_block_template(`$0'_depend)
allow $1 hostname_exec_t:file { getattr read execute execute_no_trans };
')
define(`hostname_execute_depend',`
type hostname_exec_t;
class file { getattr read execute execute_no_trans };
')