* An executable vs. a data file?
@ 2002-09-21 5:07 Hai Huang
0 siblings, 0 replies; only message in thread
From: Hai Huang @ 2002-09-21 5:07 UTC (permalink / raw)
To: linux-mm
Hi,
Inside linux kernel, is there anyway to differentiate whether a file is an
executable (i.e. "x" bit is on) or a data file "r or w" bit is on or both
given the inode that points to the file?
I've noticed this function "int permission(struct inode*, int mask)" in
namei.c. However, when I pass in mingetty's inode and MAY_EXEC as the
mask into the permission() function, it returned 0. Anyone knows why or
can suggest an alternative way to accomplish this?
Thanks a lot.
-
Hai
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2002-09-21 5:05 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-09-21 5:07 An executable vs. a data file? Hai Huang
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox