2005-06-23 20:27:06 +00:00
#
2005-10-07 18:08:50 +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.
#
2006-02-10 18:41:53 +00:00
## <desc>
## <p>
2007-12-07 15:44:53 +00:00
## Allow unconfined executables to make their heap memory executable. Doing this is a really bad idea. Probably indicates a badly coded executable, but could indicate an attack. This executable should be reported in bugzilla
2006-02-10 18:41:53 +00:00
## </p>
## </desc>
2006-01-19 23:00:23 +00:00
gen_tunable(allow_execheap,false)
2006-02-10 18:41:53 +00:00
## <desc>
## <p>
2007-12-07 15:44:53 +00:00
## Allow unconfined executables to map a memory region as both executable and writable, this is dangerous and the executable should be reported in bugzilla")
2006-02-10 18:41:53 +00:00
## </p>
## </desc>
2005-06-13 20:44:23 +00:00
gen_tunable(allow_execmem,false)
2006-02-10 18:41:53 +00:00
## <desc>
## <p>
2007-12-07 15:44:53 +00:00
## Allow all unconfined executables to use libraries requiring text relocation that are not labeled textrel_shlib_t")
2006-02-10 18:41:53 +00:00
## </p>
## </desc>
2005-06-13 20:44:23 +00:00
gen_tunable(allow_execmod,false)
2006-02-10 18:41:53 +00:00
## <desc>
## <p>
2007-12-07 15:44:53 +00:00
## Allow unconfined executables to make their stack executable. This should never, ever be necessary. Probably indicates a badly coded executable, but could indicate an attack. This executable should be reported in bugzilla")
2006-02-10 18:41:53 +00:00
## </p>
## </desc>
2005-09-15 21:03:29 +00:00
gen_tunable(allow_execstack,false)
Make raw memory access tunable
Modern systems shouldn't need direct access to raw memory
devices (/dev/mem, /dev/kmem, /dev/mergemem, dev/oldmem, /dev/port)
anymore, so let's remove the access in most cases and make it tunable
in the rest.
Add dev_read_raw_memory_cond(), dev_write_raw_memory_cond() and
dev_wx_raw_memory_cond(), which are conditional to new boolean
allow_raw_memory_access.
Remove raw memory access for a few domains that should never have
needed it (colord_t, iscsid_t, mdamd_t, txtstat_t), should not need it
anymore (dmidecode_t, Debian devicekit_diskt_t, hald_t, hald_mac_t,
xserver_t) or the domains that should transition to different domain
for this (rpm_t, kudzu_t, dpkg_t).
Signed-off-by: Topi Miettinen <toiwoton@gmail.com>
2020-02-22 15:49:24 +00:00
## <desc>
## <p>
## Allow raw memory device (/dev/mem, /dev/kmem, /dev/mergemem,
## dev/oldmem, /dev/port) access for confined executables. This is
## extremely dangerous as it can bypass the SELinux protections, and
## should only be used by trusted domains.
## </p>
## </desc>
gen_tunable(allow_raw_memory_access,false)
2006-10-31 21:01:48 +00:00
## <desc>
## <p>
## Enable polyinstantiated directory support.
## </p>
## </desc>
gen_tunable(allow_polyinstantiation,false)
2006-02-10 18:41:53 +00:00
## <desc>
## <p>
2005-06-23 20:27:06 +00:00
## Allow system to run with NIS
2006-02-10 18:41:53 +00:00
## </p>
## </desc>
2005-06-13 20:44:23 +00:00
gen_tunable(allow_ypbind,false)
2011-01-14 16:44:42 +00:00
## <desc>
## <p>
## Allow logging in and using the system from /dev/console.
## </p>
## </desc>
gen_tunable(console_login,true)
2006-03-14 19:13:59 +00:00
## <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)
2007-10-02 16:04:50 +00:00
## <desc>
## <p>
## Allow email client to various content.
2008-11-05 16:10:46 +00:00
## nfs, samba, removable devices, and user temp
## files
2007-10-02 16:04:50 +00:00
## </p>
## </desc>
gen_tunable(mail_read_content,false)
2006-02-10 18:41:53 +00:00
## <desc>
## <p>
2007-12-07 15:44:53 +00:00
## Allow any files/directories to be exported read/write via NFS.
2006-02-10 18:41:53 +00:00
## </p>
## </desc>
2005-10-24 01:53:13 +00:00
gen_tunable(nfs_export_all_rw,false)
2006-02-10 18:41:53 +00:00
## <desc>
## <p>
2007-12-07 15:44:53 +00:00
## Allow any files/directories to be exported read/only via NFS.
2006-02-10 18:41:53 +00:00
## </p>
## </desc>
2005-10-24 01:53:13 +00:00
gen_tunable(nfs_export_all_ro,false)
2006-03-08 20:09:42 +00:00
## <desc>
## <p>
2007-10-02 16:04:50 +00:00
## Support NFS home directories
2006-03-08 20:09:42 +00:00
## </p>
## </desc>
2007-10-02 16:04:50 +00:00
gen_tunable(use_nfs_home_dirs,false)
2006-03-08 20:09:42 +00:00
2006-02-10 18:41:53 +00:00
## <desc>
## <p>
2007-10-02 16:04:50 +00:00
## Support SAMBA home directories
2006-02-10 18:41:53 +00:00
## </p>
## </desc>
2007-10-02 16:04:50 +00:00
gen_tunable(use_samba_home_dirs,false)
2005-10-28 17:31:53 +00:00
2006-02-10 18:41:53 +00:00
## <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.
2006-02-10 18:41:53 +00:00
## </p>
## </desc>
2005-06-13 20:44:23 +00:00
gen_tunable(user_tcp_server,false)
2016-07-31 09:16:36 +00:00
## <desc>
## <p>
## Allow users to run UDP servers (bind to ports and accept connection from
## the same domain and outside users)
## </p>
## </desc>
gen_tunable(user_udp_server,false)