Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/miscfs/genfs uid mismatch for file flags changes is expe...
details: https://anonhg.NetBSD.org/src/rev/df68c87797f6
branches: trunk
changeset: 778507:df68c87797f6
user: njoly <njoly%NetBSD.org@localhost>
date: Fri Mar 30 18:24:08 2012 +0000
description:
uid mismatch for file flags changes is expected to fail with EPERM not
EACCES.
diffstat:
sys/miscfs/genfs/genfs_vnops.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r f63962576f70 -r df68c87797f6 sys/miscfs/genfs/genfs_vnops.c
--- a/sys/miscfs/genfs/genfs_vnops.c Fri Mar 30 18:09:12 2012 +0000
+++ b/sys/miscfs/genfs/genfs_vnops.c Fri Mar 30 18:24:08 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: genfs_vnops.c,v 1.188 2012/03/13 18:40:57 elad Exp $ */
+/* $NetBSD: genfs_vnops.c,v 1.189 2012/03/30 18:24:08 njoly Exp $ */
/*-
* Copyright (c) 2008 The NetBSD Foundation, Inc.
@@ -57,7 +57,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: genfs_vnops.c,v 1.188 2012/03/13 18:40:57 elad Exp $");
+__KERNEL_RCSID(0, "$NetBSD: genfs_vnops.c,v 1.189 2012/03/30 18:24:08 njoly Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -762,7 +762,7 @@
/* The user must own the file. */
if (kauth_cred_geteuid(cred) != owner_uid) {
- return EACCES;
+ return EPERM;
}
if (changing_sysflags) {
Home |
Main Index |
Thread Index |
Old Index