1 |
On Tue, 23 Oct 2007 01:15:05 -0600 |
2 |
"Matt Poletiek" <chill550@×××××.com> wrote: |
3 |
|
4 |
> Hey guys, I was attempting to write a plugin for my qmail-spp enabled |
5 |
> netqmail package when I ran into the following issue... |
6 |
> |
7 |
> hackdmz control # nc localhost 25 |
8 |
> 220 hackdmz.net ESMTP |
9 |
> ehlo test |
10 |
> 250-hackdmz.net |
11 |
> 250-STARTTLS |
12 |
> 250-PIPELINING |
13 |
> 250-8BITMIME |
14 |
> 250-SIZE 0 |
15 |
> 250 AUTH LOGIN PLAIN |
16 |
> mail from test@×××××××.net |
17 |
> 250 ok |
18 |
> rcpt to test@×××××××.net |
19 |
> 451 qmail-spp failure: plugins/validuser.pl: can't execute (#4.3.0) |
20 |
> |
21 |
> This shows up in dmesg |
22 |
> |
23 |
> grsec: From ***.***.***.***: denied untrusted exec of |
24 |
> /var/qmail/plugins/validuser.pl by |
25 |
> /var/qmail/bin/qmail-smtpd[qmail-smtpd:7451] uid/euid:201/201 |
26 |
> gid/egid:200/200, parent /var/qmail/bin/qmail-smtpd[qmail-smtpd:7438] |
27 |
> uid/euid:201/201 gid/egid:200/200 |
28 |
> grsec: From ***.***.***.***: denied untrusted exec of |
29 |
> /var/qmail/plugins/validuser.pl by |
30 |
> /var/qmail/bin/qmail-smtpd[qmail-smtpd:7861] uid/euid:201/201 |
31 |
> gid/egid:200/200, parent /var/qmail/bin/qmail-smtpd[qmail-smtpd:7860] |
32 |
> uid/euid:201/201 gid/egid:200/200 |
33 |
|
34 |
This is nothing to do with PaX, as you can see from the log messages. |
35 |
Grsecurity is denying the execution attempt because you have |
36 |
TPE enabled and the qmail user is not trusted. |
37 |
|
38 |
See `Executable Protections' under Grsecurity in your kernel |
39 |
configuration, or `sysctl -a |grep tpe` if you have Grsec sysctl |
40 |
functionality enabled and unlocked. |
41 |
|
42 |
--atj |
43 |
|
44 |
-- |
45 |
gentoo-hardened@g.o mailing list |