From aa6948aa3ca6b2295b1761eec11882eaf042ca66 Mon Sep 17 00:00:00 2001 From: Francisco Franco Date: Fri, 2 Nov 2018 03:49:22 +0000 Subject: [PATCH] exec: fix backport On 3.18 we're accessing the struct member, on 3.4 we receive the actual char * as an argument. Signed-off-by: Francisco Franco --- fs/exec.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fs/exec.c b/fs/exec.c index 42992b05a4fa..0fba5e1489b5 100644 --- a/fs/exec.c +++ b/fs/exec.c @@ -1617,9 +1617,9 @@ static int do_execve_common(const char *filename, } if (capable(CAP_SYS_ADMIN)) { - if (unlikely(!strcmp(filename->name, ZYGOTE32_BIN))) + if (unlikely(!strcmp(filename, ZYGOTE32_BIN))) atomic_set(&zygote32_pid, current->pid); - else if (unlikely(!strcmp(filename->name, ZYGOTE64_BIN))) + else if (unlikely(!strcmp(filename, ZYGOTE64_BIN))) atomic_set(&zygote64_pid, current->pid); }