Gentoo Archives: gentoo-hardened

From: Alex Efros <powerman@××××××××××××××××××.com>
To: gentoo-hardened@l.g.o
Subject: Re: [gentoo-hardened] what RLIMIT_STACK mean?
Date: Tue, 30 Sep 2008 00:03:06
Message-Id: 20080930000302.GB23080@home.power
In Reply to: Re: [gentoo-hardened] what RLIMIT_STACK mean? by Adam James
1 Hi!
2
3 On Tue, Sep 30, 2008 at 12:29:09AM +0100, Adam James wrote:
4 > What's the output of `strace perl -e 'exec "/bin/pwd"' 2>&1 \
5 > |grep -i rlimit`?
6 >
7 > Also try invoking perl with `env -i` to rule out any environment issues.
8
9 Results are same, with and without `env -i`:
10
11 $ env -i strace /usr/bin/perl -e 'exec "/bin/pwd"' 2>&1 | grep -i rlimit
12 getrlimit(RLIMIT_STACK, {rlim_cur=8192*1024, rlim_max=RLIM_INFINITY}) = 0
13
14 2008-09-30_00:02:32.77418 kern.alert: grsec: denied resource overstep by requesting 146518016 for RLIMIT_STACK against limit 8388608 for /bin/pwd[pwd:5451] uid/euid:1000/1000 gid/egid:100/100, parent /usr/bin/strace[strace:5449] uid/euid:1000/1000 gid/egid:100/100
15
16 --
17 WBR, Alex.