Messages in this thread | | | Date | Sun, 5 Oct 2008 01:40:34 +0400 | From | Alexey Dobriyan <> | Subject | Re: [PATCH] proc: add "personality" to process status file |
| |
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 :-)
| |