History log of /netbsd-src/share/examples/secmodel/secmodel_example.c (Results 1 – 25 of 30)
Revision Date Author Comments
# c865d5f4 02-Feb-2024 andvar <andvar@NetBSD.org>

s/attachement/attachment/ and s/detachement/detachment/.


# e337e11c 05-Jan-2023 jakllsch <jakllsch@NetBSD.org>

more strip(4) removal, this time in kauth(9)


# 2ce97679 25-Aug-2018 maxv <maxv@NetBSD.org>

Add KAUTH_REQ_PROCESS_CANSEE_EPROC, and use it for the kern.proc node.
Same permission as before, so no functional change.


# 94924a74 15-Jul-2018 maxv <maxv@NetBSD.org>

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

ok kamil christos


# 47c04e7b 04-Dec-2011 jym <jym@NetBSD.org>

Update secmodel_examples to better describe the secmodel(9) API.


# cd05a6ee 28-Feb-2008 elad <elad@NetBSD.org>

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.

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.

show more ...


# 67470a76 28-Feb-2008 elad <elad@NetBSD.org>

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.

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

show more ...


# e99760e7 16-Feb-2008 elad <elad@NetBSD.org>

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

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.

show more ...


# e43f626d 02-Feb-2008 elad <elad@NetBSD.org>

Add, document, and use KAUTH_REQ_PROCESS_KTRACE_PERSISTENT.


# cd23f363 01-Feb-2008 elad <elad@NetBSD.org>

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

Reviewed by ad@, tested by me.


# fb37bad4 30-Jan-2008 elad <elad@NetBSD.org>

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

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


# c27d5f30 23-Jan-2008 elad <elad@NetBSD.org>

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 pa

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

show more ...


# 964f16c2 07-Jan-2008 elad <elad@NetBSD.org>

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 ca

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.

show more ...


# 2ecdf58c 31-Dec-2007 ad <ad@NetBSD.org>

Remove systrace. Ok core@.


# 22274752 23-Nov-2007 uebayasi <uebayasi@NetBSD.org>

s, , ,


# 18558073 23-Nov-2007 elad <elad@NetBSD.org>

Kill another instance of KAUTH_GENERIC_ISSUSER.


# a78693aa 20-Jan-2007 elad <elad@NetBSD.org>

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


# e52ee73e 15-Jan-2007 elad <elad@NetBSD.org>

arg0 is always 'struct proc *' for the process scope.


# a75d82b0 05-Jan-2007 elad <elad@NetBSD.org>

We no longer have 'enum kauth_machdep_req'.


# a13160f4 02-Jan-2007 elad <elad@NetBSD.org>

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

Okay yamt@.


# 504c71d9 26-Dec-2006 elad <elad@NetBSD.org>

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 w

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.

show more ...


# 3d11477c 22-Dec-2006 elad <elad@NetBSD.org>

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.


# 238ad51d 14-Dec-2006 elad <elad@NetBSD.org>

- 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 pr

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

show more ...


# 4b316db1 22-Nov-2006 elad <elad@NetBSD.org>

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

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


# 7d27a7d8 04-Nov-2006 elad <elad@NetBSD.org>

Add example listener for the device scope.
While here, sync with reality.


12