Skip to content

Commit

Permalink
Added openarc contexts to milter.fc
Browse files Browse the repository at this point in the history
  • Loading branch information
lquidfire authored Jan 11, 2025
1 parent 50c9e8a commit b1bf387
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions policy/modules/contrib/milter.fc
Original file line number Diff line number Diff line change
@@ -1,19 +1,25 @@
/etc/mail/dkim-milter/keys(/.*)? gen_context(system_u:object_r:dkim_milter_private_key_t,s0)
/etc/openarc/keys(/.*)? gen_context(system_u:object_r:openarc_milter_private_key_t,s0)

# those are duplicate with dkim.fc
/usr/bin/dkim-filter -- gen_context(system_u:object_r:dkim_milter_exec_t,s0)
/usr/bin/opendkim -- gen_context(system_u:object_r:dkim_milter_exec_t,s0)

/usr/bin/openarc -- gen_context(system_u:object_r:openarc_milter_exec_t,s0)

/usr/bin/opendmarc -- gen_context(system_u:object_r:dkim_milter_exec_t,s0)
/usr/bin/milter-greylist -- gen_context(system_u:object_r:greylist_milter_exec_t,s0)
/usr/bin/sqlgrey -- gen_context(system_u:object_r:greylist_milter_exec_t,s0)
/usr/bin/milter-regex -- gen_context(system_u:object_r:regex_milter_exec_t,s0)
/usr/bin/spamass-milter -- gen_context(system_u:object_r:spamass_milter_exec_t,s0)

/usr/sbin/openarc -- gen_context(system_u:object_r:openarc_milter_exec_t,s0)

/var/lib/milter-greylist(/.*)? gen_context(system_u:object_r:greylist_milter_data_t,s0)
/var/lib/sqlgrey(/.*)? gen_context(system_u:object_r:greylist_milter_data_t,s0)
/var/lib/spamass-milter(/.*)? gen_context(system_u:object_r:spamass_milter_state_t,s0)

/run/openarc(/.*)? gen_context(system_u:object_r:openarc_milter_data_t,s0)
/run/opendmarc(/.*)? gen_context(system_u:object_r:dkim_milter_data_t,s0)
/run/milter-greylist(/.*)? gen_context(system_u:object_r:greylist_milter_data_t,s0)
/run/milter-greylist\.pid -- gen_context(system_u:object_r:greylist_milter_data_t,s0)
Expand All @@ -24,5 +30,6 @@

/var/spool/milter-regex(/.*)? gen_context(system_u:object_r:regex_milter_data_t,s0)
/var/spool/postfix/spamass(/.*)? gen_context(system_u:object_r:spamass_milter_data_t,s0)
/var/spool/openarc(/.*)? gen_context(system_u:object_r:openarc_milter_data_t,s0)
/var/spool/opendkim(/.*)? gen_context(system_u:object_r:dkim_milter_data_t,s0)
/var/spool/opendmarc(/.*)? gen_context(system_u:object_r:dkim_milter_data_t,s0)

0 comments on commit b1bf387

Please sign in to comment.