HEX
Server: Apache
System: Linux nc-ph-4101.simplemoneygoals.com 5.14.0-503.21.1.el9_5.x86_64 #1 SMP PREEMPT_DYNAMIC Sun Jan 12 09:45:05 EST 2025 x86_64
User: dailygoldindex (1004)
PHP: 8.1.33
Disabled: NONE
Upload Files
File: //usr/share/udica/templates/log_container.cil
(block log_container
	(optional log_container_optional
		(allow process var_t (dir (getattr search open)))
		(allow process logfile (dir (ioctl read getattr lock search open)))
		(allow process logfile (file (ioctl read getattr lock open map)))
		(allow process auditd_log_t (dir (ioctl read getattr lock search open)))
		(allow process auditd_log_t (file (ioctl read getattr lock open)))
	)
)


(block log_rw_container
	(blockinherit log_container)

	(optional log_rw_container_optional
		(allow process logfile (dir (ioctl read write create getattr setattr lock add_name search open)))
		(allow process logfile (file (ioctl read write create getattr setattr lock append open)))
		(allow process logfile (lnk_file (ioctl read write getattr lock append open)))
		(allow process var_t (dir (getattr search open)))
		(allow process auditd_log_t (dir (ioctl read getattr lock search open)))
		(allow process auditd_log_t (file (ioctl read getattr lock open)))
	)
)

(block log_manage_container
	(blockinherit log_rw_container)

	(optional log_manage_container_optional
		(allow process logfile (dir (ioctl read write create getattr setattr lock unlink link rename add_name remove_name reparent search rmdir open)))
		(allow process logfile (file (ioctl read write create getattr setattr lock append unlink link rename open)))
		(allow process logfile (lnk_file (ioctl read write create getattr setattr lock append unlink link rename)))
		(allow process auditd_log_t (dir (ioctl read write getattr lock search open)))
		(allow process auditd_log_t (file (ioctl read write getattr lock open)))
	)
)