Re: [PATCH] FIx 'noexec' behavior
From: OGAWA Hirofumi
Date: Sat Dec 06 2003 - 14:58:30 EST
Ulrich Drepper <drepper@xxxxxxxxxx> writes:
if (file && (!file->f_op || !file->f_op->mmap))
return -ENODEV;
if ((prot & PROT_EXEC) && (file->f_vfsmnt->mnt_flags & MNT_NOEXEC))
return -EPERM;
Probably he get the oops, because file can be NULL.
--
OGAWA Hirofumi <hirofumi@xxxxxxxxxxxxxxxxxx>
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/