3 >�\� � @ s d Z dZdZdZdZdZdZdS )z? type TEMPLATETYPE_log_t; logging_log_file(TEMPLATETYPE_log_t) a< manage_dirs_pattern(TEMPLATETYPE_t, TEMPLATETYPE_log_t, TEMPLATETYPE_log_t) manage_files_pattern(TEMPLATETYPE_t, TEMPLATETYPE_log_t, TEMPLATETYPE_log_t) manage_lnk_files_pattern(TEMPLATETYPE_t, TEMPLATETYPE_log_t, TEMPLATETYPE_log_t) logging_log_filetrans(TEMPLATETYPE_t, TEMPLATETYPE_log_t, { dir file lnk_file }) a� ######################################## ## <summary> ## Read TEMPLATETYPE's log files. ## </summary> ## <param name="domain"> ## <summary> ## Domain allowed access. ## </summary> ## </param> ## <rolecap/> # interface(`TEMPLATETYPE_read_log',` gen_require(` type TEMPLATETYPE_log_t; ') logging_search_logs($1) read_files_pattern($1, TEMPLATETYPE_log_t, TEMPLATETYPE_log_t) ') ######################################## ## <summary> ## Append to TEMPLATETYPE log files. ## </summary> ## <param name="domain"> ## <summary> ## Domain allowed access. ## </summary> ## </param> # interface(`TEMPLATETYPE_append_log',` gen_require(` type TEMPLATETYPE_log_t; ') logging_search_logs($1) append_files_pattern($1, TEMPLATETYPE_log_t, TEMPLATETYPE_log_t) ') ######################################## ## <summary> ## Manage TEMPLATETYPE log files ## </summary> ## <param name="domain"> ## <summary> ## Domain allowed access. ## </summary> ## </param> # interface(`TEMPLATETYPE_manage_log',` gen_require(` type TEMPLATETYPE_log_t; ') logging_search_logs($1) manage_dirs_pattern($1, TEMPLATETYPE_log_t, TEMPLATETYPE_log_t) manage_files_pattern($1, TEMPLATETYPE_log_t, TEMPLATETYPE_log_t) manage_lnk_files_pattern($1, TEMPLATETYPE_log_t, TEMPLATETYPE_log_t) ') z type TEMPLATETYPE_log_t;zA logging_search_logs($1) admin_pattern($1, TEMPLATETYPE_log_t) zBFILENAME -- gen_context(system_u:object_r:TEMPLATETYPE_log_t,s0) zEFILENAME(/.*)? gen_context(system_u:object_r:TEMPLATETYPE_log_t,s0) N)Zte_typesZte_rulesZif_rulesZif_admin_typesZif_admin_rulesZfc_fileZfc_dir� r r �/usr/lib/python3.6/var_log.py�<module> s ?