## LTTng 2.x central tracing registry session daemon. ######################################## ## ## Execute lttng_sessiond_exec_t in the lttng_sessiond domain. ## ## ## ## Domain allowed to transition. ## ## # interface(`lttng_sessiond_domtrans',` gen_require(` type lttng_sessiond_t, lttng_sessiond_exec_t; ') corecmd_search_bin($1) domtrans_pattern($1, lttng_sessiond_exec_t, lttng_sessiond_t) ') ###################################### ## ## Execute lttng_sessiond in the caller domain. ## ## ## ## Domain allowed access. ## ## # interface(`lttng_sessiond_exec',` gen_require(` type lttng_sessiond_exec_t; ') corecmd_search_bin($1) can_exec($1, lttng_sessiond_exec_t) ') ######################################## ## ## Execute lttng_sessiond server in the lttng_sessiond domain. ## ## ## ## Domain allowed to transition. ## ## # interface(`lttng_sessiond_systemctl',` gen_require(` type lttng_sessiond_t; type lttng_sessiond_unit_file_t; ') systemd_exec_systemctl($1) systemd_read_fifo_file_passwd_run($1) allow $1 lttng_sessiond_unit_file_t:file read_file_perms; allow $1 lttng_sessiond_unit_file_t:service manage_service_perms; ps_process_pattern($1, lttng_sessiond_t) ') ######################################## ## ## All of the rules required to administrate ## an lttng_sessiond environment ## ## ## ## Domain allowed access. ## ## # interface(`lttng_sessiond_admin',` gen_require(` type lttng_sessiond_t; type lttng_sessiond_unit_file_t; ') allow $1 lttng_sessiond_t:process { signal_perms }; ps_process_pattern($1, lttng_sessiond_t) tunable_policy(`deny_ptrace',`',` allow $1 lttng_sessiond_t:process ptrace; ') lttng_sessiond_systemctl($1) admin_pattern($1, lttng_sessiond_unit_file_t) allow $1 lttng_sessiond_unit_file_t:service all_service_perms; optional_policy(` systemd_passwd_agent_exec($1) systemd_read_fifo_file_passwd_run($1) ') ') ######################################## ## ## Read and write lttng-tools shared memory. ## ## ## ## Domain allowed access. ## ## # interface(`lttng_read_shm',` gen_require(` type lttng_sessiond_tmpfs_t; ') read_files_pattern($1, lttng_sessiond_tmpfs_t, lttng_sessiond_tmpfs_t) fs_search_tmpfs($1) ')