selinux-refpolicy/policy/modules/system
Sven Vermeulen b64a53494f tunable-managed user content access template
To simplify policy management on the various application domains with
respect to user content access, a template is introduced which generates
four tunable_policy() blocks.

- The *_read_generic_user_content boolean will enable the application
  domain to read generic user resources (labeled with user_home_t).
- The *_read_all_user_content boolean does the same, but for all user
  resources (those associated with the user_home_content_type attribute).
- The *_manage_generic_user_content boolean enables the application to
  manage generic user resources (labeled with user_home_t)
- The *_manage_all_user_content boolean does the same, but for all user
  reosurces (those associated with the user_home_content_type attribute).

Although it would be even better to generate the booleans themselves as
well (which is what Gentoo does with this template), it would result in
booleans without proper documentation. Calls such as "semanage boolean
-l" would fail to properly show a description on the boolean - something
Gentoo resolves by keeping this documentation separate in a
doc/gentoo_tunables.xml file.

In this patch, we assume that the calling modules will define the
booleans themselves (with appropriate documentation). The template
checks for the existence of the booleans. This approach is more in
line with how domain-specific booleans are managed up to now.

Changes since v2:
 - Fix typo in gen_require (had a closing : instead of ;)

Changes since v1:
 - Use in-line XML comment and tunable definition

Signed-off-by: Sven Vermeulen <sven.vermeulen@siphos.be>
2018-06-10 13:23:01 -04:00
..
application.fc
application.if
application.te
authlogin.fc Move the use of var_log_t from authlogin.fc to logging.fc 2018-04-12 18:44:50 -04:00
authlogin.if Remove deprecated interfaces older than one year old. 2017-08-06 17:03:17 -04:00
authlogin.te Module version bumps for patches from James Carter. 2018-04-12 18:49:46 -04:00
clock.fc
clock.if
clock.te Bump module versions for release. 2017-08-05 12:59:42 -04:00
fstools.fc dphysswapfile: add interfaces and sysadm access 2017-09-14 17:19:55 -04:00
fstools.if dphysswapfile: add interfaces and sysadm access 2017-09-14 17:19:55 -04:00
fstools.te Bump module versions for release. 2018-01-14 14:08:09 -05:00
getty.fc
getty.if
getty.te Bump module versions for release. 2017-08-05 12:59:42 -04:00
hostname.fc
hostname.if
hostname.te Bump module versions for release. 2018-01-14 14:08:09 -05:00
hotplug.fc
hotplug.if
hotplug.te Bump module versions for release. 2017-08-05 12:59:42 -04:00
init.fc Move use of systemd_unit_t from systemd.fc to init.fc 2018-04-12 18:44:50 -04:00
init.if init: Add filetrans for /run/initctl 2018-05-02 17:12:01 -04:00
init.te policy for systemd-update-done 2018-06-07 20:16:48 -04:00
ipsec.fc
ipsec.if
ipsec.te Module version bumps for patches from James Carter. 2018-04-12 18:49:46 -04:00
iptables.fc
iptables.if
iptables.te iptables: Module version bump. 2018-03-09 17:09:50 -05:00
libraries.fc libraries: Add fc entry for musl's ld.so config 2017-11-14 18:32:46 -05:00
libraries.if Add new mmap permission set and pattern support macros. 2017-12-13 18:58:34 -05:00
libraries.te Bump module versions for release. 2018-01-14 14:08:09 -05:00
locallogin.fc
locallogin.if
locallogin.te Misc dbus fixes from Russell Coker. 2018-02-15 17:07:08 -05:00
logging.fc Move the use of var_log_t from authlogin.fc to logging.fc 2018-04-12 18:44:50 -04:00
logging.if logging: Various audit tools (auditctl, ausearch, etc) map their config and logs 2017-09-12 19:29:34 -04:00
logging.te init, logging, sysnetwork, systemd, udev: Module version bump. 2018-04-17 20:20:27 -04:00
lvm.fc
lvm.if
lvm.te Simple map patch from Russell Coker. 2018-02-15 17:10:34 -05:00
metadata.xml
miscfiles.fc base: create a type for SSL private keys 2017-11-09 17:28:26 -05:00
miscfiles.if base: create a type for SSL private keys 2017-11-09 17:28:26 -05:00
miscfiles.te Bump module versions for release. 2018-01-14 14:08:09 -05:00
modutils.fc
modutils.if modutils: libkmod mmap()s modules.dep and *.ko's 2017-09-11 20:31:23 -04:00
modutils.te Simple map patch from Russell Coker. 2018-02-15 17:10:34 -05:00
mount.fc
mount.if Remove deprecated interfaces older than one year old. 2017-08-06 17:03:17 -04:00
mount.te Bump module versions for release. 2017-08-05 12:59:42 -04:00
netlabel.fc
netlabel.if
netlabel.te Bump module versions for release. 2017-08-05 12:59:42 -04:00
selinuxutil.fc
selinuxutil.if selinuxutil: Add map permissions neccessary for semanage 2017-09-11 20:31:23 -04:00
selinuxutil.te Bump module versions for release. 2018-01-14 14:08:09 -05:00
setrans.fc
setrans.if
setrans.te Bump module versions for release. 2017-08-05 12:59:42 -04:00
sysnetwork.fc policy for systemd-networkd 2017-10-12 18:38:54 -04:00
sysnetwork.if sysnetwork: Move lines in sysnet_read_config(). 2018-04-25 17:33:51 -04:00
sysnetwork.te sysnetwork: Module version bump. 2018-04-25 17:34:13 -04:00
systemd.fc systemd: Move lines. 2018-06-07 20:17:15 -04:00
systemd.if systemd: Move lines. 2018-06-07 20:17:15 -04:00
systemd.te systemd: Move lines. 2018-06-07 20:17:15 -04:00
udev.fc
udev.if init: allow systemd to relabel /dev and /run 2017-09-11 20:03:31 -04:00
udev.te policy for systemd-hwdb 2018-06-07 20:16:48 -04:00
unconfined.fc
unconfined.if Remove complement and wildcard in allow rules. 2017-08-13 16:21:44 -04:00
unconfined.te Misc dbus fixes from Russell Coker. 2018-02-15 17:07:08 -05:00
userdomain.fc Move use of user_devpts_t from terminal.fc to userdomain.fc 2018-04-12 18:44:50 -04:00
userdomain.if tunable-managed user content access template 2018-06-10 13:23:01 -04:00
userdomain.te Module version bumps for patches from James Carter. 2018-04-12 18:49:46 -04:00
xdg.fc freedesktop location support 2018-06-10 13:23:01 -04:00
xdg.if freedesktop location support 2018-06-10 13:23:01 -04:00
xdg.te freedesktop location support 2018-06-10 13:23:01 -04:00