Chris PeBenito 42d567
Chris PeBenito 29af4c
policy_module(xguest, 1.1.0)
Chris PeBenito 42d567
Chris PeBenito 42d567
########################################
Chris PeBenito 42d567
#
Chris PeBenito 42d567
# Declarations
Chris PeBenito 42d567
#
Chris PeBenito 42d567
Chris PeBenito 42d567
## <desc>
Chris PeBenito 42d567
## 

Chris PeBenito 42d567
## Allow xguest users to mount removable media
Chris PeBenito 42d567
## 

Chris PeBenito 42d567
## </desc>
Chris PeBenito 42d567
gen_tunable(xguest_mount_media, true)
Chris PeBenito 42d567
Chris PeBenito 42d567
## <desc>
Chris PeBenito 42d567
## 

Chris PeBenito 42d567
## Allow xguest to configure Network Manager
Chris PeBenito 42d567
## 

Chris PeBenito 42d567
## </desc>
Chris PeBenito 42d567
gen_tunable(xguest_connect_network, true)
Chris PeBenito 42d567
Chris PeBenito 42d567
## <desc>
Chris PeBenito 42d567
## 

Chris PeBenito 42d567
## Allow xguest to use blue tooth devices
Chris PeBenito 42d567
## 

Chris PeBenito 42d567
## </desc>
Chris PeBenito 42d567
gen_tunable(xguest_use_bluetooth, true)
Chris PeBenito 42d567
Chris PeBenito 42d567
role xguest_r;
Chris PeBenito 42d567
Chris PeBenito 42d567
userdom_restricted_xwindows_user_template(xguest)
Chris PeBenito 42d567
Chris PeBenito 42d567
########################################
Chris PeBenito 42d567
#
Chris PeBenito 42d567
# Local policy
Chris PeBenito 42d567
#
Chris PeBenito 42d567
Chris PeBenito c06a44
ifndef(`enable_mls',`
Chris PeBenito c06a44
	fs_exec_noxattr(xguest_t)
Chris PeBenito c06a44
Chris PeBenito c06a44
	tunable_policy(`user_rw_noexattrfile',`
Chris PeBenito c06a44
		fs_manage_noxattr_fs_files(xguest_t)
Chris PeBenito c06a44
		fs_manage_noxattr_fs_dirs(xguest_t)
Chris PeBenito c06a44
		# Write floppies 
Chris PeBenito c06a44
		storage_raw_read_removable_device(xguest_t)
Chris PeBenito c06a44
		storage_raw_write_removable_device(xguest_t)
Chris PeBenito c06a44
	',`
Chris PeBenito c06a44
		storage_raw_read_removable_device(xguest_t)
Chris PeBenito c06a44
	')
Chris PeBenito c06a44
')
Chris PeBenito c06a44
Chris PeBenito 42d567
# Allow mounting of file systems
Chris PeBenito 42d567
optional_policy(`
Chris PeBenito 42d567
	tunable_policy(`xguest_mount_media',`
Chris PeBenito 42d567
		kernel_read_fs_sysctls(xguest_t)
Chris PeBenito 42d567
Chris PeBenito 42d567
		files_dontaudit_getattr_boot_dirs(xguest_t)
Chris PeBenito 42d567
		files_search_mnt(xguest_t)
Chris PeBenito 42d567
Chris PeBenito 42d567
		fs_manage_noxattr_fs_files(xguest_t)
Chris PeBenito 42d567
		fs_manage_noxattr_fs_dirs(xguest_t)
Chris PeBenito 42d567
		fs_manage_noxattr_fs_dirs(xguest_t)
Chris PeBenito 42d567
		fs_getattr_noxattr_fs(xguest_t)
Chris PeBenito 42d567
		fs_read_noxattr_fs_symlinks(xguest_t)
Chris PeBenito 42d567
Chris PeBenito 42d567
		auth_list_pam_console_data(xguest_t)
Chris PeBenito 42d567
Chris PeBenito 42d567
		init_read_utmp(xguest_t)
Chris PeBenito 42d567
	')
Chris PeBenito 42d567
')
Chris PeBenito 42d567
Chris PeBenito 42d567
optional_policy(`
Chris PeBenito 42d567
	tunable_policy(`xguest_use_bluetooth',`
Chris PeBenito 42d567
		bluetooth_dbus_chat(xguest_t)
Chris PeBenito 42d567
	')
Chris PeBenito 42d567
')
Chris PeBenito 42d567
Chris PeBenito 42d567
optional_policy(`
Chris PeBenito 42d567
	hal_dbus_chat(xguest_t)
Chris PeBenito 42d567
')
Chris PeBenito 42d567
Chris PeBenito 42d567
optional_policy(`
Chris PeBenito 42d567
	java_role(xguest_r, xguest_t)
Chris PeBenito 42d567
')
Chris PeBenito 42d567
Chris PeBenito 42d567
optional_policy(`
Chris PeBenito 42d567
	mozilla_role(xguest_r, xguest_t)
Chris PeBenito 42d567
')
Chris PeBenito 42d567
Chris PeBenito 42d567
optional_policy(`
Chris PeBenito 42d567
	tunable_policy(`xguest_connect_network',`
Chris PeBenito 42d567
		networkmanager_dbus_chat(xguest_t)
Chris PeBenito c06a44
		corenet_tcp_connect_pulseaudio_port(xguest_t)
Chris PeBenito c06a44
		corenet_tcp_connect_ipp_port(xguest_t)
Chris PeBenito 42d567
	')
Chris PeBenito 42d567
')
Chris PeBenito 42d567
Chris PeBenito 42d567
#gen_user(xguest_u,, xguest_r, s0, s0)