History log of /src/share/man/man9/kauth.9
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
Revision tags: perseant-exfatfs-base-20250801 netbsd-11-base
# 1.115 01-Jul-2025 bad

correct the descriotion if KAUTH_CRED_COPY

Noticed by Vasyl Maksym Lanko.
Bump date.


Revision tags: perseant-exfatfs-base-20240630 perseant-exfatfs-base
# 1.114 04-Oct-2023 ad

branches: 1.114.2;
kauth_cred_hold(): return cred verbatim so that donating a reference to
another data structure can be done more elegantly.


Revision tags: netbsd-10-1-RELEASE netbsd-10-0-RELEASE netbsd-10-0-RC6 netbsd-10-0-RC5 netbsd-10-0-RC4 netbsd-10-0-RC3 netbsd-10-0-RC2 netbsd-10-0-RC1 netbsd-10-base
# 1.113 07-Aug-2021 isaki

x68k now uses KAUTH_MACHDEP_UNMANAGEDMEM.


Revision tags: netbsd-9-4-RELEASE netbsd-9-3-RELEASE cjep_sun2x-base1 cjep_sun2x-base cjep_staticlib_x-base1 netbsd-9-2-RELEASE cjep_staticlib_x-base netbsd-9-1-RELEASE phil-wifi-20200421 phil-wifi-20200411 is-mlppp-base phil-wifi-20200406 netbsd-9-0-RELEASE netbsd-9-0-RC2 netbsd-9-0-RC1 phil-wifi-20191119 netbsd-9-base phil-wifi-20190609 pgoyette-compat-20190127 pgoyette-compat-20190118 pgoyette-compat-1226 pgoyette-compat-1126 pgoyette-compat-1020 pgoyette-compat-0930 pgoyette-compat-0906 pgoyette-compat-0728
# 1.112 15-Jul-2018 maxv

Retire ipkdb entirely. The option was removed from the config files
yesterday.

ok kamil christos


Revision tags: phil-wifi-base pgoyette-compat-0625 pgoyette-compat-0521 pgoyette-compat-0502 pgoyette-compat-0422 pgoyette-compat-0415 pgoyette-compat-0407 pgoyette-compat-0330 pgoyette-compat-0322 pgoyette-compat-0315 pgoyette-compat-base
# 1.111 28-Aug-2017 wiz

branches: 1.111.2; 1.111.4;
Remove superfluous Pp. Fix self-referencing xrefs. Improve others.


# 1.110 28-Aug-2017 wiz

Bump date for previous.


# 1.109 28-Aug-2017 kamil

Remove the filesystem tracing feature

This is a legacy interface from 4.4BSD, and it was
introduced to overcome shortcomings of ptrace(2) at that time, which are
no longer relevant (performance). Today /proc/#/ctl offers a narrow
subset of ptrace(2) commands and is not applicable for modern
applications use beyond simplistic tracing scenarios.

This removal will simplify kernel internals. Users will still be able to
use all the other /proc files.

This change won't affect other procfs files neither Linux compat
features within mount_procfs(8). /proc/#/ctl isn't available on Linux.

Remove:
- /proc/#/ctl from mount_procfs(8)
- P_FSTRACE note from the documentation of ps(1)
- /proc/#/ctl and filesystem tracing documentation from mount_procfs(8)
- KAUTH_REQ_PROCESS_PROCFS_CTL documentation from kauth(9)
- source code file miscfs/procfs/procfs_ctl.c
- PFSctl and procfs_doctl() from sys/miscfs/procfs/procfs.h
- KAUTH_REQ_PROCESS_PROCFS_CTL from sys/sys/kauth.h
- PSL_FSTRACE (0x00010000) from sys/sys/proc.h
- P_FSTRACE (0x00010000) from sys/sys/sysctl.h

Reduce code complexity after removal of this functionality.

Update TODO.ptrace accordingly: remove two entries about /proc tracing.

Do not keep legacy notes as comments in the headers about removed
PSL_FSTRACE / P_FSTRACE, as this interface had little number of users
(close or equal to zero).

Proposed on tech-kern@.

All filesystem tracing utility users are encouraged to switch to ptrace(2).

Sponsored by <The NetBSD Foundation>


