Source-Changes-HG archive

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

[src/netbsd-6]: src/sys/ufs/ufs Pull up following revision(s) (requested by m...



details:   https://anonhg.NetBSD.org/src/rev/67d196ab6a23
branches:  netbsd-6
changeset: 774600:67d196ab6a23
user:      riz <riz%NetBSD.org@localhost>
date:      Thu Sep 13 22:24:27 2012 +0000

description:
Pull up following revision(s) (requested by manu in ticket #551):
        sys/ufs/ufs/ufs_quota.c: revision 1.112
Temporary fix for quotactl authorization: it must use the effective UID
and not the real UID.
Further work is required to move the check to the kauth listener instead
of having it in UFS code.

diffstat:

 sys/ufs/ufs/ufs_quota.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 335fb9c9a345 -r 67d196ab6a23 sys/ufs/ufs/ufs_quota.c
--- a/sys/ufs/ufs/ufs_quota.c   Thu Sep 13 22:22:45 2012 +0000
+++ b/sys/ufs/ufs/ufs_quota.c   Thu Sep 13 22:24:27 2012 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ufs_quota.c,v 1.108.2.1 2012/07/30 08:24:57 martin Exp $       */
+/*     $NetBSD: ufs_quota.c,v 1.108.2.2 2012/09/13 22:24:27 riz Exp $  */
 
 /*
  * Copyright (c) 1982, 1986, 1990, 1993, 1995
@@ -35,7 +35,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ufs_quota.c,v 1.108.2.1 2012/07/30 08:24:57 martin Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ufs_quota.c,v 1.108.2.2 2012/09/13 22:24:27 riz Exp $");
 
 #if defined(_KERNEL_OPT)
 #include "opt_quota.h"
@@ -336,7 +336,7 @@
 static int
 quota_get_auth(struct mount *mp, struct lwp *l, uid_t id) {
        /* The user can always query about his own quota. */
-       if (id == kauth_cred_getuid(l->l_cred))
+       if (id == kauth_cred_geteuid(l->l_cred))
                return 0;
        return kauth_authorize_system(l->l_cred, KAUTH_SYSTEM_FS_QUOTA,
            KAUTH_REQ_SYSTEM_FS_QUOTA_GET, mp, KAUTH_ARG(id), NULL);



Home | Main Index | Thread Index | Old Index