Extensions for the gentoo hardened refpolicy and new modules implemented for personal use

Helmut Pozimski 328583eb59 Replace spamassin unit type with current one 2 lat temu
COPYING ae18483694 Initial commit, add README and COPYING 4 lat temu
README.md ae18483694 Initial commit, add README and COPYING 4 lat temu
acme-updater.fc 26a4d454c4 acme-updater: add policy module 4 lat temu
acme-updater.te 368f51d151 acme-updater: allow corenet_tcp_bind_generic_node 3 lat temu
acmetool.fc e07f35e415 acmetool: add policy module 4 lat temu
acmetool.te cc4ea184de acmetool: allow reading of certificates 3 lat temu
apache_additional.fc 1e64a3a1d8 apache_additional: fix init script context 4 lat temu
apache_additional.te afed13c622 apache_additional: allow mapping of zero device 3 lat temu
atop.fc 33178955c5 atop: add policy module 4 lat temu
atop.if f82c344ea1 atop: add domtrans interface 4 lat temu
atop.te 1e39560543 atop: don't audit dac_read_search 3 lat temu
bootloader_additional.te ff4b555b3a bootloader_additional: allow self process getsched 3 lat temu
clamav_additional.te dc47aae8be clamav_additional: allow clamd to manage amavis dirs and files 3 lat temu
cron_additional.te 539c629eef cron_additional: add policy module 3 lat temu
dnsping.fc c809a5389e dnsping: add policy module, copied over from Debian policies 4 lat temu
dnsping.te b609042dca dnsping: allow process getsched 3 lat temu
dovecot_additional.fc 90b23f81fc dovecot_additional: add policy module 4 lat temu
dovecot_additional.te 4113ae0cab dovecot_additional: allow watching of mail spool 3 lat temu
gcc_config_additional.te 5c99210601 gcc_config_additional: add policy module 2 lat temu
getty_additional.te fe7dedd299 getty_additional: add policy module 3 lat temu
git.fc 491aa01fb0 git: add policy module 4 lat temu
git.if 491aa01fb0 git: add policy module 4 lat temu
git.te 491aa01fb0 git: add policy module 4 lat temu
gogs.fc 89e8b7f34b gogs: add policy module 4 lat temu
gogs.te a4fd2d95af Replace domain_auto_trans 2 lat temu
iptables_additional.te a7283fd774 iptables_additional: add policy module 4 lat temu
jabber_additional.fc dcaa3a1a1f jabber_additional: add missing file contexts 3 lat temu
jabber_additional.te ccdacf2659 jabber_additional: add capabilities and faillog access 3 lat temu
janus.fc 239c336480 janus: implement basic permissions necessary for execution 3 lat temu
janus.te f6bbe94fdf janus: allow reading of own directories 3 lat temu
java_additional.te b614b14398 java_additional: add policy module 4 lat temu
ldap_additional.te bf37a86c82 ldap_additional: add policy module 4 lat temu
load_policy_additional.te 0ffbfead92 load_policy_additional: add policy module 3 lat temu
logging_additional.te ce36141407 logging_additional: add policy module 4 lat temu
login_additional.te 03a474daf9 login_additional: add policy module 3 lat temu
logrotate_additional.te 03fd23cb60 logrotate_additional: add policy module 3 lat temu
minecraft.fc 9a663b4502 minecraft: add policy module 4 lat temu
minecraft.te bc1cdbf7a0 minecraft: allow reading of cgroup files and mapping of own file types 4 lat temu
mlocate_additional.te 69c5b1d451 mlocate_additional: add policy module 3 lat temu
mta_additional.te bd4b84413e mta_additional: add policy module 3 lat temu
mysql_additional.fc 6869346d46 mysql_additional: add mariadbd path to file contexts 3 lat temu
mysql_additional.te 6869346d46 mysql_additional: add mariadbd path to file contexts 3 lat temu
mysqldump.fc b35dc54d16 mysqldump: add policy module 4 lat temu
mysqldump.te cf68569a32 mysqldump: allow reading of extended attributes 4 lat temu
nats.fc e1e7929ca9 nats: add basic permissions needed to run 3 lat temu
nats.te 0919cade3b nats: allow reading of etc files 3 lat temu
owncloud.fc 160bf208a7 owncloud: add policy module 4 lat temu
owncloud.te bfeab689f7 owncloud: allow missing permissions 3 lat temu
phpfpm_additional.fc 7e1be43653 phpfpm_additional: add init script file type 4 lat temu
phpfpm_additional.if eaf6c308b2 phpfpm_additional: allow executing a shell to send mails 3 lat temu
phpfpm_additional.te eaf6c308b2 phpfpm_additional: allow executing a shell to send mails 3 lat temu
portage_additional.te 04f227c1b9 portage_additional: allow managing of var_t links 2 lat temu
porticron.fc a491d1986f porticron: add policy module 4 lat temu
porticron.te e7d575e54d porticron: allow processing of getsched 3 lat temu
postfix_additional.te b9c9695eb4 postfix_additional: allow connecting to dovecot 3 lat temu
root_home.fc 2d394173e8 root_home: add policy module 4 lat temu
root_home.te 2d394173e8 root_home: add policy module 4 lat temu
selinuxutil_additional.te fdd662b8fe selinuxutil_additional: allow reading of etc runtime files 4 lat temu
signaling.fc fe27091be8 signaling: add basic permissions needed to run 3 lat temu
signaling.te 1cd0db5ea7 signaling: allow reading of usr_t files 3 lat temu
ssh_additional.te e13215c687 ssh_additional: allow unconfined shell domtrans 3 lat temu
supervisor.fc 54df7ef40a supervisor: use python 3.7 3 lat temu
supervisor.if a4fd2d95af Replace domain_auto_trans 2 lat temu
supervisor.te a4fd2d95af Replace domain_auto_trans 2 lat temu
sysadm_additional.te 328583eb59 Replace spamassin unit type with current one 2 lat temu
syslog_additional.te 717a83fab5 syslog_additional: add policy module 4 lat temu
ttrss.fc 905757a48f ttrss: add policy module 4 lat temu
ttrss.te 6a452881f9 ttrss: allow setopt on own udp sockets 4 lat temu
turnserver.fc ab97174969 turnserver: add policy module 3 lat temu
turnserver.te 6519f4de55 turnserver: allow reading of overcommit ctl 3 lat temu
udev_additional.te 36c53b33a8 udev_additional: add policy module 4 lat temu
unconfined_additional.te 328583eb59 Replace spamassin unit type with current one 2 lat temu

README.md

About

This repository contains a collection of selinux policy modules written for Gentoo. Some of them are extensions to the policy modules of the hardened refpolicy while others were created from scratch but following the pattern of reference policy modules.

Please keep in mind that I wrote and extended the modules for my personal needs and they might not work well in your particular setup or use case. Also please review any of these modules carefully before using it to make sure it doesn't contain overbroad permissions or other errors which would actually lessen the security of the target system. If you find any errors or things I might want to improve, feel free to contact me.

Licensing

The modules in this repository are licensed under the GNU GENERAL PUBLIC LICENSE version 2.