From 5fb4864a07e35858285ec886fcaa187094a1be15 Mon Sep 17 00:00:00 2001 From: Robert Love Date: Tue, 4 Jun 2002 00:39:16 -0700 Subject: [PATCH] remove fsuser() This patch removes fsuser(). Now both suser() and fsuser() are gone and all permission checks use an appropriate capable() call. --- include/linux/sched.h | 18 ------------------ 1 file changed, 18 deletions(-) (limited to 'include/linux') 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 @@ -583,24 +583,6 @@ extern int request_irq(unsigned int, unsigned long, const char *, void *); 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. -- cgit v1.2.3