Revision tags: perseant-stdc-iso10646-base
# 1.108 03-Jul-2017 wiz

Remove workaround for ancient HTML generation code.


Revision tags: matt-nb8-mediatek-base netbsd-8-base prg-localcount2-base3 prg-localcount2-base2 prg-localcount2-base1 prg-localcount2-base pgoyette-localcount-20170426 bouyer-socketcan-base1 pgoyette-localcount-20170320
# 1.107 18-Mar-2017 riastradh

branches: 1.107.4;
Use `\(em', not `--'.

Refill sentences and tweak wording where appropriate while here.


# 1.106 26-Feb-2017 riastradh

Clarify that kauth_cred_get doesn't modify with reference count.


Revision tags: netbsd-7-2-RELEASE netbsd-7-1-2-RELEASE netbsd-7-1-1-RELEASE netbsd-7-1-RELEASE netbsd-7-1-RC2 netbsd-7-nhusb-base-20170116 bouyer-socketcan-base pgoyette-localcount-20170107 netbsd-7-1-RC1 pgoyette-localcount-20161104 netbsd-7-0-2-RELEASE localcount-20160914 netbsd-7-nhusb-base pgoyette-localcount-20160806 pgoyette-localcount-20160726 pgoyette-localcount-base netbsd-7-0-1-RELEASE netbsd-7-0-RELEASE netbsd-7-0-RC3 netbsd-7-0-RC2 netbsd-7-0-RC1 netbsd-7-base yamt-pagecache-base9 tls-earlyentropy-base riastradh-xf86-video-intel-2-7-1-pre-2-21-15 tls-maxphys-base
# 1.105 18-Mar-2014 riastradh

branches: 1.105.8; 1.105.12;
Merge riastradh-drm2 to HEAD.


Revision tags: riastradh-drm2-base3 riastradh-drm2-base2 riastradh-drm2-base1
# 1.104 20-Jul-2013 wiz

Use Mt for email addresses.


Revision tags: riastradh-drm2-base agc-symver-base yamt-pagecache-base8 yamt-pagecache-base7 yamt-pagecache-base6
# 1.103 03-Jul-2012 cheusov

branches: 1.103.2; 1.103.4;

Fix documentation for function kauth_register_key (PR 46641).


# 1.102 27-Jun-2012 wiz

Bump date for previous.


# 1.101 27-Jun-2012 cheusov

Add new action KAUTH_CRED_CHROOT for kauth(9)'s credential scope.
Reviewed and approved by elad@.


Revision tags: yamt-pagecache-base5 yamt-pagecache-base4
# 1.100 17-Mar-2012 njoly

Small typo.


# 1.99 14-Mar-2012 wiz

Bump date for previous.
Spell "file system" like in other man pages.
Fix typos.


# 1.98 13-Mar-2012 elad

Replace the remaining KAUTH_GENERIC_ISSUSER authorization calls with
something meaningful. All relevant documentation has been updated or
written.

Most of these changes were brought up in the following messages:

http://mail-index.netbsd.org/tech-kern/2012/01/18/msg012490.html
http://mail-index.netbsd.org/tech-kern/2012/01/19/msg012502.html
http://mail-index.netbsd.org/tech-kern/2012/02/17/msg012728.html

Thanks to christos, manu, njoly, and jmmv for input.

Huge thanks to pgoyette for spinning these changes through some build
cycles and ATF.


# 1.97 11-Mar-2012 njoly

Use Lk macro instead of Pa when dealing with URLs, to produce links
with HTML output. And while here update some dead URL links.
First part of PR/29238.


Revision tags: netbsd-6-0-6-RELEASE netbsd-6-1-5-RELEASE netbsd-6-1-4-RELEASE netbsd-6-0-5-RELEASE netbsd-6-1-3-RELEASE netbsd-6-0-4-RELEASE netbsd-6-1-2-RELEASE netbsd-6-0-3-RELEASE netbsd-6-1-1-RELEASE netbsd-6-0-2-RELEASE netbsd-6-1-RELEASE netbsd-6-1-RC4 netbsd-6-1-RC3 netbsd-6-1-RC2 netbsd-6-1-RC1 netbsd-6-0-1-RELEASE matt-nb6-plus-nbase netbsd-6-0-RELEASE netbsd-6-0-RC2 matt-nb6-plus-base netbsd-6-0-RC1 netbsd-6-base
# 1.96 17-Jan-2012 cegger

