diff --git a/fs/binfmt_misc.c b/fs/binfmt_misc.c index fd8beb9657a2c66f406d3eacadae5ca95e65d805..1cc5377ba955a012bc324bd005669d783608f2b3 100644 --- a/fs/binfmt_misc.c +++ b/fs/binfmt_misc.c @@ -153,7 +153,7 @@ static int load_misc_binary(struct linux_binprm *bprm) /* if the binary should be opened on behalf of the * interpreter than keep it open and assign descriptor * to it */ - fd_binary = get_unused_fd(); + fd_binary = get_unused_fd_flags(0); if (fd_binary < 0) { retval = fd_binary; goto _ret;