Source-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: src
Module Name: src
Committed By: elad
Date: Fri Oct 2 18:50:15 UTC 2009
Modified Files:
src/distrib/sets/lists/comp: mi
src/distrib/sets/lists/modules: mi
src/sbin/modstat: main.c modstat.8
src/share/man/man9: Makefile secmodel_bsd44.9
src/sys/kern: init_main.c kern_module.c
src/sys/modules: Makefile
src/sys/rump/librump/rumpkern: Makefile.rumpkern misc_stub.c rump.c
src/sys/rump/librump/rumpvfs: rump_vfs.c
src/sys/secmodel: files.secmodel
src/sys/secmodel/bsd44: bsd44.h files.bsd44 secmodel_bsd44.c
src/sys/secmodel/overlay: overlay.h secmodel_overlay.c
src/sys/secmodel/securelevel: secmodel_securelevel.c securelevel.h
src/sys/sys: module.h param.h
Added Files:
src/share/man/man9: secmodel_suser.9
src/sys/modules/secmodel_bsd44: Makefile
src/sys/modules/secmodel_overlay: Makefile
src/sys/modules/securelevel: Makefile
src/sys/modules/suser: Makefile
src/sys/secmodel/suser: files.suser secmodel_suser.c suser.h
Removed Files:
src/sys/secmodel/bsd44: secmodel_bsd44_logic.c secmodel_bsd44_suser.c
suser.h
Log Message:
First part of secmodel cleanup and other misc. changes:
- Separate the suser part of the bsd44 secmodel into its own secmodel
and directory, pending even more cleanups. For revision history
purposes, the original location of the files was
src/sys/secmodel/bsd44/secmodel_bsd44_suser.c
src/sys/secmodel/bsd44/suser.h
- Add a man-page for secmodel_suser(9) and update the one for
secmodel_bsd44(9).
- Add a "secmodel" module class and use it. Userland program and
documentation updated.
- Manage secmodel count (nsecmodels) through the module framework.
This eliminates the need for secmodel_{,de}register() calls in
secmodel code.
- Prepare for secmodel modularization by adding relevant module bits.
The secmodels don't allow auto unload. The bsd44 secmodel depends
on the suser and securelevel secmodels. The overlay secmodel depends
on the bsd44 secmodel. As the module class is only cosmetic, and to
prevent ambiguity, the bsd44 and overlay secmodels are prefixed with
"secmodel_".
- Adapt the overlay secmodel to recent changes (mainly vnode scope).
- Stop using link-sets for the sysctl node(s) creation.
- Keep sysctl variables under nodes of their relevant secmodels. In
other words, don't create duplicates for the suser/securelevel
secmodels under the bsd44 secmodel, as the latter is merely used
for "grouping".
- For the suser and securelevel secmodels, "advertise presence" in
relevant sysctl nodes (sysctl.security.models.{suser,securelevel}).
- Get rid of the LKM preprocessor stuff.
- As secmodels are now modules, there's no need for an explicit call
to secmodel_start(); it's handled by the module framework. That
said, the module framework was adjusted to properly load secmodels
early during system startup.
- Adapt rump to changes: Instead of using empty stubs for securelevel,
simply use the suser secmodel. Also replace secmodel_start() with a
call to secmodel_suser_start().
- 5.99.20.
Testing was done on i386 ("release" build). Spearated module_init()
changes were tested on sparc and sparc64 as well by martin@ (thanks!).
Mailing list reference:
http://mail-index.netbsd.org/tech-kern/2009/09/25/msg006135.html
To generate a diff of this commit:
cvs rdiff -u -r1.1315 -r1.1316 src/distrib/sets/lists/comp/mi
cvs rdiff -u -r1.2 -r1.3 src/distrib/sets/lists/modules/mi
cvs rdiff -u -r1.6 -r1.7 src/sbin/modstat/main.c
cvs rdiff -u -r1.3 -r1.4 src/sbin/modstat/modstat.8
cvs rdiff -u -r1.292 -r1.293 src/share/man/man9/Makefile
cvs rdiff -u -r1.11 -r1.12 src/share/man/man9/secmodel_bsd44.9
cvs rdiff -u -r0 -r1.1 src/share/man/man9/secmodel_suser.9
cvs rdiff -u -r1.402 -r1.403 src/sys/kern/init_main.c
cvs rdiff -u -r1.49 -r1.50 src/sys/kern/kern_module.c
cvs rdiff -u -r1.32 -r1.33 src/sys/modules/Makefile
cvs rdiff -u -r0 -r1.1 src/sys/modules/secmodel_bsd44/Makefile
cvs rdiff -u -r0 -r1.1 src/sys/modules/secmodel_overlay/Makefile
cvs rdiff -u -r0 -r1.1 src/sys/modules/securelevel/Makefile
cvs rdiff -u -r0 -r1.1 src/sys/modules/suser/Makefile
cvs rdiff -u -r1.49 -r1.50 src/sys/rump/librump/rumpkern/Makefile.rumpkern
cvs rdiff -u -r1.22 -r1.23 src/sys/rump/librump/rumpkern/misc_stub.c
cvs rdiff -u -r1.116 -r1.117 src/sys/rump/librump/rumpkern/rump.c
cvs rdiff -u -r1.24 -r1.25 src/sys/rump/librump/rumpvfs/rump_vfs.c
cvs rdiff -u -r1.3 -r1.4 src/sys/secmodel/files.secmodel
cvs rdiff -u -r1.4 -r1.5 src/sys/secmodel/bsd44/bsd44.h
cvs rdiff -u -r1.2 -r1.3 src/sys/secmodel/bsd44/files.bsd44
cvs rdiff -u -r1.12 -r1.13 src/sys/secmodel/bsd44/secmodel_bsd44.c
cvs rdiff -u -r1.5 -r0 src/sys/secmodel/bsd44/secmodel_bsd44_logic.c
cvs rdiff -u -r1.71 -r0 src/sys/secmodel/bsd44/secmodel_bsd44_suser.c
cvs rdiff -u -r1.6 -r0 src/sys/secmodel/bsd44/suser.h
cvs rdiff -u -r1.3 -r1.4 src/sys/secmodel/overlay/overlay.h
cvs rdiff -u -r1.9 -r1.10 src/sys/secmodel/overlay/secmodel_overlay.c
cvs rdiff -u -r1.13 -r1.14 \
src/sys/secmodel/securelevel/secmodel_securelevel.c
cvs rdiff -u -r1.2 -r1.3 src/sys/secmodel/securelevel/securelevel.h
cvs rdiff -u -r0 -r1.1 src/sys/secmodel/suser/files.suser \
src/sys/secmodel/suser/secmodel_suser.c src/sys/secmodel/suser/suser.h
cvs rdiff -u -r1.15 -r1.16 src/sys/sys/module.h
cvs rdiff -u -r1.354 -r1.355 src/sys/sys/param.h
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Home |
Main Index |
Thread Index |
Old Index