diff options
| author | elad <elad@NetBSD.org> | 2008-02-28 16:09:18 +0000 |
|---|---|---|
| committer | elad <elad@NetBSD.org> | 2008-02-28 16:09:18 +0000 |
| commit | 67470a76a17cbd37c2bee894c39da85e07f123ba (patch) | |
| tree | 763f3b5f0a4fa6fdc37c400504515ac7f2868abe /sys/secmodel | |
| parent | c0adcb9cf8f26af546315ed575e2affa018fdd6a (diff) | |
Factor out the guts of get/setparam so it can be used from the compat code.
Make the FreeBSD and Linux compat code convert the parameters to their
native representation and call the native routines.
Remove KAUTH_PROCESS_SCHEDULER_GET/SET.
Update documentation and examples.
XXX: For now, only the Linux compat code does the priority conversion
XXX: right.
Linux priority conversion code from yamt@, thanks!
Okay yamt@.
Diffstat (limited to 'sys/secmodel')
| -rw-r--r-- | sys/secmodel/bsd44/secmodel_bsd44_suser.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/sys/secmodel/bsd44/secmodel_bsd44_suser.c b/sys/secmodel/bsd44/secmodel_bsd44_suser.c index ff18e6a5a21..5b3b3940da0 100644 --- a/sys/secmodel/bsd44/secmodel_bsd44_suser.c +++ b/sys/secmodel/bsd44/secmodel_bsd44_suser.c @@ -1,4 +1,4 @@ -/* $NetBSD: secmodel_bsd44_suser.c,v 1.54 2008/02/27 21:59:26 elad Exp $ */ +/* $NetBSD: secmodel_bsd44_suser.c,v 1.55 2008/02/28 16:09:19 elad Exp $ */ /*- * Copyright (c) 2006 Elad Efrat <elad@NetBSD.org> * All rights reserved. @@ -38,7 +38,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: secmodel_bsd44_suser.c,v 1.54 2008/02/27 21:59:26 elad Exp $"); +__KERNEL_RCSID(0, "$NetBSD: secmodel_bsd44_suser.c,v 1.55 2008/02/28 16:09:19 elad Exp $"); #include <sys/types.h> #include <sys/param.h> @@ -689,8 +689,6 @@ secmodel_bsd44_suser_process_cb(kauth_cred_t cred, kauth_action_t action, break; } - case KAUTH_PROCESS_SCHEDULER_GET: - case KAUTH_PROCESS_SCHEDULER_SET: case KAUTH_PROCESS_SCHEDULER_GETPARAM: if (isroot || kauth_cred_uidmatch(cred, p->p_cred)) result = KAUTH_RESULT_ALLOW; |
