Re: [PATCH] proc: add "personality" to process status file

Alexey Dobriyan
2008-10-04T21:38:16Z

On Thu, Oct 02, 2008 at 02:14:24PM -0700, Kees Cook wrote:
> There is no sane way to query the personality flags of arbitrary process
> from userspace. This adds the flags to the /proc/$pid/status file.
> For example, to detect READ_IMPLIES_EXEC:
>
> $ ./32bit-sleeper &
> [1] 6732
> $ grep ^Pers /proc/6732/status
> Personality: 00000000
> $ execstack -s 32bit-sleeper
> $ ./32bit-slepper &
> [2] 6735
> $ grep ^Pers /proc/6735/status
> Personality: 00040000

Applied to proc.git without unrelated sched.h commentary :-)