Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/rump/librump/rumpvfs Do not ignore kauth errors when set...



details:   https://anonhg.NetBSD.org/src/rev/f63962576f70
branches:  trunk
changeset: 778506:f63962576f70
user:      njoly <njoly%NetBSD.org@localhost>
date:      Fri Mar 30 18:09:12 2012 +0000

description:
Do not ignore kauth errors when setting file flags.

diffstat:

 sys/rump/librump/rumpvfs/rumpfs.c |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (27 lines):

diff -r fb30c7e5cdff -r f63962576f70 sys/rump/librump/rumpvfs/rumpfs.c
--- a/sys/rump/librump/rumpvfs/rumpfs.c Fri Mar 30 15:49:24 2012 +0000
+++ b/sys/rump/librump/rumpvfs/rumpfs.c Fri Mar 30 18:09:12 2012 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: rumpfs.c,v 1.109 2012/03/22 22:48:56 njoly Exp $       */
+/*     $NetBSD: rumpfs.c,v 1.110 2012/03/30 18:09:12 njoly Exp $       */
 
 /*
  * Copyright (c) 2009, 2010, 2011 Antti Kantee.  All Rights Reserved.
@@ -26,7 +26,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: rumpfs.c,v 1.109 2012/03/22 22:48:56 njoly Exp $");
+__KERNEL_RCSID(0, "$NetBSD: rumpfs.c,v 1.110 2012/03/30 18:09:12 njoly Exp $");
 
 #include <sys/param.h>
 #include <sys/atomic.h>
@@ -930,6 +930,8 @@
                error = kauth_authorize_vnode(cred, KAUTH_VNODE_WRITE_FLAGS, vp,
                    NULL, genfs_can_chflags(cred, vp->v_type, attr->va_uid,
                    false));
+               if (error)
+                       return error;
        }
 
        SETIFVAL(va_flags, u_long);



Home | Main Index | Thread Index | Old Index