Fixed permissions of /devfs/*random.
Fixed group and permissions of /devfs/perfmon.
This commit is contained in:
parent
0adb267e48
commit
4ec0595f4a
@ -38,7 +38,7 @@
|
|||||||
*
|
*
|
||||||
* from: Utah $Hdr: mem.c 1.13 89/10/08$
|
* from: Utah $Hdr: mem.c 1.13 89/10/08$
|
||||||
* from: @(#)mem.c 7.2 (Berkeley) 5/9/91
|
* from: @(#)mem.c 7.2 (Berkeley) 5/9/91
|
||||||
* $Id: mem.c,v 1.29 1995/12/31 09:32:16 joerg Exp $
|
* $Id: mem.c,v 1.30 1996/03/26 19:57:52 wollman Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@ -111,17 +111,17 @@ memdevfs_init()
|
|||||||
"/", "kmem", &mem_cdevsw, 1, DV_CHR, 0, 2, 0640);
|
"/", "kmem", &mem_cdevsw, 1, DV_CHR, 0, 2, 0640);
|
||||||
null_devfs_token = devfs_add_devsw(
|
null_devfs_token = devfs_add_devsw(
|
||||||
"/", "null", &mem_cdevsw, 2, DV_CHR, 0, 0, 0666);
|
"/", "null", &mem_cdevsw, 2, DV_CHR, 0, 0, 0666);
|
||||||
random_devfs_token = devfs_add_devsw(
|
random_devfs_token = devfs_add_devswf(&mem_cdevsw, 3, DV_CHR, UID_ROOT,
|
||||||
"/", "random", &mem_cdevsw, 3, DV_CHR, 0, 0, 0666);
|
GID_WHEEL, 0644, "random");
|
||||||
urandom_devfs_token = devfs_add_devsw(
|
urandom_devfs_token = devfs_add_devswf(&mem_cdevsw, 4, DV_CHR, UID_ROOT,
|
||||||
"/", "urandom", &mem_cdevsw, 4, DV_CHR, 0, 0, 0666);
|
GID_WHEEL, 0644, "urandom");
|
||||||
zero_devfs_token = devfs_add_devsw(
|
zero_devfs_token = devfs_add_devsw(
|
||||||
"/", "zero", &mem_cdevsw, 12, DV_CHR, 0, 0, 0666);
|
"/", "zero", &mem_cdevsw, 12, DV_CHR, 0, 0, 0666);
|
||||||
io_devfs_token = devfs_add_devsw(
|
io_devfs_token = devfs_add_devsw(
|
||||||
"/", "io", &mem_cdevsw, 14, DV_CHR, 0, 0, 0600);
|
"/", "io", &mem_cdevsw, 14, DV_CHR, 0, 0, 0600);
|
||||||
#ifdef PERFMON
|
#ifdef PERFMON
|
||||||
perfmon_devfs_token = devfs_add_devsw(
|
perfmon_devfs_token = devfs_add_devswf(&mem_cdevsw, 32, DV_CHR, UID_ROOT,
|
||||||
"/", "perfmon", &mem_cdevsw, 32, DV_CHR, 0, 0, 0666);
|
GID_KMEM, 0640, "perfmon");
|
||||||
#endif /* PERFMON */
|
#endif /* PERFMON */
|
||||||
}
|
}
|
||||||
#endif /* DEVFS */
|
#endif /* DEVFS */
|
||||||
|
@ -36,7 +36,7 @@
|
|||||||
* SUCH DAMAGE.
|
* SUCH DAMAGE.
|
||||||
*
|
*
|
||||||
* from: @(#)cons.c 7.2 (Berkeley) 5/9/91
|
* from: @(#)cons.c 7.2 (Berkeley) 5/9/91
|
||||||
* $Id: cons.c,v 1.41 1995/12/22 13:09:30 phk Exp $
|
* $Id: cons.c,v 1.42 1996/03/27 18:55:19 bde Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <sys/param.h>
|
#include <sys/param.h>
|
||||||
@ -327,9 +327,15 @@ cn_drvinit(void *unused)
|
|||||||
cdevsw_add(&dev,&cn_cdevsw,NULL);
|
cdevsw_add(&dev,&cn_cdevsw,NULL);
|
||||||
cn_devsw_installed = 1;
|
cn_devsw_installed = 1;
|
||||||
#ifdef DEVFS
|
#ifdef DEVFS
|
||||||
cn_devfs_token = devfs_add_devswf(&cn_cdevsw, 0, DV_CHR,
|
cn_devfs_token = devfs_add_devsw(
|
||||||
UID_ROOT, GID_WHEEL, 0600,
|
"/",
|
||||||
"console");
|
"console",
|
||||||
|
&cn_cdevsw,
|
||||||
|
0,
|
||||||
|
DV_CHR,
|
||||||
|
0,
|
||||||
|
0,
|
||||||
|
0640);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -38,7 +38,7 @@
|
|||||||
*
|
*
|
||||||
* from: Utah $Hdr: mem.c 1.13 89/10/08$
|
* from: Utah $Hdr: mem.c 1.13 89/10/08$
|
||||||
* from: @(#)mem.c 7.2 (Berkeley) 5/9/91
|
* from: @(#)mem.c 7.2 (Berkeley) 5/9/91
|
||||||
* $Id: mem.c,v 1.29 1995/12/31 09:32:16 joerg Exp $
|
* $Id: mem.c,v 1.30 1996/03/26 19:57:52 wollman Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@ -111,17 +111,17 @@ memdevfs_init()
|
|||||||
"/", "kmem", &mem_cdevsw, 1, DV_CHR, 0, 2, 0640);
|
"/", "kmem", &mem_cdevsw, 1, DV_CHR, 0, 2, 0640);
|
||||||
null_devfs_token = devfs_add_devsw(
|
null_devfs_token = devfs_add_devsw(
|
||||||
"/", "null", &mem_cdevsw, 2, DV_CHR, 0, 0, 0666);
|
"/", "null", &mem_cdevsw, 2, DV_CHR, 0, 0, 0666);
|
||||||
random_devfs_token = devfs_add_devsw(
|
random_devfs_token = devfs_add_devswf(&mem_cdevsw, 3, DV_CHR, UID_ROOT,
|
||||||
"/", "random", &mem_cdevsw, 3, DV_CHR, 0, 0, 0666);
|
GID_WHEEL, 0644, "random");
|
||||||
urandom_devfs_token = devfs_add_devsw(
|
urandom_devfs_token = devfs_add_devswf(&mem_cdevsw, 4, DV_CHR, UID_ROOT,
|
||||||
"/", "urandom", &mem_cdevsw, 4, DV_CHR, 0, 0, 0666);
|
GID_WHEEL, 0644, "urandom");
|
||||||
zero_devfs_token = devfs_add_devsw(
|
zero_devfs_token = devfs_add_devsw(
|
||||||
"/", "zero", &mem_cdevsw, 12, DV_CHR, 0, 0, 0666);
|
"/", "zero", &mem_cdevsw, 12, DV_CHR, 0, 0, 0666);
|
||||||
io_devfs_token = devfs_add_devsw(
|
io_devfs_token = devfs_add_devsw(
|
||||||
"/", "io", &mem_cdevsw, 14, DV_CHR, 0, 0, 0600);
|
"/", "io", &mem_cdevsw, 14, DV_CHR, 0, 0, 0600);
|
||||||
#ifdef PERFMON
|
#ifdef PERFMON
|
||||||
perfmon_devfs_token = devfs_add_devsw(
|
perfmon_devfs_token = devfs_add_devswf(&mem_cdevsw, 32, DV_CHR, UID_ROOT,
|
||||||
"/", "perfmon", &mem_cdevsw, 32, DV_CHR, 0, 0, 0666);
|
GID_KMEM, 0640, "perfmon");
|
||||||
#endif /* PERFMON */
|
#endif /* PERFMON */
|
||||||
}
|
}
|
||||||
#endif /* DEVFS */
|
#endif /* DEVFS */
|
||||||
|
@ -36,7 +36,7 @@
|
|||||||
* SUCH DAMAGE.
|
* SUCH DAMAGE.
|
||||||
*
|
*
|
||||||
* from: @(#)cons.c 7.2 (Berkeley) 5/9/91
|
* from: @(#)cons.c 7.2 (Berkeley) 5/9/91
|
||||||
* $Id: cons.c,v 1.41 1995/12/22 13:09:30 phk Exp $
|
* $Id: cons.c,v 1.42 1996/03/27 18:55:19 bde Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <sys/param.h>
|
#include <sys/param.h>
|
||||||
@ -327,9 +327,15 @@ cn_drvinit(void *unused)
|
|||||||
cdevsw_add(&dev,&cn_cdevsw,NULL);
|
cdevsw_add(&dev,&cn_cdevsw,NULL);
|
||||||
cn_devsw_installed = 1;
|
cn_devsw_installed = 1;
|
||||||
#ifdef DEVFS
|
#ifdef DEVFS
|
||||||
cn_devfs_token = devfs_add_devswf(&cn_cdevsw, 0, DV_CHR,
|
cn_devfs_token = devfs_add_devsw(
|
||||||
UID_ROOT, GID_WHEEL, 0600,
|
"/",
|
||||||
"console");
|
"console",
|
||||||
|
&cn_cdevsw,
|
||||||
|
0,
|
||||||
|
DV_CHR,
|
||||||
|
0,
|
||||||
|
0,
|
||||||
|
0640);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user