Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/ufs/ufs fix clearing of system-flags (schg, sappnd). cle...
details: https://anonhg.NetBSD.org/src/rev/c5c465f0bb7d
branches: trunk
changeset: 787251:c5c465f0bb7d
user: kardel <kardel%NetBSD.org@localhost>
date: Sat Jun 08 05:47:02 2013 +0000
description:
fix clearing of system-flags (schg, sappnd). clearing system flags is possible again
at securelevel < 1.
reviewed by christos@
diffstat:
sys/ufs/ufs/ufs_vnops.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 4c20534d0bcf -r c5c465f0bb7d sys/ufs/ufs/ufs_vnops.c
--- a/sys/ufs/ufs/ufs_vnops.c Sat Jun 08 03:26:05 2013 +0000
+++ b/sys/ufs/ufs/ufs_vnops.c Sat Jun 08 05:47:02 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ufs_vnops.c,v 1.212 2013/03/18 19:35:48 plunky Exp $ */
+/* $NetBSD: ufs_vnops.c,v 1.213 2013/06/08 05:47:02 kardel Exp $ */
/*-
* Copyright (c) 2008 The NetBSD Foundation, Inc.
@@ -66,7 +66,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ufs_vnops.c,v 1.212 2013/03/18 19:35:48 plunky Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ufs_vnops.c,v 1.213 2013/06/08 05:47:02 kardel Exp $");
#if defined(_KERNEL_OPT)
#include "opt_ffs.h"
@@ -503,7 +503,7 @@
action |= KAUTH_VNODE_HAS_SYSFLAGS;
}
- if ((vap->va_flags & UF_SETTABLE) != vap->va_flags) {
+ if ((vap->va_flags & SF_SETTABLE) != (ip->i_flags & SF_SETTABLE)) {
action |= KAUTH_VNODE_WRITE_SYSFLAGS;
changing_sysflags = true;
}
Home |
Main Index |
Thread Index |
Old Index