]> git.baikalelectronics.ru Git - kernel.git/commit
Yama: higher restrictions should block PTRACE_TRACEME
authorKees Cook <keescook@chromium.org>
Fri, 10 Aug 2012 02:01:26 +0000 (19:01 -0700)
committerJames Morris <james.l.morris@oracle.com>
Fri, 10 Aug 2012 09:58:07 +0000 (19:58 +1000)
commit768619f193c029aff0a6b3d6c153f24be7a96941
treeb1e738bf17987552cdace2695d8b77328dc29bcf
parentab2b00cb12f57f7000a89264f5942b465febf174
Yama: higher restrictions should block PTRACE_TRACEME

The higher ptrace restriction levels should be blocking even
PTRACE_TRACEME requests. The comments in the LSM documentation are
misleading about when the checks happen (the parent does not go through
security_ptrace_access_check() on a PTRACE_TRACEME call).

Signed-off-by: Kees Cook <keescook@chromium.org>
Cc: stable@vger.kernel.org # 3.5.x and later
Signed-off-by: James Morris <james.l.morris@oracle.com>
Documentation/security/Yama.txt
include/linux/security.h
security/yama/yama_lsm.c