Use -3 for wizardmode credentials instead of -1. Technically we
shouldn't have to do this, but some pieces of kernel code still make direct comparisons like cred == NOCRED (which, incidentally, is defined as -1).
This commit is contained in:
parent
4f6334de3c
commit
77fa4c0e46
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: rump.h,v 1.26 2008/03/12 14:49:19 pooka Exp $ */
|
||||
/* $NetBSD: rump.h,v 1.27 2008/06/06 10:46:35 pooka Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2007 Antti Kantee. All Rights Reserved.
|
||||
|
@ -106,7 +106,7 @@ void rump_vp_interlock(struct vnode *);
|
|||
kauth_cred_t rump_cred_create(uid_t, gid_t, size_t, gid_t *);
|
||||
void rump_cred_destroy(kauth_cred_t);
|
||||
|
||||
#define RUMPCRED_SUSER ((void *)-1)
|
||||
#define RUMPCRED_SUSER ((void *)-3)
|
||||
#define WizardMode RUMPCRED_SUSER /* COMPAT_NETHACK */
|
||||
|
||||
int rump_vfs_unmount(struct mount *, int);
|
||||
|
|
Loading…
Reference in New Issue