apache.fc references undefined user_cron_spool_t when using the strict policy.
Hello all,
The apache module does not compile in the in the strict policy because it references the following type: user_cron_spool_t which does not
appear to exist any longer. Since I am not using apache, I just
commented out the block .. but thought I should pass this information on in case someone else has a better fix.
I have attached a patch with the commented out block for reference.
Thanks,
- Ryan
modules/services/apache.fc +5 -3
@@ -73,10 +73,12 @@ /var/spool/gosa(/.*)? gen_context(system_u:object_r:httpd_sys_script_rw_t,s0) /var/spool/squirrelmail(/.*)? gen_context(system_u:object_r:squirrelmail_spool_t,s0) -ifdef(`strict_policy',` -/var/spool/cron/apache -- gen_context(system_u:object_r:user_cron_spool_t,s0) -') +# user_cron_spool_t does not appear to exist any longer. +#ifdef(`strict_policy',` +#/var/spool/cron/apache -- gen_context(system_u:object_r:user_cron_spool_t,s0) +#') + /var/www(/.*)? gen_context(system_u:object_r:httpd_sys_content_t,s0) /var/www/cgi-bin(/.*)? gen_context(system_u:object_r:httpd_sys_script_exec_t,s0) /var/www/icons(/.*)? gen_context(system_u:object_r:httpd_sys_content_t,s0)
Quoted 9 lines · Ryan Bradetich
Hello all,
The apache module does not compile in the in the strict policy because it references the following type:
user_cron_spool_twhich does not
appear to exist any longer. Since I am not using apache, I just
commented out the block .. but thought I should pass this information on in case someone else has a better fix.I have attached a patch with the commented out block for reference.
Its a bug, that line should have been in cron.fc. I question if that was the right way to label that file anyway. So it might be better to remove it altogether.
Signature · 9 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.
Hello Chris,
I have updated my patch to remove the entry from the apache.fc file.
Thanks!
- Ryan
Quoted 8 lines · Christopher J. PeBenito
Its a bug, that line should have been in cron.fc. I question if that was the right way to label that file anyway. So it might be better to remove it altogether.
--
Chris PeBenito
Tresys Technology, LLC
(410) 290-1411 x150
modules/services/apache.fc +0 -3
@@ -73,9 +73,6 @@ /var/spool/gosa(/.*)? gen_context(system_u:object_r:httpd_sys_script_rw_t,s0) /var/spool/squirrelmail(/.*)? gen_context(system_u:object_r:squirrelmail_spool_t,s0) -ifdef(`strict_policy',` -/var/spool/cron/apache -- gen_context(system_u:object_r:user_cron_spool_t,s0) -') /var/www(/.*)? gen_context(system_u:object_r:httpd_sys_content_t,s0) /var/www/cgi-bin(/.*)? gen_context(system_u:object_r:httpd_sys_script_exec_t,s0)
Quoted 1 line · Ryan Bradetich
I have updated my patch to remove the entry from the apache.fc file.
Thanks, merged.
Quoted 4 lines · Christopher J. PeBenito
Quoted 3 lines
Its a bug, that line should have been in cron.fc. I question if that was the right way to label that file anyway. So it might be better to remove it altogether.
Signature · 9 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.