summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorjoerg <joerg@FreeBSD.org>1995-12-31 09:32:16 +0000
committerjoerg <joerg@FreeBSD.org>1995-12-31 09:32:16 +0000
commit4417f7962367aeb4c73b3b9bad8cbc565b2ccde8 (patch)
tree2d61710c6b043ea71b87b3316feba45234183571 /sys
parent0947c5eedadf3db87fb75a8a876ff6844961b107 (diff)
downloadFreeBSD-src-4417f7962367aeb4c73b3b9bad8cbc565b2ccde8.zip
FreeBSD-src-4417f7962367aeb4c73b3b9bad8cbc565b2ccde8.tar.gz
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.
Diffstat (limited to 'sys')
-rw-r--r--sys/amd64/amd64/mem.c4
-rw-r--r--sys/i386/i386/mem.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/sys/amd64/amd64/mem.c b/sys/amd64/amd64/mem.c
index 5327ff9..1439398 100644
--- a/sys/amd64/amd64/mem.c
+++ b/sys/amd64/amd64/mem.c
@@ -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 */
diff --git a/sys/i386/i386/mem.c b/sys/i386/i386/mem.c
index 5327ff9..1439398 100644
--- a/sys/i386/i386/mem.c
+++ b/sys/i386/i386/mem.c
@@ -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 */
OpenPOWER on IntegriCloud