Bug 448527 - procmail can't invoke spamc
Summary: procmail can't invoke spamc
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 9
Hardware: All
OS: Linux
Target Milestone: ---
Assignee: Daniel Walsh
QA Contact: Fedora Extras Quality Assurance
Depends On:
TreeView+ depends on / blocked
Reported: 2008-05-27 13:31 UTC by Victor Bogado
Modified: 2008-11-17 22:04 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Last Closed: 2008-11-17 22:04:16 UTC
Type: ---

Attachments (Terms of Use)
audit.log (160.96 KB, text/plain)
2008-05-28 13:43 UTC, Victor Bogado
no flags Details

Description Victor Bogado 2008-05-27 13:31:44 UTC
Description of problem:
procmail do not get permission to call spamc, I already checked that I am able
to call it myself and the deamon is running. This started to happen after I
upgraded from Fedora 8, and I suspected from the beginning that is se-related,
but I do not get a warning for this in the sealert thingy. I alredy did a drive

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1. my setup is a fetchmail that fetched from pop and deliver to the local
sendmail that in turn call 'procmail' to filter and deliver email. As far as I
know it is happening all the time. 
Actual results:
email is not filtered through spamc and the log file get something like this :

/usr/bin/spamc: /usr/bin/spamc: cannot execute binary file
procmail: Error while writing to "/usr/bin/spamc"
procmail: Rescue of unfiltered data succeeded
From git-owner.org  Tue May 27 10:26:45 2008
 Subject:  Re: Commit cce8d6fdb introduces file t/t5100/nul, git tree is now in
  Folder: .listas.git/new/1211894807.15651_0.xxxx.xxxxxx.xxxxx            5254

Expected results:
Email filtered using spam assassin

Comment 1 Miroslav Lichvar 2008-05-27 14:05:33 UTC
Does it work when SELinux is switched to permissive mode with "setenforce 0" ?

Comment 2 Victor Bogado 2008-05-27 15:05:37 UTC
Yes it does. 


Comment 3 Daniel Walsh 2008-05-27 17:40:13 UTC
Fixed in selinux-policy-3.3.1-55.fc9

Comment 4 Victor Bogado 2008-05-28 12:48:33 UTC
I've just installed it from updates-testing, do I need to reboot? 

Comment 5 Victor Bogado 2008-05-28 13:01:44 UTC
I just installed and rebooted, the procmail still failing to invoke spamc the
log has changed a little

/usr/bin/spamc: /usr/bin/spamc: cannot execute binary file
procmail: Error while writing to "/usr/bin/spamc"
procmail: Rescue of unfiltered data succeeded
From victor  Wed May 28 09:51:00 2008
 Subject: teste 1 2 3
  Folder: /home/bogado/Maildir/new/1211979060.22364_0.gandalf.bogado.n     1079

/usr/bin/spamc: /usr/bin/spamc: cannot execute binary file
procmail: Program failure (126) of "/usr/bin/spamc"
procmail: Rescue of unfiltered data succeeded
From victor  Wed May 28 09:57:00 2008
 Subject: teste 4 5 6
  Folder: /home/bogado/Maildir/new/1211979420.3086_0.gandalf.bogado.ne     1078

Comment 6 Daniel Walsh 2008-05-28 13:28:40 UTC
Please attach the /var/log/audit/audit.log

Comment 7 Victor Bogado 2008-05-28 13:43:26 UTC
Created attachment 306934 [details]


Comment 8 Daniel Walsh 2008-11-17 22:04:16 UTC
Closing all bugs that have been in modified for over a month.  Please reopen if the bug is not actually fixed.

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