Blame refpolicy/policy/modules/system/locallogin.if
|
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 |
')
|