Module Name:    src
Committed By:   bad
Date:           Sun Aug  2 20:44:55 UTC 2009

Modified Files:
        src/sys/kern: vfs_syscalls.c

Log Message:
Add a note to change_root() that the callers need to authorize the operation.
As requested by e...@.


To generate a diff of this commit:
cvs rdiff -u -r1.397 -r1.398 src/sys/kern/vfs_syscalls.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/kern/vfs_syscalls.c
diff -u src/sys/kern/vfs_syscalls.c:1.397 src/sys/kern/vfs_syscalls.c:1.398
--- src/sys/kern/vfs_syscalls.c:1.397	Sat Aug  1 21:17:11 2009
+++ src/sys/kern/vfs_syscalls.c	Sun Aug  2 20:44:55 2009
@@ -1,4 +1,4 @@
-/*	$NetBSD: vfs_syscalls.c,v 1.397 2009/08/01 21:17:11 bad Exp $	*/
+/*	$NetBSD: vfs_syscalls.c,v 1.398 2009/08/02 20:44:55 bad Exp $	*/
 
 /*-
  * Copyright (c) 2008, 2009 The NetBSD Foundation, Inc.
@@ -66,7 +66,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: vfs_syscalls.c,v 1.397 2009/08/01 21:17:11 bad Exp $");
+__KERNEL_RCSID(0, "$NetBSD: vfs_syscalls.c,v 1.398 2009/08/02 20:44:55 bad Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_fileassoc.h"
@@ -1207,6 +1207,7 @@
 
 /*
  * Common routine for chroot and fchroot.
+ * NB: callers need to properly authorize the change root operation.
  */
 void
 change_root(struct cwdinfo *cwdi, struct vnode *vp, struct lwp *l)

Reply via email to