dovecot.fc.patch (resend)
Subsystems (2)
Dovecot needs a hard link and therefor a special label.
I resend this patch. For background have a look at this thread:
http://marc.info/?l=selinux&m=118830456207512&w=2
modules/services/dovecot.fc renamed from usr/src/refpolicy-20070629/policy/modules/services/dovecot.fc +2 -0
@@ -27,6 +27,8 @@ # /var # /var/run/dovecot(-login)?(/.*)? gen_context(system_u:object_r:dovecot_var_run_t,s0) +# this is a hard link to /var/lib/dovecot/ssl-parameters.dat +/var/run/dovecot/login/ssl-parameters.dat gen_context(system_u:object_r:dovecot_var_lib_t,s0) /var/lib/dovecot(/.*)? gen_context(system_u:object_r:dovecot_var_lib_t,s0)
Quoted 4 lines · Stefan Schulze Frielinghaus
Dovecot needs a hard link and therefor a special label.
I resend this patch. For background have a look at this thread:
http://marc.info/?l=selinux&m=118830456207512&w=2
This still needs the dontaudit for initrc_t that you were speaking of.
Signature · 10 lines
Chris PeBenito Tresys Technology, LLC (410) 290-1411 x150 -- This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.
Yeah I forgot to attach the other patches. Now all three patches should be included. If they get accepted I will open a bugzilla entry to get them backported to RHEL5.
Quoted 8 lines · Christopher J. PeBenito
Quoted 4 lines · Stefan Schulze Frielinghaus
Dovecot needs a hard link and therefor a special label.
I resend this patch. For background have a look at this thread:
http://marc.info/?l=selinux&m=118830456207512&w=2This still needs the dontaudit for
initrc_tthat you were speaking of.
modules/services/dovecot.fc renamed from usr/src/refpolicy-20070629/policy/modules/services/dovecot.fc +2 -0
@@ -27,6 +27,8 @@ # /var # /var/run/dovecot(-login)?(/.*)? gen_context(system_u:object_r:dovecot_var_run_t,s0) +# this is a hard link to /var/lib/dovecot/ssl-parameters.dat +/var/run/dovecot/login/ssl-parameters.dat gen_context(system_u:object_r:dovecot_var_lib_t,s0) /var/lib/dovecot(/.*)? gen_context(system_u:object_r:dovecot_var_lib_t,s0)
modules/services/dovecot.if renamed from usr/src/refpolicy-20070629/policy/modules/services/dovecot.if +18 -0
@@ -18,3 +18,21 @@ manage_files_pattern($1,dovecot_spool_t,dovecot_spool_t) manage_lnk_files_pattern($1,dovecot_spool_t,dovecot_spool_t) ') + +######################################## +### <summary> +### Dontaudit attempts to unlink dovecot_var_lib_t files. +### </summary> +### <param name="domain"> +### <summary> +### Domain to not audit. +### </summary> +### </param> +## +interface(`dovecot_dontaudit_unlink_var_lib_files',` + gen_require(` + type dovecot_var_lib_t; + ') + + dontaudit $1 dovecot_var_lib_t:file unlink; +')
modules/system/init.te renamed from usr/src/refpolicy-20070629/policy/modules/system/init.te +8 -0
@@ -604,6 +604,14 @@ ') optional_policy(` + # /var/run/dovecot/login/ssl-parameters.dat is a hard link to + # /var/lib/dovecot/ssl-parameters.dat and init tries to clean up + # the directory. But we do not want to allow this. + # The master process of dovecot will manage this file. + dovecot_dontaudit_unlink_var_lib_files(initrc_t) +') + +optional_policy(` ftp_read_config(initrc_t) ')
Quoted 4 lines · Stefan Schulze Frielinghaus
Yeah I forgot to attach the other patches. Now all three patches should be included. If they get accepted I will open a bugzilla entry to get them backported to RHEL5.
Quoted 8 lines
Quoted 7 lines · Christopher J. PeBenito
Quoted 4 lines · Stefan Schulze Frielinghaus
Dovecot needs a hard link and therefor a special label.
I resend this patch. For background have a look at this thread:
http://marc.info/?l=selinux&m=118830456207512&w=2This still needs the dontaudit for
initrc_tthat you were speaking of.
I tweaked the interface name, otherwise, merged.
Signature · 10 lines
Chris PeBenito Tresys Technology, LLC (410) 290-1411 x150 -- This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.