fix secmodel implementation of CPU_UCODE.
ok wiz@ for the manpages
ok elad@


# 1.95 04-Dec-2011 jym

KAUTH_GENERIC_CANSEE is no more.


# 1.94 04-Dec-2011 jym

GETPARAMS => GETPARAM
SETPARAMS => SETPARAM


Revision tags: yamt-pagecache-base3
# 1.93 08-Nov-2011 wiz

Remove trailing whitespace. New sentence, new line.


# 1.92 08-Nov-2011 jym

Small improvements to kauth(9).


Revision tags: yamt-pagecache-base2 yamt-pagecache-base cherry-xenmp-base
# 1.91 28-Apr-2011 wiz

branches: 1.91.4;
Typo fix.


# 1.90 25-Apr-2011 wiz

Add missing word.


Revision tags: uebayasi-xip-base7 bouyer-quota2-nbase bouyer-quota2-base matt-mips64-premerge-20101231 uebayasi-xip-base6 uebayasi-xip-base5 uebayasi-xip-base4 uebayasi-xip-base3 uebayasi-xip-base2 uebayasi-xip-base1 matt-premerge-20091211
# 1.89 08-Dec-2009 mbalmer

Fix typographics errors.


# 1.88 10-Aug-2009 wiz

Bump date for previous.


# 1.87 10-Aug-2009 plunky

reduce the number of KAUTH_DEVICE_BLUETOOTH_SEND/RECV requests
by passing the packet type as an argument rather than having
a different request for each type.

(from a suggestion by mrg)


# 1.86 10-Aug-2009 plunky

remove last usage of KAUTH_ISSUSER in bluetooth code by adding
some requests to the device scope:

KAUTH_DEVICE_BLUETOOTH_SEND_COMMAND
KAUTH_DEVICE_BLUETOOTH_RECV_COMMAND
KAUTH_DEVICE_BLUETOOTH_RECV_EVENT
KAUTH_DEVICE_BLUETOOTH_RECV_DATA

and a listener tied to the HCI protocol that will approve the basic
minimum to be sent and received.

handle the requests in the bsd44_suser listener by approving all
when the credential is root.


Revision tags: jym-xensuspend-nbase jym-xensuspend-base
# 1.85 08-May-2009 wiz

Spelling fixes.


# 1.84 08-May-2009 elad

Add and use a network scope action/request for tun(4), similar to ppp(4),
sl(4), and strip(4).


# 1.83 07-May-2009 elad

Introduce several actions/requests for authorizing file-system related
operations, specifically quota and block allocation from reserved space.

Modify ufs_quotactl() to accomodate passing "mp" earlier by vfs_busy()ing
it a little bit higher.

Mailing list reference:

http://mail-index.netbsd.org/tech-kern/2009/04/26/msg004936.html

Note that the umapfs request mentioned in this thread was NOT added as
there is still on-going discussion regarding the proper implementation.


# 1.82 07-May-2009 elad

Introduce actions/requests to handle authorization for ppp(4), sl(4),
strip(4), btuart(4) and bcsp(4) network interfaces and devices.

Mailing list reference:

http://mail-index.netbsd.org/tech-kern/2009/04/27/msg004955.html


# 1.81 07-May-2009 wiz

Remove .Pp before and after .Ss.


# 1.80 07-May-2009 elad

.Sy -> .Ss for a subsection header.

Pointed out by wiz@, thanks!


# 1.79 05-May-2009 elad

Add device scope actions for rnd(4) and use them.

Mailing list reference:

http://mail-index.netbsd.org/tech-kern/2009/04/27/msg004953.html


# 1.78 03-May-2009 wiz

Remove Pp before Ss.


# 1.77 03-May-2009 elad

Add a bluetooth action to the device scope and use it in netbt as a
replacement for KAUTH_GENERIC_ISSUSER.

Mailing list reference:

http://mail-index.netbsd.org/tech-kern/2009/04/25/msg004905.html

Bluetooth-specific authorization wrapper might come later.


# 1.76 20-Apr-2009 elad

