HEX
Server: Apache
System: Linux server.enlacediseno.com 4.18.0-553.62.1.el8_10.x86_64 #1 SMP Wed Jul 16 04:08:25 EDT 2025 x86_64
User: maor (1069)
PHP: 7.3.33
Disabled: exec,passthru,shell_exec,system
Upload Files
File: //usr/share/selinux/devel/include/contrib/cgdcbxd.if
## <summary>policy for cgdcbxd</summary>

########################################
## <summary>
##	Execute TEMPLATE in the cgdcbxd domin.
## </summary>
## <param name="domain">
## <summary>
##	Domain allowed to transition.
## </summary>
## </param>
#
interface(`cgdcbxd_domtrans',`
	gen_require(`
		type cgdcbxd_t, cgdcbxd_exec_t;
	')

	corecmd_search_bin($1)
	domtrans_pattern($1, cgdcbxd_exec_t, cgdcbxd_t)
')
########################################
## <summary>
##	Read cgdcbxd PID files.
## </summary>
## <param name="domain">
##	<summary>
##	Domain allowed access.
##	</summary>
## </param>
#
interface(`cgdcbxd_read_pid_files',`
	gen_require(`
		type cgdcbxd_var_run_t;
	')

	files_search_pids($1)
	read_files_pattern($1, cgdcbxd_var_run_t, cgdcbxd_var_run_t)
')

########################################
## <summary>
##	Execute cgdcbxd server in the cgdcbxd domain.
## </summary>
## <param name="domain">
##	<summary>
##	Domain allowed to transition.
##	</summary>
## </param>
#
interface(`cgdcbxd_systemctl',`
	gen_require(`
		type cgdcbxd_t;
		type cgdcbxd_unit_file_t;
	')

	systemd_exec_systemctl($1)
        systemd_read_fifo_file_passwd_run($1)
	allow $1 cgdcbxd_unit_file_t:file read_file_perms;
	allow $1 cgdcbxd_unit_file_t:service manage_service_perms;

	ps_process_pattern($1, cgdcbxd_t)
')


########################################
## <summary>
##	All of the rules required to administrate
##	an cgdcbxd environment
## </summary>
## <param name="domain">
##	<summary>
##	Domain allowed access.
##	</summary>
## </param>
## <rolecap/>
#
interface(`cgdcbxd_admin',`
	gen_require(`
		type cgdcbxd_t;
		type cgdcbxd_var_run_t;
    	type cgdcbxd_unit_file_t;
	')

	allow $1 cgdcbxd_t:process { signal_perms };
	ps_process_pattern($1, cgdcbxd_t)

    tunable_policy(`deny_ptrace',`',`
        allow $1 cgdcbxd_t:process ptrace;
    ')

	files_search_pids($1)
	admin_pattern($1, cgdcbxd_var_run_t)

	cgdcbxd_systemctl($1)
	admin_pattern($1, cgdcbxd_unit_file_t)
	allow $1 cgdcbxd_unit_file_t:service all_service_perms;

')