Chris PeBenito 17de1b
Chris PeBenito f0435b
policy_module(userdomain, 4.1.3)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
########################################
Chris PeBenito 17de1b
#
Chris PeBenito 17de1b
# Declarations
Chris PeBenito 17de1b
#
Chris PeBenito 17de1b
Chris PeBenito 56e1b3
## <desc>
Chris PeBenito 56e1b3
## 

Chris PeBenito 56e1b3
## Allow users to connect to mysql
Chris PeBenito 56e1b3
## 

Chris PeBenito 56e1b3
## </desc>
Chris PeBenito 3f67f7
gen_tunable(allow_user_mysql_connect, false)
Chris PeBenito 56e1b3
Chris PeBenito 56e1b3
## <desc>
Chris PeBenito 56e1b3
## 

Chris PeBenito cb10a2
## Allow users to connect to PostgreSQL
Chris PeBenito cb10a2
## 

Chris PeBenito cb10a2
## </desc>
Chris PeBenito 3f67f7
gen_tunable(allow_user_postgresql_connect, false)
Chris PeBenito cb10a2
Chris PeBenito cb10a2
## <desc>
Chris PeBenito cb10a2
## 

Chris PeBenito 56e1b3
## Allow regular users direct mouse access
Chris PeBenito 56e1b3
## 

Chris PeBenito 56e1b3
## </desc>
Chris PeBenito 3f67f7
gen_tunable(user_direct_mouse, false)
Chris PeBenito 56e1b3
Chris PeBenito 56e1b3
## <desc>
Chris PeBenito 56e1b3
## 

Chris PeBenito 56e1b3
## Allow users to read system messages.
Chris PeBenito 56e1b3
## 

Chris PeBenito 56e1b3
## </desc>
Chris PeBenito 3f67f7
gen_tunable(user_dmesg, false)
Chris PeBenito 56e1b3
Chris PeBenito 56e1b3
## <desc>
Chris PeBenito 56e1b3
## 

Chris PeBenito 56e1b3
## Allow user to r/w files on filesystems
Chris PeBenito 56e1b3
## that do not have extended attributes (FAT, CDROM, FLOPPY)
Chris PeBenito 56e1b3
## 

Chris PeBenito 56e1b3
## </desc>
Chris PeBenito 3f67f7
gen_tunable(user_rw_noexattrfile, false)
Chris PeBenito 56e1b3
Chris PeBenito 56e1b3
## <desc>
Chris PeBenito 56e1b3
## 

Chris PeBenito 56e1b3
## Allow w to display everyone
Chris PeBenito 56e1b3
## 

Chris PeBenito 56e1b3
## </desc>
Chris PeBenito 3f67f7
gen_tunable(user_ttyfile_stat, false)
Chris PeBenito 56e1b3
Chris PeBenito 17de1b
# all user domains
Chris PeBenito 17de1b
attribute userdomain;
Chris PeBenito 17de1b
Chris PeBenito 17de1b
# unprivileged user domains
Chris PeBenito 17de1b
attribute unpriv_userdomain;
Chris PeBenito 17de1b
Chris PeBenito 17de1b
attribute untrusted_content_type;
Chris PeBenito 17de1b
attribute untrusted_content_tmp_type;
Chris PeBenito 296273
Chris PeBenito 296273
type user_home_dir_t alias { staff_home_dir_t sysadm_home_dir_t secadm_home_dir_t auditadm_home_dir_t unconfined_home_dir_t };
Chris PeBenito 296273
fs_associate_tmpfs(user_home_dir_t)
Chris PeBenito 296273
files_type(user_home_dir_t)
Chris PeBenito 296273
files_mountpoint(user_home_dir_t)
Chris PeBenito 296273
files_associate_tmp(user_home_dir_t)
Chris PeBenito 296273
files_poly(user_home_dir_t)
Chris PeBenito 296273
files_poly_member(user_home_dir_t)
Chris PeBenito 296273
files_poly_parent(user_home_dir_t)
Chris PeBenito 296273
ubac_constrained(user_home_dir_t)
Chris PeBenito 296273
Chris PeBenito 296273
type user_home_t alias { staff_home_t sysadm_home_t secadm_home_t auditadm_home_t unconfined_home_t };
Chris PeBenito 296273
typealias user_home_t alias { staff_untrusted_content_t sysadm_untrusted_content_t secadm_untrusted_content_t auditadm_untrusted_content_t unconfined_untrusted_content_t };
Chris PeBenito 296273
userdom_user_home_content(user_home_t)
Chris PeBenito 296273
fs_associate_tmpfs(user_home_t)
Chris PeBenito 296273
files_associate_tmp(user_home_t)
Chris PeBenito 296273
files_poly_member(user_home_t)
Chris PeBenito 296273
files_poly_parent(user_home_t)
Chris PeBenito 296273
files_mountpoint(user_home_t)
Chris PeBenito 296273
ubac_constrained(user_home_t)
Chris PeBenito 296273
Chris PeBenito 296273
type user_devpts_t alias { staff_devpts_t sysadm_devpts_t secadm_devpts_t auditadm_devpts_t unconfined_devpts_t };
Chris PeBenito 296273
dev_node(user_devpts_t)
Chris PeBenito 296273
files_type(user_devpts_t)
Chris PeBenito 296273
ubac_constrained(user_devpts_t)
Chris PeBenito 296273
Chris PeBenito 296273
type user_tmp_t alias { staff_tmp_t sysadm_tmp_t secadm_tmp_t auditadm_tmp_t unconfined_tmp_t };
Chris PeBenito 296273
typealias user_tmp_t alias { staff_untrusted_content_tmp_t sysadm_untrusted_content_tmp_t secadm_untrusted_content_tmp_t auditadm_untrusted_content_tmp_t unconfined_untrusted_content_tmp_t };
Chris PeBenito 296273
files_tmp_file(user_tmp_t)
Chris PeBenito 296273
userdom_user_home_content(user_tmp_t)
Chris PeBenito 296273
Chris PeBenito 296273
type user_tmpfs_t alias { staff_tmpfs_t sysadm_tmpfs_t secadm_tmpfs_t auditadm_tmpfs_t unconfined_tmpfs_t };
Chris PeBenito 296273
files_tmpfs_file(user_tmpfs_t)
Chris PeBenito 296273
userdom_user_home_content(user_tmpfs_t)
Chris PeBenito 296273
Chris PeBenito 296273
type user_tty_device_t alias { staff_tty_device_t sysadm_tty_device_t secadm_tty_device_t auditadm_tty_device_t unconfined_tty_device_t };
Chris PeBenito 296273
dev_node(user_tty_device_t)
Chris PeBenito 296273
ubac_constrained(user_tty_device_t)