Document KAUTH_REQ_NETWORK_BIND_PORT.


# 1.75 16-Apr-2009 wiz

exec(3), not (2).


# 1.74 15-Apr-2009 elad

Remove a few KAUTH_GENERIC_ISSUSER in favor of more descriptive
alternatives.

Discussed on tech-kern:

http://mail-index.netbsd.org/tech-kern/2009/04/11/msg004798.html

Input from ad@, christos@, dyoung@, tsutsui@.

Okay ad@.


# 1.73 15-Mar-2009 joerg

Provide -width for -tag lists.


# 1.72 12-Nov-2008 ad

branches: 1.72.2;
Remove LKMs and switch to the module framework, pass 1.

Proposed on tech-kern@.


Revision tags: netbsd-5-2-3-RELEASE netbsd-5-1-5-RELEASE netbsd-5-2-2-RELEASE netbsd-5-1-4-RELEASE netbsd-5-2-1-RELEASE netbsd-5-1-3-RELEASE netbsd-5-2-RELEASE netbsd-5-2-RC1 netbsd-5-1-2-RELEASE netbsd-5-1-1-RELEASE matt-nb5-mips64-premerge-20101231 matt-nb5-pq3-base netbsd-5-1-RELEASE netbsd-5-1-RC4 matt-nb5-mips64-k15 netbsd-5-1-RC3 netbsd-5-1-RC2 netbsd-5-1-RC1 netbsd-5-0-2-RELEASE matt-nb5-mips64-premerge-20091211 matt-nb5-mips64-u2-k2-k4-k7-k8-k9 matt-nb4-mips64-k7-u2a-k9b matt-nb5-mips64-u1-k1-k5 netbsd-5-0-1-RELEASE netbsd-5-0-RELEASE netbsd-5-0-RC4 netbsd-5-0-RC3 netbsd-5-0-RC2 netbsd-5-0-RC1 netbsd-5-base matt-mips64-base2 mjf-devfs2-base
# 1.71 23-Sep-2008 pooka

Make kauth_cred_setgroups() signature match the const, hard reality.


Revision tags: wrstuden-revivesa-base-3 wrstuden-revivesa-base-2 wrstuden-revivesa-base-1 yamt-pf42-base4 yamt-pf42-base3 hpcarm-cleanup-nbase yamt-pf42-baseX yamt-pf42-base2 wrstuden-revivesa-base yamt-pf42-base keiichi-mipv6-nbase keiichi-mipv6-base matt-armv6-nbase
# 1.70 28-Feb-2008 elad

branches: 1.70.2;
Introduce a new kauth action, KAUTH_NETWORK_NFS, and two requests,
KAUTH_REQ_NETWORK_NFS_EXPORT and KAUTH_REQ_NETWORK_NFS_SVC, and use them
to replace two KAUTH_GENERIC_ISSUSER calls in the NFS code.

Also replace two more with KAUTH_SYSTEM_MKNOD, where appropriate.

Documetnation and examples updated. More to come.


# 1.69 28-Feb-2008 elad

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@.


Revision tags: hpcarm-cleanup-base
# 1.68 16-Feb-2008 elad

branches: 1.68.2;
Fold KAUTH_REQ_PROCESS_SCHEDULER_* to KAUTH_PROCESS_SCHEDULER_*. In other
words, don't pass an action and a request, and just use a single action to
indicate what is the operation in question.

This is the first step in fixing PR/37986, which calls for policy/priority
checking in the secmodel code. Right now we're lacking room for another
parameter required to make a decision, and this change makes room for such.


# 1.67 02-Feb-2008 elad

Add, document, and use KAUTH_REQ_PROCESS_KTRACE_PERSISTENT.


# 1.66 01-Feb-2008 elad

Replace a KAUTH_GENERIC_ISSUSER in the cpuctl code with a proper kauth
request.

Reviewed by ad@, tested by me.


# 1.65 30-Jan-2008 elad

Use proper kauth(9) actions/requests for native scheduler stuff and the
recently introduced processor-sets.

Discussed with and okay rmind@, yamt@, and christos@.


# 1.64 23-Jan-2008 elad

Bump date.


# 1.63 23-Jan-2008 elad

