procmail
[Top] [All Lists]

Re: Binary will not run from rc filter

2007-09-19 12:05:42
This is what I get when sendmail runs procmail:

LOG=uid=0(root) gid=0(root)
groups=0(root),1(bin),2(daemon),3(sys),4(adm),6(disk),10(wheel)
context=root:system_r:procmail_t:s0-s0:c0.c1023"
procmail: Executing "/home/app/bin/scripts/filter_app"
/home/app/bin/scripts/filter_app: /home/app/bin/scripts/filter_app: cannot
execute binary file
procmail: Non-zero exitcode (126) from "/home/app/bin/scripts/filter_app"


When I run procmail -m as root with the rc file I get this:

LOG=uid=0(root) gid=0(root)
groups=0(root),1(bin),2(daemon),3(sys),4(adm),6(disk),10(wheel)
context=root:system_r:unconfined_t:SystemLow-SystemHigh"
procmail: Executing "/home/app/bin/scripts/filter_app"

and it works.

On 9/19/07, Bart Schaefer <barton(_dot_)schaefer(_at_)gmail(_dot_)com> wrote:


Stick a

LOG="`/usr/bin/id`
"

in the procmailrc and compare the logged output to the output from an
interactive shell.

____________________________________________________________
procmail mailing list   Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail
<Prev in Thread] Current Thread [Next in Thread>