selinux-policy/refpolicy/policy/modules/system/locallogin.if

34 lines
949 B
Plaintext

# Copyright (C) 2005 Tresys Technology, LLC
#######################################
#
# locallogin_transition(domain,[`optional'])
#
define(`locallogin_transition',`
requires_block_template(locallogin_transition_depend,$2)
allow $1 login_exec_t:file { getattr read execute };
allow $1 local_login_t:process transition;
type_transition $1 login_exec_t:file local_login_t;
dontaudit $1 local_login_t:process { noatsecure siginh rlimitinh };
')
define(`locallogin_transition_depend',`
type local_login_t, login_exec_t;
class file { getattr read execute };
class process { transition noatsecure siginh rlimitinh };
')
########################################
#
# locallogin_use_file_descriptors(domain,[`optional'])
#
define(`locallogin_use_file_descriptors',`
requires_block_template(locallogin_use_file_descriptors_depend,$2)
allow $1 local_login_t:fd use;
')
define(`locallogin_use_file_descriptors_depend',`
type local_login_t;
class fd use;
')