Tons of process scope changes.

- Add a KAUTH_PROCESS_SCHEDULER action, to handle scheduler related
requests, and add specific requests for set/get scheduler policy and
set/get scheduler parameters.

- Add a KAUTH_PROCESS_KEVENT_FILTER action, to handle kevent(2) related
requests.

- Add a KAUTH_DEVICE_TTY_STI action to handle requests to TIOCSTI.

- Add requests for the KAUTH_PROCESS_CANSEE action, indicating what
process information is being looked at (entry itself, args, env,
open files).

- Add requests for the KAUTH_PROCESS_RLIMIT action indicating set/get.

- Add requests for the KAUTH_PROCESS_CORENAME action indicating set/get.

- Make bsd44 secmodel code handle the newly added rqeuests appropriately.

All of the above make it possible to issue finer-grained kauth(9) calls in
many places, removing some KAUTH_GENERIC_ISSUSER requests.

- Remove the "CAN" from KAUTH_PROCESS_CAN{KTRACE,PROCFS,PTRACE,SIGNAL}.

Discussed with christos@ and yamt@.


# 1.62 09-Jan-2008 simonb

Remove support for NetBSD/pc532.


# 1.61 09-Jan-2008 simonb

Remove some old sh5 references.


Revision tags: matt-armv6-base
# 1.60 07-Jan-2008 elad

Make fork use kauth.

Been running in my tree for over a month at least.

Reviewed and okay yamt@, and special thanks to him as well as rittera@
for making this possible through fixing NDIS to not call fork1() with
l1 != curlwp.


Revision tags: pc532-eol-2008
# 1.59 31-Dec-2007 ad

Remove systrace. Ok core@.


Revision tags: cube-autoconf-base
# 1.58 27-Nov-2007 elad

Add a NOTES section to the manual, indicating that kauth(9) is still under
active development and its ABI (and possibly API) may change between
NetBSD versions.

This is critical to, for example, LKMs, where there might be a case of them
being built using one version of the ABI and used on system with another.

The main concern for "ABI" here is the set of KAUTH_* actions and requests
that is (for now) an enum. This note is likely to be removed as kauth(9)
is stablized -- hopefully before NetBSD 5.0.

okay christos@


# 1.57 25-Nov-2007 elad

Deprecate KAUTH_REQ_SYSTEM_TIME_BACKWARDS, as it was merged into
KAUTH_REQ_SYSTEM_TIME_SYSTEM.


# 1.56 25-Nov-2007 elad

Refactor time modification checks and place them in the secmodel code.

okay christos@


# 1.55 23-Nov-2007 elad

Fix typo.


# 1.54 23-Nov-2007 elad

Kill another instance of KAUTH_GENERIC_ISSUSER.


# 1.53 23-Sep-2007 yamt

use a correct type for UIO_*.


Revision tags: matt-mips64-base
# 1.52 11-Jul-2007 dsl

branches: 1.52.4;
Document the 'flags' parameter to kauth_cred_set/getgroups.
Fix some obvious typos in the return types and return values of these
functions.


# 1.51 31-Jan-2007 elad

Add a new scope, the credentials scope, which is internal to the kauth(9)
implementation and meant to be used by security models to hook credential
related operations (init, fork, copy, free -- hooked in kauth_cred_alloc(),
kauth_proc_fork(), kauth_cred_clone(), and kauth_cred_free(), respectively)
and document it.

Add specificdata to credentials, and routines to register/deregister new
"keys", as well as set/get routines. This allows security models to add
their own private data to a kauth_cred_t.

The above two, combined, allow security models to control inheritance of
their own private data in credentials which is a requirement for doing
stuff like, I dunno, capabilities?


# 1.50 28-Jan-2007 elad

Talk about special cases for kauth_authorize_action().


# 1.49 27-Jan-2007 elad

Remove extra '.El', left in previous commit.


# 1.48 20-Jan-2007 elad

Kill KAUTH_PROCESS_RESOURCE and just replace it with two actions for
nice and rlimit.


# 1.47 15-Jan-2007 elad

Introduce kauth_proc_fork() to control credential inheritance.


# 1.46 09-Jan-2007 elad

Remove advertising clause from all of my stuff.


