From 418e5b1cea6b2f3429fc883c8486797cb2051baa Mon Sep 17 00:00:00 2001 From: pooka Date: Sun, 22 Oct 2006 13:42:17 +0000 Subject: [PATCH] reflect kauth uucred routine changes thanks to Elad for reminding --- share/man/man9/kauth.9 | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/share/man/man9/kauth.9 b/share/man/man9/kauth.9 index e99d1425343d..6532a42647be 100644 --- a/share/man/man9/kauth.9 +++ b/share/man/man9/kauth.9 @@ -1,4 +1,4 @@ -.\" $NetBSD: kauth.9,v 1.23 2006/10/21 00:07:40 elad Exp $ +.\" $NetBSD: kauth.9,v 1.24 2006/10/22 13:42:17 pooka Exp $ .\" .\" Copyright (c) 2005, 2006 Elad Efrat .\" All rights reserved. @@ -28,7 +28,7 @@ .\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF .\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. .\" -.Dd October 21, 2006 +.Dd October 22, 2006 .Dt KAUTH 9 .Os .Sh NAME @@ -727,7 +727,7 @@ Note that will try to copy as many groups as .Ar ucred can hold. -.It Ft void Fn kauth_cred_uucvt "kauth_cred_t cred" "const struct uucred *uucred" +.It Ft void Fn kauth_uucred_to_cred "kauth_cred_t cred" "const struct uucred *uucred" Convert userland's view of credentials to a .Ft kauth_cred_t . .Pp @@ -740,6 +740,16 @@ Note that will try to copy as many groups as can be held inside a .Ft kauth_cred_t . The addition of groups will also guarantee order and no duplicates. +.It Ft void Fn kauth_cred_to_uucred "struct uucred *uucred" "const kauth_cred_t cred" +Convert +.Ft kauth_cred_t +to userland credentials. +.Pp +This fills +.Ar uucred +with the effective uid (euid) and gid (egid) and the supplementary groups +from +.Ar cred . .It Ft int Fn kauth_cred_uucmp "kauth_cred_t cred" "struct uucred *uucred" Compares .Ar cred