lkml.org 
[lkml]   [1998]   [Jun]   [6]   [last100]   RSS Feed
Views: [more markup]  [less markup]  [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
DateSat, 6 Jun 1998 15:55:41 +0100 (GMT+0100)
FromShaw Carruthers <>
SubjectRe: kmod and 104
On Sat, 6 Jun 1998, Andrea Arcangeli wrote:

> If I run:
> 
> mpg123 /cdrom/*
> 
> as normal user I get:
> 
> kmod: failed to exec /sbin/modprobe -s -k char-major-14, errno = 1
> Can't open /dev/dsp!
> 
> If I run the same command as root all works as usual. In 103 I didn' t
> need to run mpg123 as root to allow kmod to autoload sb.
> 

Looks like fsuid handling changed in 104, because of capabilities diffs.

This reverses the change:

--- linux/include/linux/sched.h~	Sat Jun  6 09:27:40 1998
+++ linux/include/linux/sched.h	Sat Jun  6 15:04:11 1998
@@ -565,7 +565,7 @@
 
 extern inline int capable(int cap)
 {
-#if 1 /* ok now */
+#if 0 /* for kmod*/
 	if (cap_raised(current->cap_effective, cap))
 #else
 	if (cap_is_fs_cap(cap) ? current->fsuid == 0 : current->euid == 0)
--

But presumably the kmod code should really be changed to handle the
capabilities.

--
Shaw Carruthers - shaw@shawc.demon.co.uk
London SW14 7JW UK
This is not a sig( with homage to Magritte).




-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu

\
 
 \ /
  Last update: 2005-03-22 13:42    [W:0.259 / U:0.340 seconds]
©2003-2008 Jasper Spaans