# 1.45 02-Jan-2007 elad

Make mount(2) and unmount(2) use kauth(9) for security policy.

Okay yamt@.


# 1.44 01-Jan-2007 elad

Make kauth_deregister_scope() and kauth_unlisten_scope() free the
passed kauth_scope_t and kauth_listener_t objects, respectively.

Okay yamt@.


# 1.43 26-Dec-2006 elad

Make machdep scope architecture-agnostic by removing all arch-specific
requests and centralizing them all. The result is that some of these
are not used on some architectures, but the documentation was updated
to reflect that.


# 1.42 23-Dec-2006 wiz

Use Dv for defined values.


# 1.41 23-Dec-2006 wiz

Fix sections in Xrefs.


# 1.40 22-Dec-2006 elad

Add requests indicating access to unmanaged memory for arm, pc532, powerpc,
sh3, sh5, and vax, and use them instead of KAUTH_GENERIC_ISSUSER.

Update documentation and example secmodel code.


# 1.39 19-Dec-2006 elad

Some changes to get rid of another KAUTH_GENERIC_ISSUSER usage:
- Make procfs_control() in procfs_ctl.c static,
- Add an argument to the above, 'pfs', for the pfsnode,
- Add another request type to KAUTH_PROCESS_CANPROCFS named
KAUTH_REQ_PROCESS_CANPROCFS_CTL (and update documentation),
- Use the above combination in a call to kauth_authorize_process().


# 1.38 14-Dec-2006 elad

- moves 'nice' access semantics to secmodel code,
- makes sysctl_proc_find() just lookup the process,
- use KAUTH_PROCESS_CANSEE requests to determine if the caller is
allowed to view the target process' corename, stop flags, and
rlimits,
- use explicit kauth(9) calls with KAUTH_PROCESS_CORENAME,
KAUTH_REQ_PROCESS_RESOURCE_NICE, KAUTH_REQ_PROCESS_RESOURCE_RLIMIT,
and KAUTH_PROCESS_STOPFLAG when modifying the aforementioned.
- sync man-page and example skeleton secmodel with reality.

okay yamt@

this is a pullup candidate.


# 1.37 02-Dec-2006 elad

Change kauth(9) KPI for kauth_authorize_device_passthru() to add another
argument, u_long, serving as a bit-mask of generic requests for the
passthru request.

Discussed on tech-security@ and tech-kern@. Okay tls@.


Revision tags: netbsd-4-base
# 1.36 28-Nov-2006 elad

branches: 1.36.2;
Move ktrace, ptrace, systrace, and procfs to use kauth(9).

First, remove process_checkioperm() calls from MD code. Similar checks
using kauth(9) routines (on the process scope, using appropriate action)
are done in the callers.

Add secmodel back-end to handle each subsystem.


# 1.35 22-Nov-2006 elad

Introduce KAUTH_REQ_MACHDEP_{ALPHA,X86}_UNMANAGEDMEM to handle access
to unmanaged memory.

These are the last two securelevel references in the MD code.


# 1.34 19-Nov-2006 elad

Provide a standard authorization wrapper for the device scope.


# 1.33 15-Nov-2006 elad

First attempt at an examples section, and while here also add some notes
about extending kauth(9).


# 1.32 04-Nov-2006 elad

Sync with reality.


# 1.31 30-Oct-2006 wiz

Avoid punctuation markup; remove pastos (?).


# 1.30 30-Oct-2006 elad

Use integers, not pointers to integers, for KAUTH_REQ_NETWORK_SOCKET_OPEN.

Reminded by yamt@, thanks!


# 1.29 26-Oct-2006 elad

Don't take chances... properly document KAUTH_NETWORK_INTERFACE. On a
second thought having that warning just in the CVS log doesn't look too
helpful. :)


# 1.28 26-Oct-2006 elad

Document that arg1 and arg2 for KAUTH_NETWORK_INTERFACE are optional.
Document that arg3 is optionally the interface-specific request. Should
only make sense if we pass ifnet * in arg1!


# 1.27 25-Oct-2006 elad

Introduce KAUTH_REQ_NETWORK_SOCKET_OPEN, to check if opening a socket is
allowed. It takes three int * arguments indicating domain, type, and
protocol. Replace previous KAUTH_REQ_NETWORK_SOCKET_RAWSOCK with it (but
keep it still).

