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 /share/examples/secmodel/secmodel_example.c | |
| 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 'share/examples/secmodel/secmodel_example.c')
| -rw-r--r-- | share/examples/secmodel/secmodel_example.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/share/examples/secmodel/secmodel_example.c b/share/examples/secmodel/secmodel_example.c index 1ada365499f..8e40dcf0143 100644 --- a/share/examples/secmodel/secmodel_example.c +++ b/share/examples/secmodel/secmodel_example.c @@ -1,4 +1,4 @@ -/* $NetBSD: secmodel_example.c,v 1.23 2008/02/16 16:39:34 elad Exp $ */ +/* $NetBSD: secmodel_example.c,v 1.24 2008/02/28 16:09:18 elad Exp $ */ /* * This file is placed in the public domain. @@ -13,7 +13,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: secmodel_example.c,v 1.23 2008/02/16 16:39:34 elad Exp $"); +__KERNEL_RCSID(0, "$NetBSD: secmodel_example.c,v 1.24 2008/02/28 16:09:18 elad Exp $"); #include <sys/types.h> #include <sys/param.h> @@ -264,8 +264,6 @@ secmodel_example_process_cb(kauth_cred_t cred, kauth_action_t action, case KAUTH_PROCESS_KEVENT_FILTER: case KAUTH_PROCESS_NICE: case KAUTH_PROCESS_RLIMIT: - case KAUTH_PROCESS_SCHEDULER_GET: - case KAUTH_PROCESS_SCHEDULER_SET: case KAUTH_PROCESS_SCHEDULER_GETAFFINITY: case KAUTH_PROCESS_SCHEDULER_SETAFFINITY: case KAUTH_PROCESS_SCHEDULER_GETPARAM: |
