summaryrefslogtreecommitdiffstats
path: root/drivers/char/tpm
diff options
context:
space:
mode:
authorJosh Stone2016-12-03 00:49:43 +0100
committerJames Morris2016-12-05 01:48:01 +0100
commit50523a29d900d5a403e0352d3d7aeda6a33df25c (patch)
tree4c279a19e9a0f4521212bf444a939bb83c8d1915 /drivers/char/tpm
parenttpm: adjust return value of tpm_read_log (diff)
downloadkernel-qcow2-linux-50523a29d900d5a403e0352d3d7aeda6a33df25c.tar.gz
kernel-qcow2-linux-50523a29d900d5a403e0352d3d7aeda6a33df25c.tar.xz
kernel-qcow2-linux-50523a29d900d5a403e0352d3d7aeda6a33df25c.zip
Yama: allow access for the current ptrace parent
Under ptrace_scope=1, it's possible to have a tracee that is already ptrace-attached, but is no longer a direct descendant. For instance, a forking daemon will be re-parented to init, losing its ancestry to the tracer that launched it. The tracer can continue using ptrace in that state, but it will be denied other accesses that check PTRACE_MODE_ATTACH, like process_vm_rw and various procfs files. There's no reason to prevent such access for a tracer that already has ptrace control anyway. This patch adds a case to ptracer_exception_found to allow access for any task in the same thread group as the current ptrace parent. Signed-off-by: Josh Stone <jistone@redhat.com> Cc: Kees Cook <keescook@chromium.org> Cc: James Morris <james.l.morris@oracle.com> Cc: "Serge E. Hallyn" <serge@hallyn.com> Cc: linux-security-module@vger.kernel.org Signed-off-by: Kees Cook <keescook@chromium.org> Signed-off-by: James Morris <james.l.morris@oracle.com>
Diffstat (limited to 'drivers/char/tpm')
0 files changed, 0 insertions, 0 deletions