From: Hai Huang <haih@eecs.umich.edu>
To: linux-mm@kvack.org
Subject: An executable vs. a data file?
Date: Sat, 21 Sep 2002 01:07:13 -0400 (EDT) [thread overview]
Message-ID: <Pine.LNX.4.33.0209210102100.24160-100000@wildwood.eecs.umich.edu> (raw)
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/
reply other threads:[~2002-09-21 5:05 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=Pine.LNX.4.33.0209210102100.24160-100000@wildwood.eecs.umich.edu \
--to=haih@eecs.umich.edu \
--cc=linux-mm@kvack.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox