patch-2.1.100 linux/drivers/char/console.c
Next file: linux/drivers/char/esp.c
Previous file: linux/drivers/char/bttv.c
Back to the patch index
Back to the overall index
-  Lines: 9
-  Date:
Wed May  6 10:56:03 1998
-  Orig file: 
v2.1.99/linux/drivers/char/console.c
-  Orig date: 
Wed Apr  8 19:36:26 1998
diff -u --recursive --new-file v2.1.99/linux/drivers/char/console.c linux/drivers/char/console.c
@@ -331,7 +331,7 @@
 	    long p, q;
 
 	    /* prevent users from taking too much memory */
-	    if (i >= MAX_NR_USER_CONSOLES && !suser())
+	    if (i >= MAX_NR_USER_CONSOLES && !capable(CAP_SYS_RESOURCE))
 	      return -EPERM;
 
 	    /* due to the granularity of kmalloc, we waste some memory here */
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov