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