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 permission of /kern/hostname to 0644
details: https://anonhg.NetBSD.org/src/rev/3d739cbffe09
branches: trunk
changeset: 551659:3d739cbffe09
user: itojun <itojun%NetBSD.org@localhost>
date: Wed Sep 10 03:42:07 2003 +0000
description:
fix permission of /kern/hostname to 0644
diffstat:
sys/miscfs/kernfs/kernfs_subr.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (29 lines):
diff -r 7a0aecf0ec01 -r 3d739cbffe09 sys/miscfs/kernfs/kernfs_subr.c
--- a/sys/miscfs/kernfs/kernfs_subr.c Wed Sep 10 03:34:58 2003 +0000
+++ b/sys/miscfs/kernfs/kernfs_subr.c Wed Sep 10 03:42:07 2003 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: kernfs_subr.c,v 1.2 2003/09/10 03:31:29 dan Exp $ */
+/* $NetBSD: kernfs_subr.c,v 1.3 2003/09/10 03:42:07 itojun Exp $ */
/*
* Copyright (c) 1993
@@ -73,7 +73,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: kernfs_subr.c,v 1.2 2003/09/10 03:31:29 dan Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kernfs_subr.c,v 1.3 2003/09/10 03:42:07 itojun Exp $");
#ifdef _KERNEL_OPT
#include "opt_ipsec.h"
@@ -255,8 +255,8 @@
vp->v_type = VREG;
break;
- case Phostname: /* /kern/hostname = -rw------- */
- kfs->kfs_mode = S_IRUSR|S_IWUSR;
+ case Phostname: /* /kern/hostname = -rw-r-r--- */
+ kfs->kfs_mode = S_IRUSR|S_IWUSR|S_IRGRP|S_IROTH;
vp->v_type = VREG;
break;
Home |
Main Index |
Thread Index |
Old Index