selinux-policy/refpolicy/policy/global_tunables

486 lines
8.5 KiB
Plaintext
Raw Normal View History

2005-06-23 20:27:06 +00:00
#
# This file is for the declaration of global tunables.
# To change the default value at build time, the booleans.conf
2005-06-23 20:27:06 +00:00
# file should be used.
#
2005-10-28 18:13:44 +00:00
########################################
#
# Common tunables
#
## <desc>
## <p>
2006-01-06 22:51:40 +00:00
## Allow cvs daemon to read shadow
## </p>
## </desc>
#
2006-01-06 22:51:40 +00:00
gen_tunable(allow_cvs_read_shadow,false)
## <desc>
## <p>
## Allow making the heap executable.
## </p>
## </desc>
gen_tunable(allow_execheap,false)
## <desc>
## <p>
2005-09-15 21:03:29 +00:00
## Allow making anonymous memory executable, e.g.
## for runtime-code generation or executable stack.
## </p>
## </desc>
2005-06-13 20:44:23 +00:00
gen_tunable(allow_execmem,false)
## <desc>
## <p>
2005-09-15 21:03:29 +00:00
## Allow making a modified private file
## mapping executable (text relocation).
## </p>
## </desc>
2005-06-13 20:44:23 +00:00
gen_tunable(allow_execmod,false)
## <desc>
## <p>
2005-09-15 21:03:29 +00:00
## Allow making the stack executable via mprotect.
## Also requires allow_execmem.
## </p>
## </desc>
2005-09-15 21:03:29 +00:00
gen_tunable(allow_execstack,false)
## <desc>
## <p>
2005-10-05 19:52:53 +00:00
## Allow ftp servers to modify public files
## used for public file transfer services.
## </p>
## </desc>
2005-10-05 19:52:53 +00:00
gen_tunable(allow_ftpd_anon_write,false)
## <desc>
## <p>
2005-10-24 01:53:13 +00:00
## Allow gssd to read temp directory.
## </p>
## </desc>
2005-10-24 01:53:13 +00:00
gen_tunable(allow_gssd_read_tmp,true)
## <desc>
## <p>
2005-10-05 21:17:22 +00:00
## Allow Apache to modify public files
## used for public file transfer services.
## </p>
## </desc>
2005-10-05 21:17:22 +00:00
gen_tunable(allow_httpd_anon_write,false)
## <desc>
## <p>
2006-01-12 22:26:46 +00:00
## Allow java executable stack
## </p>
## </desc>
2006-01-12 22:26:46 +00:00
gen_tunable(allow_java_execstack,false)
## <desc>
## <p>
2005-06-23 20:27:06 +00:00
## Allow system to run with kerberos
## </p>
## </desc>
2005-06-13 20:44:23 +00:00
gen_tunable(allow_kerberos,false)
## <desc>
## <p>
2005-10-25 19:03:15 +00:00
## Allow rsync to modify public files
## used for public file transfer services.
## </p>
## </desc>
2005-10-25 19:03:15 +00:00
gen_tunable(allow_rsync_anon_write,false)
## <desc>
## <p>
2005-10-10 18:50:08 +00:00
## Allow sasl to read shadow
## </p>
## </desc>
2005-10-10 18:50:08 +00:00
gen_tunable(allow_saslauthd_read_shadow,false)
## <desc>
## <p>
2005-10-24 21:33:46 +00:00
## Allow samba to modify public files
## used for public file transfer services.
## </p>
## </desc>
2005-10-24 21:33:46 +00:00
gen_tunable(allow_smbd_anon_write,false)
## <desc>
## <p>
2005-09-27 19:40:44 +00:00
## Allow sysadm to ptrace all processes
## </p>
## </desc>
2005-09-27 19:40:44 +00:00
gen_tunable(allow_ptrace,false)
## <desc>
## <p>
2005-06-23 20:27:06 +00:00
## Allow system to run with NIS
## </p>
## </desc>
2005-06-13 20:44:23 +00:00
gen_tunable(allow_ypbind,false)
## <desc>
## <p>
2005-06-23 20:27:06 +00:00
## Enable extra rules in the cron domain
## to support fcron.
## </p>
## </desc>
gen_tunable(fcron_crond,false)
2005-06-08 13:12:00 +00:00
## <desc>
## <p>
2005-09-29 13:32:28 +00:00
## Allow ftp to read and write files in the user home directories
## </p>
## </desc>
2005-09-29 13:32:28 +00:00
gen_tunable(ftp_home_dir,false)
## <desc>
## <p>
2005-09-29 13:32:28 +00:00
## Allow ftpd to run directly without inetd
## </p>
## </desc>
2005-09-29 13:32:28 +00:00
gen_tunable(ftpd_is_daemon,false)
## <desc>
## <p>
2005-09-29 20:59:00 +00:00
## Allow httpd to use built in scripting (usually php)
## </p>
## </desc>
2005-09-29 20:59:00 +00:00
gen_tunable(httpd_builtin_scripting,false)
## <desc>
## <p>
2005-09-29 20:59:00 +00:00
## Allow http daemon to tcp connect
## </p>
## </desc>
2005-09-29 20:59:00 +00:00
gen_tunable(httpd_can_network_connect,false)
## <desc>
## <p>
## Allow httpd to connect to mysql/posgresql
## </p>
## </desc>
2005-12-12 21:47:43 +00:00
gen_tunable(httpd_can_network_connect_db, false)
## <desc>
## <p>
## Allow httpd to act as a relay
## </p>
## </desc>
2005-12-12 21:47:43 +00:00
gen_tunable(httpd_can_network_relay, false)
## <desc>
## <p>
2005-09-29 20:59:00 +00:00
## Allow httpd cgi support
## </p>
## </desc>
2005-09-29 20:59:00 +00:00
gen_tunable(httpd_enable_cgi,false)
## <desc>
## <p>
2005-10-31 19:58:51 +00:00
## Allow httpd to act as a FTP server by
## listening on the ftp port.
## </p>
## </desc>
2005-10-31 19:58:51 +00:00
gen_tunable(httpd_enable_ftp_server,false)
## <desc>
## <p>
2005-09-29 20:59:00 +00:00
## Allow httpd to read home directories
## </p>
## </desc>
2005-09-29 20:59:00 +00:00
gen_tunable(httpd_enable_homedirs,false)
## <desc>
## <p>
2005-09-29 20:59:00 +00:00
## Run SSI execs in system CGI script domain.
## </p>
## </desc>
2005-09-29 20:59:00 +00:00
gen_tunable(httpd_ssi_exec,false)
## <desc>
## <p>
2005-09-29 20:59:00 +00:00
## Allow http daemon to communicate with the TTY
## </p>
## </desc>
2005-09-29 20:59:00 +00:00
gen_tunable(httpd_tty_comm,false)
## <desc>
## <p>
2005-09-29 20:59:00 +00:00
## Run CGI in the main httpd domain
## </p>
## </desc>
2005-09-29 20:59:00 +00:00
gen_tunable(httpd_unified,false)
## <desc>
## <p>
2005-08-23 17:26:19 +00:00
## Allow BIND to write the master zone files.
## Generally this is used for dynamic DNS.
## </p>
## </desc>
2005-08-23 17:26:19 +00:00
gen_tunable(named_write_master_zones,false)
## <desc>
## <p>
2005-10-24 01:53:13 +00:00
## Allow nfs to be exported read/write.
## </p>
## </desc>
2005-10-24 01:53:13 +00:00
gen_tunable(nfs_export_all_rw,false)
## <desc>
## <p>
2005-10-24 01:53:13 +00:00
## Allow nfs to be exported read only
## </p>
## </desc>
2005-10-24 01:53:13 +00:00
gen_tunable(nfs_export_all_ro,false)
## <desc>
## <p>
2005-10-14 20:00:07 +00:00
## Allow pppd to load kernel modules for certain modems
## </p>
## </desc>
2005-10-14 20:00:07 +00:00
gen_tunable(pppd_can_insmod,false)
## <desc>
## <p>
2005-06-23 20:27:06 +00:00
## Allow reading of default_t files.
## </p>
## </desc>
2005-06-13 20:44:23 +00:00
gen_tunable(read_default_t,false)
## <desc>
## <p>
2005-06-23 19:57:15 +00:00
## Allow ssh to run from inetd instead of as a daemon.
## </p>
## </desc>
2005-06-23 19:57:15 +00:00
gen_tunable(run_ssh_inetd,false)
## <desc>
## <p>
2005-10-24 21:33:46 +00:00
## Allow samba to export user home directories.
## </p>
## </desc>
2005-10-24 21:33:46 +00:00
gen_tunable(samba_enable_home_dirs,false)
## <desc>
## <p>
2005-12-01 18:01:21 +00:00
## Allow spamassassin to do DNS lookups
## </p>
## </desc>
2005-12-01 18:01:21 +00:00
gen_tunable(spamassasin_can_network,false)
## <desc>
## <p>
2005-09-13 13:06:07 +00:00
## Allow squid to connect to all ports, not just
## HTTP, FTP, and Gopher ports.
## </p>
## </desc>
2005-09-13 13:06:07 +00:00
gen_tunable(squid_connect_any,false)
## <desc>
## <p>
2005-06-23 19:57:15 +00:00
## Allow ssh logins as sysadm_r:sysadm_t
## </p>
## </desc>
2005-06-23 19:57:15 +00:00
gen_tunable(ssh_sysadm_login,false)
## <desc>
## <p>
2005-10-26 21:03:19 +00:00
## Configure stunnel to be a standalone daemon or
## inetd service.
## </p>
## </desc>
2005-10-26 21:03:19 +00:00
gen_tunable(stunnel_is_daemon,false)
## <desc>
## <p>
2005-06-23 20:27:06 +00:00
## Support NFS home directories
## </p>
## </desc>
2005-06-13 20:44:23 +00:00
gen_tunable(use_nfs_home_dirs,false)
## <desc>
## <p>
2005-06-23 20:27:06 +00:00
## Support SAMBA home directories
## </p>
## </desc>
2005-06-13 20:44:23 +00:00
gen_tunable(use_samba_home_dirs,false)
## <desc>
## <p>
2005-10-28 17:31:53 +00:00
## Control users use of ping and traceroute
## </p>
## </desc>
2005-10-28 17:31:53 +00:00
gen_tunable(user_ping,false)
########################################
#
# Strict policy specific
#
2006-02-15 16:42:51 +00:00
ifdef(`strict_policy',`
## <desc>
## <p>
2005-10-28 17:31:53 +00:00
## Allow gpg executable stack
## </p>
## </desc>
2005-10-28 17:31:53 +00:00
gen_tunable(allow_gpg_execstack,false)
## <desc>
## <p>
2005-10-28 17:31:53 +00:00
## allow host key based authentication
## </p>
## </desc>
2005-10-28 17:31:53 +00:00
gen_tunable(allow_ssh_keysign,false)
## <desc>
## <p>
2005-10-28 17:31:53 +00:00
## Allow users to connect to mysql
## </p>
## </desc>
2005-10-28 17:31:53 +00:00
gen_tunable(allow_user_mysql_connect,false)
2006-02-15 16:42:51 +00:00
## <desc>
## <p>
## Allows clients to write to the X server shared
## memory segments.
## </p>
## </desc>
gen_tunable(allow_write_xshm,false)
## <desc>
## <p>
2006-01-12 23:23:22 +00:00
## Allow cdrecord to read various content.
## nfs, samba, removable devices, user temp
## and untrusted content files
## </p>
## </desc>
2006-01-12 23:23:22 +00:00
gen_tunable(cdrecord_read_content,false)
## <desc>
## <p>
2005-10-28 17:31:53 +00:00
## Allow system cron jobs to relabel filesystem
## for restoring file contexts.
## </p>
## </desc>
2005-10-28 17:31:53 +00:00
gen_tunable(cron_can_relabel,false)
## <desc>
## <p>
2005-10-28 17:31:53 +00:00
## Allow pppd to be run for a regular user
## </p>
## </desc>
2005-10-28 17:31:53 +00:00
gen_tunable(pppd_for_user,false)
## <desc>
## <p>
2005-10-28 17:31:53 +00:00
## Allow applications to read untrusted content
## If this is disallowed, Internet content has
## to be manually relabeled for read access to be granted
## </p>
## </desc>
2005-10-28 17:31:53 +00:00
gen_tunable(read_untrusted_content,false)
## <desc>
## <p>
2005-10-28 17:31:53 +00:00
## Allow user spamassassin clients to use the network.
## </p>
## </desc>
2005-10-28 17:31:53 +00:00
gen_tunable(spamassassin_can_network,false)
## <desc>
## <p>
2005-10-28 18:13:44 +00:00
## Allow staff_r users to search the sysadm home
## dir and read files (such as ~/.bashrc)
## </p>
## </desc>
2005-10-28 18:13:44 +00:00
gen_tunable(staff_read_sysadm_file,false)
## <desc>
## <p>
2005-06-23 20:27:06 +00:00
## Allow regular users direct mouse access
## </p>
## </desc>
2005-06-13 20:44:23 +00:00
gen_tunable(user_direct_mouse,false)
## <desc>
## <p>
2005-06-23 20:27:06 +00:00
## Allow users to read system messages.
## </p>
## </desc>
2005-06-13 20:44:23 +00:00
gen_tunable(user_dmesg,false)
## <desc>
## <p>
2005-06-23 20:27:06 +00:00
## Allow users to control network interfaces
## (also needs USERCTL=true)
## </p>
## </desc>
2005-06-13 20:44:23 +00:00
gen_tunable(user_net_control,false)
## <desc>
## <p>
2005-10-28 18:13:44 +00:00
## Allow user to r/w files on filesystems
## that do not have extended attributes (FAT, CDROM, FLOPPY)
## </p>
## </desc>
2005-06-13 20:44:23 +00:00
gen_tunable(user_rw_noexattrfile,false)
## <desc>
## <p>
2005-06-23 20:27:06 +00:00
## Allow users to rw usb devices
## </p>
## </desc>
2005-06-13 20:44:23 +00:00
gen_tunable(user_rw_usb,false)
## <desc>
## <p>
2005-06-23 20:27:06 +00:00
## Allow users to run TCP servers (bind to ports and accept connection from
## the same domain and outside users) disabling this forces FTP passive mode
## and may change other protocols.
## </p>
## </desc>
2005-06-13 20:44:23 +00:00
gen_tunable(user_tcp_server,false)
## <desc>
## <p>
2005-06-23 20:27:06 +00:00
## Allow w to display everyone
## </p>
## </desc>
2005-06-13 20:44:23 +00:00
gen_tunable(user_ttyfile_stat,false)
2005-09-19 21:17:45 +00:00
## <desc>
## <p>
2005-09-19 21:17:45 +00:00
## Allow applications to write untrusted content
## If this is disallowed, no Internet content
## will be stored.
## </p>
## </desc>
2005-09-19 21:17:45 +00:00
gen_tunable(write_untrusted_content,false)
2006-01-30 22:51:35 +00:00
## <desc>
## <p>
2006-01-30 22:51:35 +00:00
## Allow xdm logins as sysadm
## </p>
## </desc>
2006-01-30 22:51:35 +00:00
gen_tunable(xdm_sysadm_login,false)
2005-10-28 17:31:53 +00:00
')
########################################
#
# Targeted policy specific
#
ifdef(`targeted_policy',`
## <desc>
## <p>
## Allow spammd to read/write user home directories.
## </p>
## </desc>
gen_tunable(spamd_enable_home_dirs,true)
')