mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-13 10:02:38 +00:00
Restrict /devfs/io perms to 0600.
Nobody in our regular source tree, or in the non-distfile part of the ports tree does use /dev/io anyway, so this might be replaced by another scenario some day.
This commit is contained in:
parent
0ac727259c
commit
cfaaf1594e
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=13130
@ -38,7 +38,7 @@
|
||||
*
|
||||
* from: Utah $Hdr: mem.c 1.13 89/10/08$
|
||||
* from: @(#)mem.c 7.2 (Berkeley) 5/9/91
|
||||
* $Id: mem.c,v 1.27 1995/12/21 19:22:49 julian Exp $
|
||||
* $Id: mem.c,v 1.28 1995/12/27 11:18:29 markm Exp $
|
||||
*/
|
||||
|
||||
/*
|
||||
@ -110,7 +110,7 @@ memdevfs_init()
|
||||
zero_devfs_token = devfs_add_devsw(
|
||||
"/", "zero", &mem_cdevsw, 12, DV_CHR, 0, 0, 0666);
|
||||
io_devfs_token = devfs_add_devsw(
|
||||
"/", "io", &mem_cdevsw, 14, DV_CHR, 0, 2, 0640);
|
||||
"/", "io", &mem_cdevsw, 14, DV_CHR, 0, 0, 0600);
|
||||
}
|
||||
#endif /* DEVFS */
|
||||
|
||||
|
@ -38,7 +38,7 @@
|
||||
*
|
||||
* from: Utah $Hdr: mem.c 1.13 89/10/08$
|
||||
* from: @(#)mem.c 7.2 (Berkeley) 5/9/91
|
||||
* $Id: mem.c,v 1.27 1995/12/21 19:22:49 julian Exp $
|
||||
* $Id: mem.c,v 1.28 1995/12/27 11:18:29 markm Exp $
|
||||
*/
|
||||
|
||||
/*
|
||||
@ -110,7 +110,7 @@ memdevfs_init()
|
||||
zero_devfs_token = devfs_add_devsw(
|
||||
"/", "zero", &mem_cdevsw, 12, DV_CHR, 0, 0, 0666);
|
||||
io_devfs_token = devfs_add_devsw(
|
||||
"/", "io", &mem_cdevsw, 14, DV_CHR, 0, 2, 0640);
|
||||
"/", "io", &mem_cdevsw, 14, DV_CHR, 0, 0, 0600);
|
||||
}
|
||||
#endif /* DEVFS */
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user