]> granicus.if.org Git - strace/commit
prctl: cast arg2 to int in PR_SET_PTRACER handler
authorEugene Syromyatnikov <evgsyr@gmail.com>
Fri, 18 Nov 2016 17:36:21 +0000 (20:36 +0300)
committerDmitry V. Levin <ldv@altlinux.org>
Sun, 20 Nov 2016 11:32:34 +0000 (11:32 +0000)
commit6b7ad9947bb9766b07594a6cd1e46e01980f78b6
tree938163f6e848e479fa89e16062150516065baeb9
parentaeff861218c14cbc5b5bf2c0f1f4ad497bc70a0b
prctl: cast arg2 to int in PR_SET_PTRACER handler

Kernel code does this when compares it with -1 (apart from comparing it with
PR_SET_PTRACER_ANY, which is also -1) in security/yama/yama_lsm.c.

* prctl.c (SYS_FUNC(prctl)) <PR_SET_PTRACER>: Cast arg2 to int before
comparing it with -1.
prctl.c