* [PATCH] remove fsuser()
@ 2002-06-04 21:30 Robert Love
0 siblings, 0 replies; only message in thread
From: Robert Love @ 2002-06-04 21:30 UTC (permalink / raw)
To: torvalds; +Cc: linux-kernel
Linus,
Apparently nothing uses fsuser() - else I would of just stuck this on
the end the last patch...
This patch removes fsuser(). Now both suser() and fsuser() are gone and
all permission checks use an appropriate capable() call.
Patch is against 2.5.20 + previous suser() removal patch. Please apply.
Robert Love
diff -urN linux-2.5.20-rml/include/linux/sched.h linux/include/linux/sched.h
--- linux-2.5.20-rml/include/linux/sched.h Tue Jun 4 14:18:57 2002
+++ linux/include/linux/sched.h Tue Jun 4 14:20:38 2002
@@ -585,24 +585,6 @@
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.
*/
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2002-06-04 21:30 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-06-04 21:30 [PATCH] remove fsuser() Robert Love
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®