diff options
| author | Robert Love <rml@tech9.net> | 2002-06-04 00:39:16 -0700 |
|---|---|---|
| committer | Linus Torvalds <torvalds@penguin.transmeta.com> | 2002-06-04 00:39:16 -0700 |
| commit | 5fb4864a07e35858285ec886fcaa187094a1be15 (patch) | |
| tree | 9264e61a6d138137ea231b67e0df386d401eac74 /include/linux | |
| parent | 95c78cd5c06870d4e7fc5c286a6cd53d8e027779 (diff) | |
[PATCH] remove fsuser()
This patch removes fsuser(). Now both suser() and fsuser() are gone and
all permission checks use an appropriate capable() call.
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/sched.h | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/include/linux/sched.h b/include/linux/sched.h index 962e17896067..79988f7e6aa3 100644 --- a/include/linux/sched.h +++ b/include/linux/sched.h @@ -584,24 +584,6 @@ extern int request_irq(unsigned int, extern void free_irq(unsigned int, void *); /* - * This has now become a routine instead of a macro, it sets a flag if - * it returns true (to do BSD-style accounting where the process is flagged - * if it uses root privs). The implication of this is that you should do - * normal permissions checks first, and check fsuser() last. - * - * suser() is gone, fsuser() should go soon too... - */ - -static inline int fsuser(void) -{ - if (!issecure(SECURE_NOROOT) && current->fsuid == 0) { - current->flags |= PF_SUPERPRIV; - return 1; - } - return 0; -} - -/* * capable() checks for a particular capability. * See include/linux/capability.h for defined capabilities. */ |
