53ca19a3b3
- 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 |
||
---|---|---|
.. | ||
accf_dataready | ||
accf_httpready | ||
adosfs | ||
aio | ||
azalia | ||
ccd | ||
cd9660 | ||
cgd | ||
coda | ||
coda5 | ||
compat | ||
compat_freebsd | ||
compat_ibcs2 | ||
compat_irix | ||
compat_linux | ||
compat_linux32 | ||
compat_netbsd32 | ||
compat_ossaudio | ||
compat_sunos | ||
compat_sunos32 | ||
compat_svr4 | ||
coredump | ||
dm | ||
drm | ||
efs | ||
example | ||
exec_aout | ||
exec_ecoff | ||
exec_elf32 | ||
exec_elf64 | ||
exec_script | ||
ext2fs | ||
fdesc | ||
ffs | ||
filecore | ||
fss | ||
hfs | ||
i915drm | ||
kernfs | ||
ksem | ||
layerfs | ||
lfs | ||
mfs | ||
miniroot | ||
mqueue | ||
msdos | ||
ndis | ||
nfs | ||
nfsserver | ||
nilfs | ||
ntfs | ||
null | ||
overlay | ||
portal | ||
ppp_bsdcomp | ||
ppp_deflate | ||
procfs | ||
pseye | ||
ptyfs | ||
puffs | ||
putter | ||
radeondrm | ||
raidframe | ||
secmodel_bsd44 | ||
secmodel_overlay | ||
securelevel | ||
smbfs | ||
solaris | ||
suser | ||
sysvbfs | ||
tmpfs | ||
tprof | ||
tprof_pmi | ||
uaudio | ||
udf | ||
umap | ||
union | ||
unionfs | ||
uvideo | ||
viadrm | ||
vnd | ||
zfs | ||
Makefile | ||
Makefile.assym | ||
Makefile.inc | ||
README |
README
$NetBSD: README,v 1.1 2008/11/13 10:06:46 ad Exp $ Do not automatically install modules that would fundamentally alter system behaviour or create a security hole, as the system may automatically load modules.