selinux-refpolicy/policy/modules/system/userdomain.te

133 lines
2.8 KiB
Plaintext
Raw Normal View History

policy_module(userdomain, 4.20.3)
########################################
#
# Declarations
#
## <desc>
## <p>
## Allow users to connect to mysql
## </p>
## </desc>
2009-06-26 14:40:13 +00:00
gen_tunable(allow_user_mysql_connect, false)
## <desc>
## <p>
## Allow users to connect to PostgreSQL
## </p>
## </desc>
2009-06-26 14:40:13 +00:00
gen_tunable(allow_user_postgresql_connect, false)
## <desc>
## <p>
## Allow regular users direct mouse access
## </p>
## </desc>
2009-06-26 14:40:13 +00:00
gen_tunable(user_direct_mouse, false)
## <desc>
## <p>
## Allow users to read system messages.
## </p>
## </desc>
2009-06-26 14:40:13 +00:00
gen_tunable(user_dmesg, false)
## <desc>
## <p>
## Allow user to r/w files on filesystems
## that do not have extended attributes (FAT, CDROM, FLOPPY)
## </p>
## </desc>
2009-06-26 14:40:13 +00:00
gen_tunable(user_rw_noexattrfile, false)
## <desc>
## <p>
## Allow user to execute files on filesystems
## that do not have extended attributes (FAT, CDROM, FLOPPY)
## </p>
## </desc>
gen_tunable(user_exec_noexattrfile, false)
## <desc>
## <p>
## Allow user to write files on removable
## devices (e.g. external USB memory
## devices or floppies)
## </p>
## </desc>
gen_tunable(user_write_removable, false)
## <desc>
## <p>
## Allow w to display everyone
## </p>
## </desc>
2009-06-26 14:40:13 +00:00
gen_tunable(user_ttyfile_stat, false)
2009-08-31 13:03:51 +00:00
attribute admindomain;
2009-08-31 12:44:11 +00:00
# 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;
2008-11-05 16:10:46 +00:00
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;
2008-11-05 16:10:46 +00:00
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;
2008-11-05 16:10:46 +00:00
dev_node(user_devpts_t)
files_type(user_devpts_t)
ubac_constrained(user_devpts_t)
type user_tmp_t;
2008-11-05 16:10:46 +00:00
files_tmp_file(user_tmp_t)
userdom_user_home_content(user_tmp_t)
type user_tmpfs_t;
2008-11-05 16:10:46 +00:00
files_tmpfs_file(user_tmpfs_t)
userdom_user_home_content(user_tmpfs_t)
type user_tty_device_t;
2008-11-05 16:10:46 +00:00
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)