[grsec] pid randomization problem - process won't execute and will return zero value

Alexander Gattin arg at online.com.ua
Tue Aug 16 18:02:46 EDT 2005


Hi!

On Tue, Aug 16, 2005 at 12:36:57PM +0100, John Logsdon wrote:
> Something is very odd here

Agreed.

> and I don't think it is a grsec thing.

With zero in /proc/sys/kernel/grsecurity/rand_pids the
cycle doesn't break.

The problem can only be seen when pids are random. BTW,
after cycle breaks, I get:

> bash: child setpgid (5293 to 27426): Operation not permitted

Under zsh the cycle doesn't break.

P.S. Race condition (setpgid/waitpid) in bash?
-- 
WBR,
xrgtn


More information about the grsecurity mailing list