the problem is that in 2.6.13 or so the default rlimit for
locked memory has been changed for both root and non-root
users, in particular they all get 8 pages by default. this
in turn catches unaware root apps by surprise (ntpd comes
to mind) as they no longer can mlock/mlockall beyond these
8 pages, this is what grsecurity reported.

there're two solutions:

1. patch the root app to explicitly increase RLIMIT_MEMLOCK
   via setrlimit(3) before calling mlock/mlockall

2. execute 'ulimit -l unlimited' in the shell and start the
   root app by hand

the former is the correct method but the latter can be used
as a quick fix/confirmation at least.

on a sidenote, based on the grsecurity log, heartbeat drops
only its euid from root but not its uid, is that intentional?



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to