[PATCH v2 7/9] procfs: add permission checks on the file's opener of /proc/*/personality

2013-10-01 Thread Djalal Harouni
If current's cred have changed between ->open() and ->read(), then call proc_allow_access() to check if the original file's opener had enough permissions to access the /proc/*/personality entry during ->read(). Cc: Kees Cook Cc: Eric W. Biederman Signed-off-by: Djalal Harouni ---

[PATCH v2 7/9] procfs: add permission checks on the file's opener of /proc/*/personality

2013-10-01 Thread Djalal Harouni
If current's cred have changed between -open() and -read(), then call proc_allow_access() to check if the original file's opener had enough permissions to access the /proc/*/personality entry during -read(). Cc: Kees Cook keesc...@chromium.org Cc: Eric W. Biederman ebied...@xmission.com