Messages in this thread | | | Date | Fri, 13 Feb 2004 03:32:18 +0000 | From | Jamie Lokier <> | Subject | Re: 2.6.2: "filp->f_mode & 2..." |
| |
Ulrich Windl wrote: > filp->f_mode & 2 || permission(filp->f_dentry->d_inode,2,NULL) > > It's obvious to some, likely for others that "2" there really stands for > "002", the good old UNIX write permission.
That's FMODE_WRITE (= 2). It isn't related at all to the Unix write permission of 002, as you'll notice FMODE_READ is 1, not 4.
-- Jamie - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |