selinux-policy/policy/global_tunables

619 lines
11 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 zebra daemon to write it configuration files
## </p>
## </desc>
#
gen_tunable(allow_zebra_write_config,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>
## Allow ftp servers to login to local users and
## read/write all files on the system, governed by DAC.
## </p>
## </desc>
gen_tunable(allow_ftpd_full_access,false)
## <desc>
## <p>
## Allow ftp servers to use cifs
## used for public file transfer services.
## </p>
## </desc>
gen_tunable(allow_ftpd_use_cifs,false)
## <desc>
## <p>
## Allow ftp servers to use nfs
## used for public file transfer services.
## </p>
## </desc>
gen_tunable(allow_ftpd_use_nfs,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>
## Allow Apache to use mod_auth_pam
## </p>
## </desc>
gen_tunable(allow_httpd_mod_auth_pam,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>
## Allow nfs servers to modify public files
## used for public file transfer services.
## </p>
## </desc>
gen_tunable(allow_nfsd_anon_write,false)
## <desc>
## <p>
## Enable polyinstantiated directory support.
## </p>
## </desc>
gen_tunable(allow_polyinstantiation,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)
2005-09-27 19:40:44 +00:00
## <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>
## Enable reading of urandom for all domains.
## </p>
## <p>
## This should be enabled when all programs
## are compiled with ProPolice/SSP
## stack smashing protection. All domains will
## be allowed to read from /dev/urandom.
## </p>
## </desc>
gen_tunable(global_ssp,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-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>
## Allow samba to export NFS volumes.
## </p>
## </desc>
gen_tunable(samba_share_nfs,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>
## Allow ssh logins as sysadm_r:sysadm_t
## </p>
## </desc>
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>
## Allow xdm logins as sysadm
## </p>
## </desc>
gen_tunable(xdm_sysadm_login,false)
########################################
#
# Strict policy specific
#
ifdef(`strict_policy',`
## <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)
## <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)
2006-03-09 20:28:51 +00:00
## <desc>
## <p>
## Allow mplayer executable stack
## </p>
## </desc>
gen_tunable(allow_mplayer_execstack,false)
## <desc>
## <p>
## Allow sysadm to ptrace all processes
## </p>
## </desc>
gen_tunable(allow_ptrace,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)
2006-03-21 18:07:53 +00:00
## <desc>
## <p>
## force to games to run in user_t
## mapping executable (text relocation).
## </p>
## </desc>
gen_tunable(disable_games_trans,false)
2006-03-13 21:36:49 +00:00
## <desc>
## <p>
## Disable transitions to evolution domains.
## </p>
## </desc>
gen_tunable(disable_evolution_trans,false)
2006-03-13 19:24:52 +00:00
## <desc>
## <p>
## Disable transitions to user mozilla domains
## </p>
## </desc>
gen_tunable(disable_mozilla_trans,false)
2006-03-08 20:09:42 +00:00
## <desc>
## <p>
## Disable transitions to user thunderbird domains
## </p>
## </desc>
gen_tunable(disable_thunderbird_trans,false)
## <desc>
## <p>
## Allow email client to various content.
## nfs, samba, removable devices, user temp
## and untrusted content files
## </p>
## </desc>
gen_tunable(mail_read_content,false)
2006-03-13 19:24:52 +00:00
## <desc>
## <p>
## Control mozilla content access
## </p>
## </desc>
gen_tunable(mozilla_read_content,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>
## Allow ssh to run from inetd instead of as a daemon.
## </p>
## </desc>
gen_tunable(run_ssh_inetd,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>
## Allow staff_r users to search the sysadm home
## dir and read files (such as ~/.bashrc)
## </p>
## </desc>
gen_tunable(staff_read_sysadm_file,false)
## <desc>
## <p>
## Use lpd server instead of cups
## </p>
## </desc>
gen_tunable(use_lpd_server,false)
2005-10-28 18:13:44 +00:00
## <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 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)
2005-10-28 17:31:53 +00:00
')
########################################
#
# Targeted policy specific
#
ifdef(`targeted_policy',`
## <desc>
## <p>
## Allow all daemons the ability to use unallocated ttys
## </p>
## </desc>
gen_tunable(allow_daemons_use_tty,false)
## <desc>
## <p>
## Allow mount to mount any file
## </p>
## </desc>
gen_tunable(allow_mount_anyfile,false)
## <desc>
## <p>
## Allow spamd to read/write user home directories.
## </p>
## </desc>
gen_tunable(spamd_enable_home_dirs,true)
')