3 >�\� � @ sL d Z dZdZdZdZdZdZdZdZdZ d Z d ZdZdZ d ZdZdZdZdS )z�policy_module(TEMPLATETYPE, 1.0.0) ######################################## # # Declarations # userdom_unpriv_user_template(TEMPLATETYPE) z�policy_module(TEMPLATETYPE, 1.0.0) ######################################## # # Declarations # userdom_admin_user_template(TEMPLATETYPE) z�policy_module(TEMPLATETYPE, 1.0.0) ######################################## # # Declarations # userdom_restricted_user_template(TEMPLATETYPE) z�policy_module(TEMPLATETYPE, 1.0.0) ######################################## # # Declarations # userdom_restricted_xwindows_user_template(TEMPLATETYPE) z$policy_module(TEMPLATETYPE, 1.0.0) a� policy_module(TEMPLATETYPE, 1.0.0) ## <desc> ## <p> ## Allow TEMPLATETYPE to read files in the user home directory ## </p> ## </desc> gen_tunable(TEMPLATETYPE_read_user_files, false) ## <desc> ## <p> ## Allow TEMPLATETYPE to manage files in the user home directory ## </p> ## </desc> gen_tunable(TEMPLATETYPE_manage_user_files, false) ######################################## # # Declarations # userdom_base_user_template(TEMPLATETYPE) � zO ######################################## # # TEMPLATETYPE customized policy # � zO optional_policy(` APPLICATION_role(TEMPLATETYPE_r, TEMPLATETYPE_t) ') z~ optional_policy(` gen_require(` role USER_r; ') TEMPLATETYPE_role_change(USER_r) ') a� allow TEMPLATETYPE_t self:capability { dac_override dac_read_search kill sys_ptrace sys_nice }; files_dontaudit_search_all_dirs(TEMPLATETYPE_t) selinux_get_enforce_mode(TEMPLATETYPE_t) seutil_domtrans_setfiles(TEMPLATETYPE_t) seutil_search_default_contexts(TEMPLATETYPE_t) logging_send_syslog_msg(TEMPLATETYPE_t) kernel_read_system_state(TEMPLATETYPE_t) domain_dontaudit_search_all_domains_state(TEMPLATETYPE_t) domain_dontaudit_ptrace_all_domains(TEMPLATETYPE_t) userdom_dontaudit_search_admin_dir(TEMPLATETYPE_t) userdom_dontaudit_search_user_home_dirs(TEMPLATETYPE_t) tunable_policy(`TEMPLATETYPE_read_user_files',` userdom_read_user_home_content_files(TEMPLATETYPE_t) userdom_read_user_tmp_files(TEMPLATETYPE_t) ') tunable_policy(`TEMPLATETYPE_manage_user_files',` userdom_manage_user_home_content_dirs(TEMPLATETYPE_t) userdom_manage_user_home_content_files(TEMPLATETYPE_t) userdom_manage_user_home_content_symlinks(TEMPLATETYPE_t) userdom_manage_user_tmp_files(TEMPLATETYPE_t) ') zE gen_require(` role USER_r; ') allow USER_r TEMPLATETYPE_r; zP optional_policy(` APPLICATION_admin(TEMPLATETYPE_t, TEMPLATETYPE_r) ') zz optional_policy(` gen_require(` role ROLE_r; ') allow TEMPLATETYPE_r ROLE_r; ') z_ optional_policy(` sudo_role_template(TEMPLATETYPE, TEMPLATETYPE_r, TEMPLATETYPE_t) ') z4 seutil_run_newrole(TEMPLATETYPE_t, TEMPLATETYPE_r) N)Zte_login_user_typesZte_admin_user_typesZte_min_login_user_typesZte_x_login_user_typesZte_existing_user_typesZte_root_user_typesZte_login_user_rulesZte_existing_user_rulesZte_x_login_user_rulesZte_root_user_rulesZte_transition_rulesZte_user_trans_rulesZte_admin_rulesZte_admin_trans_rulesZte_admin_domain_rulesZte_roles_rulesZ te_sudo_rulesZte_newrole_rules� r r �/usr/lib/python3.6/user.py�<module> s"