Chris PeBenito 07efe9
# Copyright (C) 2005 Tresys Technology, LLC
Chris PeBenito 07efe9
Chris PeBenito 07efe9
#######################################
Chris PeBenito 07efe9
#
Chris PeBenito bd202f
# locallogin_transition(domain)
Chris PeBenito 07efe9
#
Chris PeBenito 07efe9
define(`locallogin_transition',`
Chris PeBenito bd202f
requires_block_template(`$0'_depend)
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 bd202f
# locallogin_use_file_descriptors(domain)
Chris PeBenito 3ce6cb
#
Chris PeBenito 3ce6cb
define(`locallogin_use_file_descriptors',`
Chris PeBenito bd202f
requires_block_template(`$0'_depend)
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
')