"default_contexts" "5" "28 2011" "Security Enhanced Linux" " SELinux"
""
default_contexts - SELinux
.
""
default_contexts , SELinux , ,
PAM "(8), . " SELinux libselinux, :
get_default_context "(3) " get_ordered_context_list "(3) " get_ordered_context_list_with_level "(3) " get_default_context_with_level "(3) " get_default_context_with_role "(3) " get_default_context_with_rolelevel "(3) " query_user_context "(3) " manual_user_enter_context "(3) "
selinux_default_contexts_path(3). :
/etc/selinux/{SELINUXTYPE}/contexts/default_contexts
{SELINUXTYPE} - selinux
config (.
selinux_config(5)).
.
" "
:
login_process user_login_process [user_login_process] ...
:
login_process
role:type[:range], , .
user_login_process
role:type[:range], , .
.
""
# ./contexts/default_contexts
system_r:crond_t:s0 system_r:system_crond_t:s0
system_r:local_login_t:s0 user_r:user_t:s0 staff_r:staff_t:s0
system_r:remote_login_t:s0 user_r:user_t:s0
system_r:sshd_t:s0 user_r:user_t:s0
system_r:sulogin_t:s0 sysadm_r:sysadm_t:s0
system_r:xdm_t:s0 user_r:user_t:s0
.
" "
.ad l
.nh
selinux "(8), " selinux_default_contexts_path "(3), " PAM "(8), " selinux_default_type_path "(3), " get_default_context "(3), " get_ordered_context_list "(3), " get_ordered_context_list_with_level "(3), " get_default_context_with_level "(3), " get_default_context_with_role "(3), " get_default_context_with_rolelevel "(3), " query_user_context "(3), " manual_user_enter_context "(3), " selinux_config "(5) "
<gammaray (at] basealt.ru>.