Chris PeBenito 57a96c
Chris PeBenito c12621
policy_module(firstboot, 1.9.2)
Chris PeBenito 57a96c
Chris PeBenito 41c480
gen_require(`
Chris PeBenito 41c480
	class passwd rootok;
Chris PeBenito 41c480
')
Chris PeBenito 41c480
Chris PeBenito 57a96c
########################################
Chris PeBenito 57a96c
#
Chris PeBenito 57a96c
# Declarations
Chris PeBenito 57a96c
#
Chris PeBenito 57a96c
Chris PeBenito 57a96c
type firstboot_t;
Chris PeBenito 57a96c
type firstboot_exec_t;
Chris PeBenito 0bfccd
init_system_domain(firstboot_t, firstboot_exec_t)
Chris PeBenito 1815ba
domain_obj_id_change_exemption(firstboot_t)
Chris PeBenito 1815ba
domain_subj_id_change_exemption(firstboot_t)
Chris PeBenito 57a96c
role system_r types firstboot_t;
Chris PeBenito 57a96c
Chris PeBenito 9bbc75
type firstboot_etc_t;
Chris PeBenito 9bbc75
files_config_file(firstboot_etc_t)
Chris PeBenito 57a96c
Chris PeBenito 57a96c
########################################
Chris PeBenito 57a96c
#
Chris PeBenito 57a96c
# Local policy
Chris PeBenito 57a96c
#
Chris PeBenito 57a96c
Chris PeBenito 57a96c
allow firstboot_t self:capability { dac_override setgid };
Chris PeBenito 57a96c
allow firstboot_t self:process setfscreate;
Chris PeBenito 0b36a2
allow firstboot_t self:fifo_file rw_fifo_file_perms;
Chris PeBenito 57a96c
allow firstboot_t self:tcp_socket create_stream_socket_perms;
Chris PeBenito 57a96c
allow firstboot_t self:unix_stream_socket { connect create };
Chris PeBenito 57a96c
allow firstboot_t self:passwd rootok;
Chris PeBenito 57a96c
Chris PeBenito 0b36a2
allow firstboot_t firstboot_etc_t:file read_file_perms;
Chris PeBenito 57a96c
Chris PeBenito 57a96c
kernel_read_system_state(firstboot_t)
Chris PeBenito 445522
kernel_read_kernel_sysctls(firstboot_t)
Chris PeBenito 57a96c
Chris PeBenito 190066
corenet_all_recvfrom_unlabeled(firstboot_t)
Chris PeBenito 190066
corenet_all_recvfrom_netlabel(firstboot_t)
Chris PeBenito 668b30
corenet_tcp_sendrecv_generic_if(firstboot_t)
Chris PeBenito c12621
corenet_tcp_sendrecv_generic_node(firstboot_t)
Chris PeBenito 57a96c
corenet_tcp_sendrecv_all_ports(firstboot_t)
Chris PeBenito 57a96c
Chris PeBenito 57a96c
dev_read_urand(firstboot_t)
Chris PeBenito 57a96c
Chris PeBenito 57a96c
selinux_get_fs_mount(firstboot_t)
Chris PeBenito 57a96c
selinux_validate_context(firstboot_t)
Chris PeBenito 57a96c
selinux_compute_access_vector(firstboot_t)
Chris PeBenito 57a96c
selinux_compute_create_context(firstboot_t)
Chris PeBenito 57a96c
selinux_compute_relabel_context(firstboot_t)
Chris PeBenito 57a96c
selinux_compute_user_contexts(firstboot_t)
Chris PeBenito 57a96c
Chris PeBenito 57a96c
auth_dontaudit_getattr_shadow(firstboot_t)
Chris PeBenito 57a96c
Chris PeBenito fb63d0
corecmd_exec_all_executables(firstboot_t)
Chris PeBenito 57a96c
Chris PeBenito 57a96c
files_exec_etc_files(firstboot_t)
Chris PeBenito 57a96c
files_manage_etc_files(firstboot_t)
Chris PeBenito 5dbda5
files_manage_etc_runtime_files(firstboot_t)
Chris PeBenito 57a96c
files_read_usr_files(firstboot_t)
Chris PeBenito 57a96c
files_manage_var_dirs(firstboot_t)
Chris PeBenito 57a96c
files_manage_var_files(firstboot_t)
Chris PeBenito 57a96c
files_manage_var_symlinks(firstboot_t)
Chris PeBenito 57a96c
Chris PeBenito 33acca
init_domtrans_script(firstboot_t)
Chris PeBenito 68228b
init_rw_utmp(firstboot_t)
Chris PeBenito 57a96c
Chris PeBenito 57a96c
libs_exec_ld_so(firstboot_t)
Chris PeBenito 57a96c
libs_exec_lib_files(firstboot_t)
Chris PeBenito 57a96c
Chris PeBenito 1c1ac6
locallogin_use_fds(firstboot_t)
Chris PeBenito 57a96c
Chris PeBenito 57a96c
logging_send_syslog_msg(firstboot_t)
Chris PeBenito 57a96c
Chris PeBenito 57a96c
miscfiles_read_localization(firstboot_t)
Chris PeBenito 57a96c
Chris PeBenito 57a96c
modutils_domtrans_insmod(firstboot_t)
Chris PeBenito 1815ba
modutils_read_module_config(firstboot_t)
Chris PeBenito 1815ba
modutils_read_module_deps(firstboot_t)
Chris PeBenito 57a96c
Chris PeBenito 296273
userdom_use_user_terminals(firstboot_t)
Chris PeBenito 57a96c
# Add/remove user home directories
Chris PeBenito 296273
userdom_manage_user_home_content_dirs(firstboot_t)
Chris PeBenito 296273
userdom_manage_user_home_content_files(firstboot_t)
Chris PeBenito 296273
userdom_manage_user_home_content_symlinks(firstboot_t)
Chris PeBenito 296273
userdom_manage_user_home_content_pipes(firstboot_t)
Chris PeBenito 296273
userdom_manage_user_home_content_sockets(firstboot_t)
Chris PeBenito 296273
userdom_home_filetrans_user_home_dir(firstboot_t)
Chris PeBenito 296273
userdom_user_home_dir_filetrans_user_home_content(firstboot_t, { dir file lnk_file fifo_file sock_file })
Chris PeBenito 605ba2
Chris PeBenito bb7170
optional_policy(`
Chris PeBenito a5e213
	hal_dbus_chat(firstboot_t)
Chris PeBenito 465510
')
Chris PeBenito 465510
Chris PeBenito 465510
optional_policy(`
Chris PeBenito 57a96c
	nis_use_ypbind(firstboot_t)
Chris PeBenito 57a96c
')
Chris PeBenito 57a96c
Chris PeBenito bb7170
optional_policy(`
Chris PeBenito 41c480
	samba_rw_config(firstboot_t)
Chris PeBenito 41c480
')
Chris PeBenito 41c480
Chris PeBenito bb7170
optional_policy(`
Chris PeBenito 350b6a
	unconfined_domtrans(firstboot_t)
Chris PeBenito 93f445
	# The big hammer
Chris PeBenito 93f445
	unconfined_domain(firstboot_t) 
Chris PeBenito 350b6a
')
Chris PeBenito 350b6a
Chris PeBenito 350b6a
optional_policy(`
Chris PeBenito 3774e4
	usermanage_domtrans_chfn(firstboot_t)
Chris PeBenito 605ba2
	usermanage_domtrans_groupadd(firstboot_t)
Chris PeBenito 3774e4
	usermanage_domtrans_passwd(firstboot_t)
Chris PeBenito 3774e4
	usermanage_domtrans_useradd(firstboot_t)
Chris PeBenito 5dbda5
	usermanage_domtrans_admin_passwd(firstboot_t)
Chris PeBenito 605ba2
')
Chris PeBenito 605ba2
Chris PeBenito 21ea2b
optional_policy(`
Chris PeBenito 296273
	xserver_rw_shm(firstboot_t)
Chris PeBenito 4bdf19
	xserver_unconfined(firstboot_t)
Chris PeBenito 21ea2b
')