X-Git-Url: http://plrg.eecs.uci.edu/git/?a=blobdiff_plain;f=fs%2Fexec.c;h=4040d7b173c04462f0f8740c9dbd66d7e9b0f3be;hb=011ded975e347d6ef14f7d08018f3d4750483160;hp=b06623a9347f4f206fb466c80574ec4bdd7d13fa;hpb=9589fcde27a6726b83bc525fba5c57e4b2c0328e;p=firefly-linux-kernel-4.4.55.git diff --git a/fs/exec.c b/fs/exec.c index b06623a9347f..4040d7b173c0 100644 --- a/fs/exec.c +++ b/fs/exec.c @@ -1254,7 +1254,7 @@ static void check_unsafe_exec(struct linux_binprm *bprm) unsigned n_fs; if (p->ptrace) { - if (p->ptrace & PT_PTRACE_CAP) + if (ptracer_capable(p, current_user_ns())) bprm->unsafe |= LSM_UNSAFE_PTRACE_CAP; else bprm->unsafe |= LSM_UNSAFE_PTRACE;