Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/miscfs/kernfs Fix perms on /kern/{r,}rootdev.
details: https://anonhg.NetBSD.org/src/rev/f10a854fe401
branches: trunk
changeset: 984389:f10a854fe401
user: dholland <dholland%NetBSD.org@localhost>
date: Tue Jul 06 03:23:03 2021 +0000
description:
Fix perms on /kern/{r,}rootdev.
diffstat:
sys/miscfs/kernfs/kernfs_vnops.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (29 lines):
diff -r 3a5514fa7af9 -r f10a854fe401 sys/miscfs/kernfs/kernfs_vnops.c
--- a/sys/miscfs/kernfs/kernfs_vnops.c Tue Jul 06 03:22:44 2021 +0000
+++ b/sys/miscfs/kernfs/kernfs_vnops.c Tue Jul 06 03:23:03 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: kernfs_vnops.c,v 1.169 2021/07/06 03:22:44 dholland Exp $ */
+/* $NetBSD: kernfs_vnops.c,v 1.170 2021/07/06 03:23:03 dholland Exp $ */
/*
* Copyright (c) 1992, 1993
@@ -39,7 +39,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: kernfs_vnops.c,v 1.169 2021/07/06 03:22:44 dholland Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kernfs_vnops.c,v 1.170 2021/07/06 03:23:03 dholland Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -91,8 +91,8 @@
#if 0
{ DT_DIR, N("root"), 0, KFSnull, VDIR, DIR_MODE },
#endif
- { DT_BLK, N("rootdev"), &rootdev, KFSdevice, VBLK, READ_MODE },
- { DT_CHR, N("rrootdev"), &rrootdev, KFSdevice, VCHR, READ_MODE },
+ { DT_BLK, N("rootdev"), &rootdev, KFSdevice, VBLK, UREAD_MODE },
+ { DT_CHR, N("rrootdev"), &rrootdev, KFSdevice, VCHR, UREAD_MODE },
{ DT_REG, N("time"), 0, KFStime, VREG, READ_MODE },
/* XXXUNCONST */
{ DT_REG, N("version"), __UNCONST(version),
Home |
Main Index |
Thread Index |
Old Index