Chris PeBenito 17de1b
Chris PeBenito dc1920
policy_module(userdomain, 3.1.1)
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 56e1b3
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 cb10a2
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 56e1b3
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 56e1b3
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 56e1b3
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 56e1b3
gen_tunable(user_ttyfile_stat,false)
Chris PeBenito 56e1b3
Chris PeBenito 17de1b
# admin users terminals (tty and pty)
Chris PeBenito 17de1b
attribute admin_terminal;
Chris PeBenito 17de1b
Chris PeBenito 17de1b
# users home directory
Chris PeBenito 17de1b
attribute home_dir_type;
Chris PeBenito 17de1b
Chris PeBenito 17de1b
# users home directory contents
Chris PeBenito 17de1b
attribute home_type;
Chris PeBenito 17de1b
Chris PeBenito 17de1b
# The privhome attribute identifies every domain that can create files under
Chris PeBenito 17de1b
# regular user home directories in the regular context (IE act on behalf of
Chris PeBenito 17de1b
# a user in writing regular files)
Chris PeBenito 17de1b
attribute privhome;
Chris PeBenito 17de1b
Chris PeBenito 17de1b
# all unprivileged users home directories
Chris PeBenito 17de1b
attribute user_home_dir_type;
Chris PeBenito 17de1b
attribute user_home_type;
Chris PeBenito 17de1b
Chris PeBenito 17de1b
# all unprivileged users ptys
Chris PeBenito 17de1b
attribute user_ptynode;
Chris PeBenito 17de1b
Chris PeBenito 17de1b
# all unprivileged users tmp files
Chris PeBenito 17de1b
attribute user_tmpfile;
Chris PeBenito 17de1b
Chris PeBenito 17de1b
# all unprivileged users ttys
Chris PeBenito 17de1b
attribute user_ttynode;
Chris PeBenito 17de1b
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;