patch-2.0.34 linux/drivers/char/mem.c
Next file: linux/drivers/char/misc.c
Previous file: linux/drivers/char/h8.h
Back to the patch index
Back to the overall index
- Lines: 24
- Date:
Wed Jun 3 15:17:47 1998
- Orig file:
v2.0.33/linux/drivers/char/mem.c
- Orig date:
Tue Sep 9 16:06:48 1997
diff -u --recursive --new-file v2.0.33/linux/drivers/char/mem.c linux/drivers/char/mem.c
@@ -333,6 +333,14 @@
{
switch (MINOR(inode->i_rdev)) {
case 0:
+ case 1:
+ case 2:
+ case 4:
+ if(securelevel>0)
+ return -EPERM;
+ }
+ switch (MINOR(inode->i_rdev)) {
+ case 0:
filp->f_op = &ram_fops;
break;
case 1:
@@ -392,7 +400,7 @@
#if defined (CONFIG_BUSMOUSE) || defined(CONFIG_UMISC) || \
defined (CONFIG_PSMOUSE) || defined (CONFIG_MS_BUSMOUSE) || \
defined (CONFIG_ATIXL_BUSMOUSE) || defined(CONFIG_SOFT_WATCHDOG) || \
- defined (CONFIG_PCWATCHDOG) || \
+ defined (CONFIG_PCWATCHDOG) || defined (CONFIG_H8) || \
defined (CONFIG_APM) || defined (CONFIG_RTC) || defined (CONFIG_SUN_MOUSE)
misc_init();
#endif
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov