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

From: Alexey Dobriyan
Date: Sat Oct 04 2008 - 17:38:18 EST


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 :-)
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/