2021-02-03 13:38:26 +00:00
|
|
|
policy_module(userdomain, 4.21.0)
|
2005-05-16 21:10:33 +00:00
|
|
|
|
|
|
|
########################################
|
|
|
|
#
|
|
|
|
# Declarations
|
|
|
|
#
|
|
|
|
|
2007-03-26 18:41:45 +00:00
|
|
|
## <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)
|
2007-03-26 18:41:45 +00:00
|
|
|
|
2007-06-19 14:30:06 +00:00
|
|
|
## <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)
|
2007-06-19 14:30:06 +00:00
|
|
|
|
2007-03-26 18:41:45 +00:00
|
|
|
## <desc>
|
|
|
|
## <p>
|
|
|
|
## Allow regular users direct mouse access
|
|
|
|
## </p>
|
|
|
|
## </desc>
|
2009-06-26 14:40:13 +00:00
|
|
|
gen_tunable(user_direct_mouse, false)
|
2007-03-26 18:41:45 +00:00
|
|
|
|
|
|
|
## <desc>
|
|
|
|
## <p>
|
|
|
|
## Allow users to read system messages.
|
|
|
|
## </p>
|
|
|
|
## </desc>
|
2009-06-26 14:40:13 +00:00
|
|
|
gen_tunable(user_dmesg, false)
|
2007-03-26 18:41:45 +00:00
|
|
|
|
|
|
|
## <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)
|
2007-03-26 18:41:45 +00:00
|
|
|
|
2016-09-05 16:58:48 +00:00
|
|
|
## <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)
|
|
|
|
|
2007-03-26 18:41:45 +00:00
|
|
|
## <desc>
|
|
|
|
## <p>
|
|
|
|
## Allow w to display everyone
|
|
|
|
## </p>
|
|
|
|
## </desc>
|
2009-06-26 14:40:13 +00:00
|
|
|
gen_tunable(user_ttyfile_stat, false)
|
2007-03-26 18:41:45 +00:00
|
|
|
|
2009-08-31 13:03:51 +00:00
|
|
|
attribute admindomain;
|
2009-08-31 12:44:11 +00:00
|
|
|
|
2005-05-16 21:10:33 +00:00
|
|
|
# all user domains
|
|
|
|
attribute userdomain;
|
|
|
|
|
|
|
|
# unprivileged user domains
|
|
|
|
attribute unpriv_userdomain;
|
|
|
|
|
2012-11-05 11:55:13 +00:00
|
|
|
attribute user_home_content_type;
|
|
|
|
|
2017-12-12 02:15:18 +00:00
|
|
|
# dirs/files/etc created in /run/user/%{USERID}/
|
|
|
|
attribute user_runtime_content_type;
|
|
|
|
|
2019-09-11 00:52:54 +00:00
|
|
|
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)
|
|
|
|
|
2019-09-11 00:52:54 +00:00
|
|
|
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)
|
|
|
|
|
2016-09-08 16:38:37 +00:00
|
|
|
type user_cert_t;
|
|
|
|
userdom_user_home_content(user_cert_t)
|
|
|
|
|
2019-09-11 00:52:54 +00:00
|
|
|
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)
|
|
|
|
|
2019-09-11 00:52:54 +00:00
|
|
|
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)
|
|
|
|
|
2019-09-11 00:52:54 +00:00
|
|
|
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)
|
|
|
|
|
2019-09-11 00:52:54 +00:00
|
|
|
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)
|
2016-06-01 16:08:54 +00:00
|
|
|
|
|
|
|
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)
|
2017-12-12 02:15:18 +00:00
|
|
|
userdom_user_runtime_content(user_runtime_t)
|