policy_module(userdomain, 4.18.3)
########################################
#
# Declarations
#
##
##
## Allow users to connect to mysql
##
##
gen_tunable(allow_user_mysql_connect, false)
##
##
## Allow users to connect to PostgreSQL
##
##
gen_tunable(allow_user_postgresql_connect, false)
##
##
## Allow regular users direct mouse access
##
##
gen_tunable(user_direct_mouse, false)
##
##
## Allow users to read system messages.
##
##
gen_tunable(user_dmesg, false)
##
##
## Allow user to r/w files on filesystems
## that do not have extended attributes (FAT, CDROM, FLOPPY)
##
##
gen_tunable(user_rw_noexattrfile, false)
##
##
## Allow user to execute files on filesystems
## that do not have extended attributes (FAT, CDROM, FLOPPY)
##
##
gen_tunable(user_exec_noexattrfile, false)
##
##
## Allow user to write files on removable
## devices (e.g. external USB memory
## devices or floppies)
##
##
gen_tunable(user_write_removable, false)
##
##
## Allow w to display everyone
##
##
gen_tunable(user_ttyfile_stat, false)
attribute admindomain;
# all user domains
attribute userdomain;
# unprivileged user domains
attribute unpriv_userdomain;
attribute user_home_content_type;
# dirs/files/etc created in /run/user/%{USERID}/
attribute user_runtime_content_type;
type user_home_dir_t;
fs_associate_tmpfs(user_home_dir_t)
files_type(user_home_dir_t)
files_mountpoint(user_home_dir_t)
files_associate_tmp(user_home_dir_t)
files_poly(user_home_dir_t)
files_poly_member(user_home_dir_t)
files_poly_parent(user_home_dir_t)
ubac_constrained(user_home_dir_t)
type user_home_t;
userdom_user_home_content(user_home_t)
fs_associate_tmpfs(user_home_t)
files_associate_tmp(user_home_t)
files_poly_parent(user_home_t)
files_mountpoint(user_home_t)
type user_cert_t;
userdom_user_home_content(user_cert_t)
type user_devpts_t;
dev_node(user_devpts_t)
files_type(user_devpts_t)
ubac_constrained(user_devpts_t)
type user_tmp_t;
files_tmp_file(user_tmp_t)
userdom_user_home_content(user_tmp_t)
type user_tmpfs_t;
files_tmpfs_file(user_tmpfs_t)
userdom_user_home_content(user_tmpfs_t)
type user_tty_device_t;
dev_node(user_tty_device_t)
ubac_constrained(user_tty_device_t)
type user_runtime_root_t;
fs_associate_tmpfs(user_runtime_root_t)
files_mountpoint(user_runtime_root_t)
files_poly_parent(user_runtime_root_t)
type user_runtime_t;
fs_associate_tmpfs(user_runtime_t)
files_type(user_runtime_t)
files_mountpoint(user_runtime_t)
files_associate_tmp(user_runtime_t)
files_poly(user_runtime_t)
files_poly_member(user_runtime_t)
files_poly_parent(user_runtime_t)
ubac_constrained(user_runtime_t)
userdom_user_runtime_content(user_runtime_t)