jail: remove duplicate check for hook file permissions
authorDaniel Golle <daniel@makrotopia.org>
Mon, 28 Dec 2020 16:22:38 +0000 (16:22 +0000)
committerDaniel Golle <daniel@makrotopia.org>
Tue, 2 Feb 2021 12:54:00 +0000 (12:54 +0000)
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
jail/jail.c

index c3a0ccdb7f193503df5ad53be65d662311266264..378a7290b0a56f83469f13d0c8bb9170d09755f8 100644 (file)
@@ -465,9 +465,6 @@ static void run_hooklist(void)
        if (!((unsigned long)s.st_mode & (S_IXUSR | S_IXGRP | S_IXOTH)))
                hook_process_handler(&hook_process, EPERM);
 
-       if (!((unsigned long)s.st_mode & (S_IRUSR | S_IRGRP | S_IROTH)))
-               hook_process_handler(&hook_process, EPERM);
-
        hook_running = 1;
        hook_process.pid = fork();
        if (hook_process.pid == 0) {