HEX
Server: Apache
System: Linux vps-cdc32557.vps.ovh.ca 5.15.0-156-generic #166-Ubuntu SMP Sat Aug 9 00:02:46 UTC 2025 x86_64
User: hanode (1017)
PHP: 7.4.33
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: //usr/share/selinux/devel/include/services/bugzilla.if
## <summary>Bugtracker.</summary>

########################################
## <summary>
##	Search bugzilla directories.
## </summary>
## <param name="domain">
##	<summary>
##	Domain allowed access.
##	</summary>
## </param>
#
interface(`bugzilla_search_content',`
	gen_require(`
		type httpd_bugzilla_content_t;
	')

	allow $1 httpd_bugzilla_content_t:dir search_dir_perms;
')

########################################
## <summary>
##	Do not audit attempts to read and
##	write bugzilla script unix domain
##	stream sockets.
## </summary>
## <param name="domain">
##	<summary>
##	Domain to not audit.
##	</summary>
## </param>
#
interface(`bugzilla_dontaudit_rw_stream_sockets',`
	gen_require(`
		type httpd_bugzilla_script_t;
	')

	dontaudit $1 httpd_bugzilla_script_t:unix_stream_socket { read write };
')

########################################
## <summary>
##	All of the rules required to
##	administrate an bugzilla environment.
## </summary>
## <param name="domain">
##	<summary>
##	Domain allowed access.
##	</summary>
## </param>
## <param name="role" unused="true">
##	<summary>
##	Role allowed access.
##	</summary>
## </param>
## <rolecap/>
#
interface(`bugzilla_admin',`
	gen_require(`
		type httpd_bugzilla_script_t, httpd_bugzilla_content_t, httpd_bugzilla_ra_content_t;
		type httpd_bugzilla_rw_content_t, httpd_bugzilla_script_exec_t;
		type httpd_bugzilla_htaccess_t;
	')

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

	files_search_usr($1)
	admin_pattern($1, httpd_bugzilla_script_exec_t)
	admin_pattern($1, httpd_bugzilla_script_t)
	admin_pattern($1, httpd_bugzilla_content_t)
	admin_pattern($1, httpd_bugzilla_htaccess_t)
	admin_pattern($1, httpd_bugzilla_ra_content_t)

	files_search_tmp($1)
	files_search_var_lib($1)
	admin_pattern($1, httpd_bugzilla_rw_content_t)

	apache_list_sys_content($1)
')