Browse Source

jail: remove duplicate check for hook file permissions

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
Daniel Golle 3 years ago
parent
commit
92c8e8f3c6
1 changed files with 0 additions and 3 deletions
  1. 0 3
      jail/jail.c

+ 0 - 3
jail/jail.c

@@ -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) {