add files_make_temporary_file and remove type attribute from
create_private_tmp
This commit is contained in:
parent
0b1af28713
commit
38e24ae49e
@ -13,7 +13,7 @@ domain_make_system_domain(netutils_t,netutils_exec_t)
|
|||||||
role system_r types netutils_t;
|
role system_r types netutils_t;
|
||||||
|
|
||||||
type netutils_tmp_t;
|
type netutils_tmp_t;
|
||||||
files_make_file(netutils_tmp_t)
|
files_make_temporary_file(netutils_tmp_t)
|
||||||
|
|
||||||
type ping_t; #, nscd_client_domain;
|
type ping_t; #, nscd_client_domain;
|
||||||
type ping_exec_t;
|
type ping_exec_t;
|
||||||
|
@ -28,7 +28,7 @@ type crack_db_t; #, usercanread;
|
|||||||
files_make_file(crack_db_t)
|
files_make_file(crack_db_t)
|
||||||
|
|
||||||
type crack_tmp_t;
|
type crack_tmp_t;
|
||||||
files_make_file(crack_tmp_t)
|
files_make_temporary_file(crack_tmp_t)
|
||||||
|
|
||||||
type groupadd_t; #, nscd_client_domain;
|
type groupadd_t; #, nscd_client_domain;
|
||||||
type groupadd_exec_t;
|
type groupadd_exec_t;
|
||||||
|
@ -25,7 +25,7 @@ domain_make_entrypoint_file($1_gpg_agent_t,gpg_agent_exec_t)
|
|||||||
role $1_r types $1_gpg_agent_t;
|
role $1_r types $1_gpg_agent_t;
|
||||||
|
|
||||||
type $1_gpg_agent_tmp_t;
|
type $1_gpg_agent_tmp_t;
|
||||||
files_make_file($1_gpg_agent_tmp_t)
|
files_make_temporary_file($1_gpg_agent_tmp_t)
|
||||||
|
|
||||||
type $1_gpg_secret_t; #, $1_file_type;
|
type $1_gpg_secret_t; #, $1_file_type;
|
||||||
files_make_file($1_gpg_secret_t)
|
files_make_file($1_gpg_secret_t)
|
||||||
|
@ -43,7 +43,7 @@ files_make_file(bootloader_etc_t)
|
|||||||
# it consists of files and device nodes
|
# it consists of files and device nodes
|
||||||
#
|
#
|
||||||
type bootloader_tmp_t;
|
type bootloader_tmp_t;
|
||||||
files_make_file(bootloader_tmp_t)
|
files_make_temporary_file(bootloader_tmp_t)
|
||||||
devices_make_device_node(bootloader_tmp_t)
|
devices_make_device_node(bootloader_tmp_t)
|
||||||
|
|
||||||
# kernel modules
|
# kernel modules
|
||||||
|
@ -28,7 +28,7 @@ type crond_log_t;
|
|||||||
logging_make_log_file(crond_log_t)
|
logging_make_log_file(crond_log_t)
|
||||||
|
|
||||||
type crond_tmp_t;
|
type crond_tmp_t;
|
||||||
files_make_file(crond_tmp_t)
|
files_make_temporary_file(crond_tmp_t)
|
||||||
|
|
||||||
type crond_var_run_t;
|
type crond_var_run_t;
|
||||||
files_make_file(crond_var_run_t)
|
files_make_file(crond_var_run_t)
|
||||||
@ -43,7 +43,7 @@ corecommands_make_shell_entrypoint(system_crond_t)
|
|||||||
role system_r types system_crond_t;
|
role system_r types system_crond_t;
|
||||||
|
|
||||||
type system_crond_tmp_t;
|
type system_crond_tmp_t;
|
||||||
files_make_file(system_crond_tmp_t)
|
files_make_temporary_file(system_crond_tmp_t)
|
||||||
|
|
||||||
########################################
|
########################################
|
||||||
#
|
#
|
||||||
|
@ -13,7 +13,7 @@ type $1_mail_t;
|
|||||||
domain_make_domain($1_mail_t)
|
domain_make_domain($1_mail_t)
|
||||||
|
|
||||||
type $1_mail_tmp_t;
|
type $1_mail_tmp_t;
|
||||||
files_make_file($1_mail_tmp_t)
|
files_make_temporary_file($1_mail_tmp_t)
|
||||||
|
|
||||||
logging_send_system_log_message($1_mail_t)
|
logging_send_system_log_message($1_mail_t)
|
||||||
|
|
||||||
|
@ -17,7 +17,7 @@ authlogin_make_login_program_entrypoint(remote_login_t)
|
|||||||
role system_r types remote_login_t;
|
role system_r types remote_login_t;
|
||||||
|
|
||||||
type remote_login_tmp_t;
|
type remote_login_tmp_t;
|
||||||
files_make_file(remote_login_tmp_t)
|
files_make_temporary_file(remote_login_tmp_t)
|
||||||
|
|
||||||
########################################
|
########################################
|
||||||
#
|
#
|
||||||
|
@ -33,7 +33,7 @@ type pam_exec_t;
|
|||||||
domain_make_entrypoint_file(pam_t,pam_exec_t)
|
domain_make_entrypoint_file(pam_t,pam_exec_t)
|
||||||
|
|
||||||
type pam_tmp_t;
|
type pam_tmp_t;
|
||||||
files_make_file(pam_tmp_t)
|
files_make_temporary_file(pam_tmp_t)
|
||||||
|
|
||||||
type pam_var_console_t; #, nscd_client_domain
|
type pam_var_console_t; #, nscd_client_domain
|
||||||
files_make_file(pam_var_console_t)
|
files_make_file(pam_var_console_t)
|
||||||
|
@ -15,6 +15,20 @@ define(`files_make_file_depend',`
|
|||||||
attribute file_type;
|
attribute file_type;
|
||||||
')
|
')
|
||||||
|
|
||||||
|
########################################
|
||||||
|
#
|
||||||
|
# files_make_temporary_file(type)
|
||||||
|
#
|
||||||
|
define(`files_make_temporary_file',`
|
||||||
|
requires_block_template(`$0'_depend)
|
||||||
|
files_make_file($1)
|
||||||
|
typeattribute $1 tmpfile;
|
||||||
|
')
|
||||||
|
|
||||||
|
define(`files_make_temporary_file_depend',`
|
||||||
|
attribute tmpfile;
|
||||||
|
')
|
||||||
|
|
||||||
########################################
|
########################################
|
||||||
#
|
#
|
||||||
# files_make_mountpoint(type)
|
# files_make_mountpoint(type)
|
||||||
@ -462,11 +476,9 @@ type_transition $1 tmp_t:file $2;
|
|||||||
',`
|
',`
|
||||||
type_transition $1 tmp_t:$3 $2;
|
type_transition $1 tmp_t:$3 $2;
|
||||||
')
|
')
|
||||||
typeattribute $1 tmpfile;
|
|
||||||
')
|
')
|
||||||
|
|
||||||
define(`files_create_private_tmp_data_depend',`
|
define(`files_create_private_tmp_data_depend',`
|
||||||
attribute tmpfile;
|
|
||||||
type tmp_t;
|
type tmp_t;
|
||||||
class dir { getattr search read write add_name };
|
class dir { getattr search read write add_name };
|
||||||
')
|
')
|
||||||
|
@ -10,12 +10,12 @@ domain_make_file_descriptors_widely_inheritable(getty_t)
|
|||||||
type getty_etc_t;
|
type getty_etc_t;
|
||||||
typealias getty_etc_t alias etc_getty_t;
|
typealias getty_etc_t alias etc_getty_t;
|
||||||
|
|
||||||
type getty_tmp_t;
|
|
||||||
files_make_file(getty_tmp_t)
|
|
||||||
|
|
||||||
type getty_log_t;
|
type getty_log_t;
|
||||||
logging_make_log_file(getty_log_t)
|
logging_make_log_file(getty_log_t)
|
||||||
|
|
||||||
|
type getty_tmp_t;
|
||||||
|
files_make_temporary_file(getty_tmp_t)
|
||||||
|
|
||||||
########################################
|
########################################
|
||||||
#
|
#
|
||||||
# Getty local policy
|
# Getty local policy
|
||||||
|
@ -56,7 +56,7 @@ type initrc_state_t;
|
|||||||
files_make_file(initrc_state_t)
|
files_make_file(initrc_state_t)
|
||||||
|
|
||||||
type initrc_tmp_t;
|
type initrc_tmp_t;
|
||||||
files_make_file(initrc_tmp_t)
|
files_make_temporary_file(initrc_tmp_t)
|
||||||
|
|
||||||
type run_init_t;
|
type run_init_t;
|
||||||
domain_make_domain(run_init_t)
|
domain_make_domain(run_init_t)
|
||||||
|
@ -13,7 +13,7 @@ domain_make_system_domain(iptables_t,iptables_exec_t)
|
|||||||
role system_r types iptables_t;
|
role system_r types iptables_t;
|
||||||
|
|
||||||
type iptables_tmp_t;
|
type iptables_tmp_t;
|
||||||
files_make_file(iptables_tmp_t)
|
files_make_temporary_file(iptables_tmp_t)
|
||||||
|
|
||||||
type iptables_var_run_t; #, pidfile;
|
type iptables_var_run_t; #, pidfile;
|
||||||
files_make_file(iptables_var_run_t)
|
files_make_file(iptables_var_run_t)
|
||||||
|
@ -12,7 +12,7 @@ type klogd_exec_t;
|
|||||||
domain_make_daemon_domain(klogd_t,klogd_exec_t)
|
domain_make_daemon_domain(klogd_t,klogd_exec_t)
|
||||||
|
|
||||||
type klogd_tmp_t;
|
type klogd_tmp_t;
|
||||||
files_make_file(klogd_tmp_t)
|
files_make_temporary_file(klogd_tmp_t)
|
||||||
|
|
||||||
type klogd_var_run_t;
|
type klogd_var_run_t;
|
||||||
files_make_file(klogd_var_run_t)
|
files_make_file(klogd_var_run_t)
|
||||||
@ -22,7 +22,7 @@ type syslogd_exec_t;
|
|||||||
domain_make_daemon_domain(syslogd_t,syslogd_exec_t)
|
domain_make_daemon_domain(syslogd_t,syslogd_exec_t)
|
||||||
|
|
||||||
type syslogd_tmp_t;
|
type syslogd_tmp_t;
|
||||||
files_make_file(syslogd_tmp_t)
|
files_make_temporary_file(syslogd_tmp_t)
|
||||||
|
|
||||||
type syslogd_var_run_t;
|
type syslogd_var_run_t;
|
||||||
files_make_file(syslogd_var_run_t)
|
files_make_file(syslogd_var_run_t)
|
||||||
|
@ -31,7 +31,7 @@ domain_make_system_domain(update_modules_t,update_modules_exec_t)
|
|||||||
role system_r types update_modules_t;
|
role system_r types update_modules_t;
|
||||||
|
|
||||||
type update_modules_tmp_t;
|
type update_modules_tmp_t;
|
||||||
files_make_file(update_modules_tmp_t)
|
files_make_temporary_file(update_modules_tmp_t)
|
||||||
|
|
||||||
########################################
|
########################################
|
||||||
#
|
#
|
||||||
|
@ -6,7 +6,7 @@ domain_make_system_domain(mount_t,mount_exec_t)
|
|||||||
role system_r types mount_t;
|
role system_r types mount_t;
|
||||||
|
|
||||||
type mount_tmp_t;
|
type mount_tmp_t;
|
||||||
files_make_file(mount_tmp_t)
|
files_make_temporary_file(mount_tmp_t)
|
||||||
|
|
||||||
########################################
|
########################################
|
||||||
#
|
#
|
||||||
|
@ -16,7 +16,7 @@ type dhcpc_state_t;
|
|||||||
files_make_file(dhcpc_state_t)
|
files_make_file(dhcpc_state_t)
|
||||||
|
|
||||||
type dhcpc_tmp_t;
|
type dhcpc_tmp_t;
|
||||||
files_make_file(dhcpc_tmp_t)
|
files_make_temporary_file(dhcpc_tmp_t)
|
||||||
|
|
||||||
type dhcpc_var_run_t;
|
type dhcpc_var_run_t;
|
||||||
files_make_file(dhcpc_var_run_t)
|
files_make_file(dhcpc_var_run_t)
|
||||||
|
Loading…
Reference in New Issue
Block a user