Places that used to explicitly check for privileged context now don't
need it anymore, so I replaced these with XXX comment indiacting it for
future reference.

Documented and updated examples as well.


# 1.26 24-Oct-2006 elad

Sync documentation for KAUTH_PROCESS_CANSIGNAL with reality.


# 1.25 22-Oct-2006 elad

Use consistent wording.

While here, undocument converstion routines for pcred/ucred, as these are
going to be deprecated. They already are, actually, but because we exposed
them to userland so cleverly with sysctl, it may require more thinking
before actually removing them. For now, just make sure nobody relies on
these types. Or at least try...


# 1.24 22-Oct-2006 pooka

reflect kauth uucred routine changes

thanks to Elad for reminding


# 1.23 21-Oct-2006 elad

Document KAUTH_NETWORK_INTERFACE arguments.


# 1.22 20-Oct-2006 elad

Introduce a new action on the network scope, KAUTH_NETWORK_INTERFACE,
used to manage network interfaces.

Add four sub-actions to fulfill generic needs for now, until a more
carefully defined usage of the interface is documented: get, set,
getpriv, and setpriv.


# 1.21 20-Oct-2006 elad

Add a new ALTQ kauth(9) request, KAUTH_REQ_NETWORK_ALTQ_JOBS.


# 1.20 13-Oct-2006 elad

Introduce KAUTH_REQ_NETWORK_SOCKET_CANSEE. Since we're not gonna be having
credentials on sockets, at least not anytime soon, this is a way to check
if we can "look" at a socket. Later on when (and if) we do have socket
credentials, the interface usage remains the same because we pass the
socket.

This also fixes sysctl for inet/inet6 pcblist.


# 1.19 03-Oct-2006 wiz

Use present tense for device scope, like for the others.


# 1.18 30-Sep-2006 elad

Some mdoc cleanup.


# 1.17 30-Sep-2006 elad

Implement the "device" scope.

It uses an authorization wrapper per device class on the system to
ensure type-safety.

For now, it supports only terminal (TTY) devices, and has two actions
for them: "open terminal" and "privileged set". Sample usage has been
added to i386 and hp300 code for reference.

Update documentation.


# 1.16 23-Sep-2006 wiz

Drop trailing spaces.


# 1.15 19-Sep-2006 elad

Lose (void *) casts on the machdep scope authorization wrapper. Update
documentation.


# 1.14 19-Sep-2006 elad

Remove ugly (void *) casts from network scope authorization wrapper and
calls to it.

While here, adapt code for system scope listeners to avoid some more
casts (forgotten in previous run).

Update documentation.


# 1.13 17-Sep-2006 wiz

Typo fix. Plural fixes.


# 1.12 17-Sep-2006 elad

Update kauth(9) that was forgotten in the big secmodel commit, and some
markup fixes.


# 1.11 14-Aug-2006 ad

Minor update for per-LWP creds.


Revision tags: abandoned-netbsd-4-base
# 1.10 22-Jul-2006 elad

sync with reality.


# 1.9 20-Jul-2006 elad

add note about how listeners should not sleep.


# 1.8 17-Jul-2006 elad

correct documentation wrt/KAUTH_PROCESS_CANSEE.


# 1.7 17-Jul-2006 ad

Sync with reality.


# 1.6 16-Jul-2006 elad

add KAUTH_GENERIC_CANSEE, which is like the KAUTH_PROCESS_CANSEE, only
for two kauth_cred_t rather than kauth_cred_t and struct proc *.

advise against using it in the man-page; it should be used only in cases
where we either don't have an object-specific op or when we can't easily
use one.


# 1.5 14-Jul-2006 elad

kauth(9) will be in netbsd 4.0.


Revision tags: chap-midi-nbase chap-midi-base
# 1.4 28-May-2006 yamt

remove kauth_cred_destroy.


# 1.3 14-May-2006 yamt

branches: 1.3.2;
add a missing \ .


# 1.2 14-May-2006 elad

add kauth man-page.


# 1.1 10-Mar-2006 elad

branches: 1.1.2;
file kauth.9 was initially added on branch elad-kernelauth.