Gentoo Logo
Gentoo Spaceship

Installation:
Gentoo Handbook
Installation Docs

Documentation:
Home
Listing
About Gentoo
Philosophy
Social Contract

Resources:
Bug Tracker
Developer List
Discussion Forums
Gentoo BitTorrents
Gentoo Linux Enhancement Proposals
IRC Channels
Mailing Lists
Mirrors
Name and Logo Guidelines
Online Package Database
Security Announcements
Staffing Needs
Supporting Vendors
View our CVS

Graphics:
Logos and themes
Icons
ScreenShots

Miscellaneous Resources:
Gentoo Linux Store
Gentoo-hosted projects
IBM dW/Intel article archive




List Archive: gentoo-hardened
Navigation:
Lists: gentoo-hardened: < Prev By Thread Next > < Prev By Date Next >
Headers:
To: gentoo-hardened@g.o
From: Adam James <atj@...>
Subject: Re: Recomended paxctl flags for /var/qmail/bin/qmail-smtpd
Date: Tue, 23 Oct 2007 10:12:59 +0100
On Tue, 23 Oct 2007 01:15:05 -0600
"Matt Poletiek" <chill550@...> wrote:

> Hey guys, I was attempting to write a plugin for my qmail-spp enabled
> netqmail package when I ran into the following issue...
> 
> hackdmz control # nc localhost 25
> 220 hackdmz.net ESMTP
> ehlo test
> 250-hackdmz.net
> 250-STARTTLS
> 250-PIPELINING
> 250-8BITMIME
> 250-SIZE 0
> 250 AUTH LOGIN PLAIN
> mail from test@...
> 250 ok
> rcpt to test@...
> 451 qmail-spp failure: plugins/validuser.pl: can't execute (#4.3.0)
> 
> This shows up in dmesg
> 
> grsec: From ***.***.***.***: denied untrusted exec of
> /var/qmail/plugins/validuser.pl by
> /var/qmail/bin/qmail-smtpd[qmail-smtpd:7451] uid/euid:201/201
> gid/egid:200/200, parent /var/qmail/bin/qmail-smtpd[qmail-smtpd:7438]
> uid/euid:201/201 gid/egid:200/200
> grsec: From ***.***.***.***: denied untrusted exec of
> /var/qmail/plugins/validuser.pl by
> /var/qmail/bin/qmail-smtpd[qmail-smtpd:7861] uid/euid:201/201
> gid/egid:200/200, parent /var/qmail/bin/qmail-smtpd[qmail-smtpd:7860]
> uid/euid:201/201 gid/egid:200/200

This is nothing to do with PaX, as you can see from the log messages.
Grsecurity is denying the execution attempt because you have
TPE enabled and the qmail user is not trusted.

See `Executable Protections' under Grsecurity in your kernel
configuration, or `sysctl -a |grep tpe` if you have Grsec sysctl
functionality enabled and unlocked.

--atj

-- 
gentoo-hardened@g.o mailing list


Replies:
Re: Recomended paxctl flags for /var/qmail/bin/qmail-smtpd
-- Matt Poletiek
References:
Recomended paxctl flags for /var/qmail/bin/qmail-smtpd
-- Matt Poletiek
Navigation:
Lists: gentoo-hardened: < Prev By Thread Next > < Prev By Date Next >
Previous by thread:
Recomended paxctl flags for /var/qmail/bin/qmail-smtpd
Next by thread:
Re: Recomended paxctl flags for /var/qmail/bin/qmail-smtpd
Previous by date:
Recomended paxctl flags for /var/qmail/bin/qmail-smtpd
Next by date:
Re: Recomended paxctl flags for /var/qmail/bin/qmail-smtpd


Updated Jun 17, 2009

Donate to support our development efforts.

Gentoo Centric Hosting: vr.org

VR Hosted

Tek Alchemy

Tek Alchemy

SevenL.net

SevenL.net

php|architect

php|architect

Copyright 2001-2007 Gentoo Foundation, Inc. Questions, Comments? Email www@gentoo.org.