Bug 344651 - AVC: preventing local (postfix_local_t) "write" to (mail_spool_t)
Summary: AVC: preventing local (postfix_local_t) "write" to (mail_spool_t)
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy-targeted
Version: rawhide
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: Daniel Walsh
QA Contact: Ben Levenson
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2007-10-21 18:39 UTC by Jan Hutař
Modified: 2007-11-30 22:12 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2007-10-22 13:03:08 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
sealert report (2.19 KB, text/plain)
2007-10-21 18:39 UTC, Jan Hutař
no flags Details
audit.log as requested (1.66 KB, application/octet-stream)
2007-10-22 14:08 UTC, Jan Hutař
no flags Details

Description Jan Hutař 2007-10-21 18:39:59 UTC
Description of problem:
Maybe this just some misconfiguration on my side, but when I try to send email 
to root (e.g. logwatch does so), I'm getting AVC. I'm using postfix.

#============= postfix_local_t ==============
allow postfix_local_t mail_spool_t:file write;


Version-Release number of selected component (if applicable):
selinux-policy-targeted-3.0.8-28.fc8
postfix-2.4.5-2.fc8


How reproducible:
always


Steps to Reproduce:
1. mail root


Actual results:
AVC - see attachment


Expected results:
No AVC



# ls -Z /var/spool/mail/
...
-rw-------  root       root system_u:object_r:mail_spool_t:s0 root
----------  root       mail system_u:object_r:mail_spool_t:s0 root.lock
...

Comment 1 Jan Hutař 2007-10-21 18:39:59 UTC
Created attachment 233641 [details]
sealert report

Comment 2 Daniel Walsh 2007-10-22 13:03:08 UTC
sealert should have told you to turn on the allow_postfix_local_write_mail_spool
boolean.

I will add an sealert plugin.

setsebool -P allow_postfix_local_write_mail_spool 1

Will fix your problem.

Comment 3 Daniel Walsh 2007-10-22 13:19:40 UTC
Could you please attach your /var/log/audit/audit.log?

Comment 4 Jan Hutař 2007-10-22 14:08:48 UTC
Created attachment 234101 [details]
audit.log as requested

Comment 5 Jan Hutař 2007-10-22 14:17:53 UTC
So, I think

setsebool -P allow_postfix_local_write_mail_spool 1

should be default for postfix, right?

Thank you.

PS. I'm using setroubleshoot-1.10.7-1.fc8

Comment 6 Daniel Walsh 2007-10-22 15:20:28 UTC
I will change to default to true.


Note You need to log in before you can comment on or make changes to this bug.