The NetBSD Project

CVS log for src/sys/secmodel/securelevel/secmodel_securelevel.c

[BACK] Up to [cvs.NetBSD.org] / src / sys / secmodel / securelevel

Request diff between arbitrary revisions


Keyword substitution: kv
Default branch: MAIN


Revision 1.36.2.1: download - view: text, markup, annotated - select for diffs
Mon Dec 14 14:38:16 2020 UTC (3 years, 11 months ago) by thorpej
Branches: thorpej-futex
Diff to: previous 1.36: preferred, colored; next MAIN 1.37: preferred, colored
Changes since revision 1.36: +2 -3 lines
Sync w/ HEAD.

Revision 1.37: download - view: text, markup, annotated - select for diffs
Sat Dec 5 17:33:53 2020 UTC (4 years ago) by thorpej
Branches: MAIN
CVS tags: thorpej-ifq-base, thorpej-ifq, thorpej-i2c-spi-conf2-base, thorpej-i2c-spi-conf2, thorpej-i2c-spi-conf-base, thorpej-i2c-spi-conf, thorpej-futex2-base, thorpej-futex2, thorpej-futex-base, thorpej-cfargs2-base, thorpej-cfargs2, thorpej-cfargs-base, thorpej-cfargs, thorpej-altq-separation-base, thorpej-altq-separation, perseant-exfatfs-base-20240630, perseant-exfatfs-base, perseant-exfatfs, netbsd-10-base, 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, cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x, bouyer-sunxi-drm-base, bouyer-sunxi-drm, HEAD
Diff to: previous 1.36: preferred, colored
Changes since revision 1.36: +2 -3 lines
Remove unnecessary inclusion of <sys/timevar.h>.

Revision 1.32.4.1: download - view: text, markup, annotated - select for diffs
Mon Aug 17 11:27:33 2020 UTC (4 years, 3 months ago) by martin
Branches: netbsd-9
CVS tags: netbsd-9-4-RELEASE, netbsd-9-3-RELEASE, netbsd-9-2-RELEASE, netbsd-9-1-RELEASE
Diff to: previous 1.32: preferred, colored; next MAIN 1.33: preferred, colored
Changes since revision 1.32: +3 -3 lines
Pull up following revision(s) (requested by riastradh in ticket #1053):

	sys/secmodel/securelevel/secmodel_securelevel.c: revision 1.36

Accept ioctl(RNDADDDATA) estimates at securelevel 1 (but not 2).
securelevel=1 is supposed to be a reasonable default for normal
computers.  This got in the way of ever getting entropy from a seed
on a machine with no HWRNG -- e.g., from another machine, or by
making the executive decision that what has been sampled is good
enough and issuing `head -c 32 < /dev/urandom > /dev/random'.

Revision 1.36: download - view: text, markup, annotated - select for diffs
Thu May 28 23:17:25 2020 UTC (4 years, 6 months ago) by riastradh
Branches: MAIN
Branch point for: thorpej-futex
Diff to: previous 1.35: preferred, colored
Changes since revision 1.35: +3 -3 lines
Accept ioctl(RNDADDDATA) estimates at securelevel 1 (but not 2).

securelevel=1 is supposed to be a reasonable default for normal
computers.  This got in the way of ever getting entropy from a seed
on a machine with no HWRNG -- e.g., from another machine, or by
making the executive decision that what has been sampled is good
enough and issuing `head -c 32 < /dev/urandom > /dev/random'.

Revision 1.35: download - view: text, markup, annotated - select for diffs
Mon May 11 19:36:39 2020 UTC (4 years, 6 months ago) by alnsn
Branches: MAIN
Diff to: previous 1.34: preferred, colored
Changes since revision 1.34: +3 -2 lines
KAUTH_MACHDEP_SVS_DISABLE is deprecated.

sysctl machdep.svs.enabled can't be changed anymore
at runtime because it's now a boot option.

Revision 1.31.2.2: download - view: text, markup, annotated - select for diffs
Wed Apr 8 14:09:02 2020 UTC (4 years, 7 months ago) by martin
Branches: phil-wifi
Diff to: previous 1.31.2.1: preferred, colored; branchpoint 1.31: preferred, colored; next MAIN 1.32: preferred, colored
Changes since revision 1.31.2.1: +7 -11 lines
Merge changes from current as of 20200406

Revision 1.34: download - view: text, markup, annotated - select for diffs
Mon Mar 16 21:20:12 2020 UTC (4 years, 8 months ago) by pgoyette
Branches: MAIN
CVS tags: phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, bouyer-xenpvh-base2, bouyer-xenpvh-base1, bouyer-xenpvh-base, bouyer-xenpvh
Diff to: previous 1.33: preferred, colored
Changes since revision 1.33: +3 -7 lines
Use the module subsystem's ability to process SYSCTL_SETUP() entries to
automate installation of sysctl nodes.

Note that there are still a number of device and pseudo-device modules
that create entries tied to individual device units, rather than to the
module itself.  These are not changed.

Revision 1.32.6.1: download - view: text, markup, annotated - select for diffs
Sat Feb 29 20:21:10 2020 UTC (4 years, 9 months ago) by ad
Branches: ad-namecache
Diff to: previous 1.32: preferred, colored; next MAIN 1.33: preferred, colored
Changes since revision 1.32: +6 -6 lines
Sync with head.

Revision 1.33: download - view: text, markup, annotated - select for diffs
Fri Feb 21 00:26:23 2020 UTC (4 years, 9 months ago) by joerg
Branches: MAIN
CVS tags: is-mlppp-base, is-mlppp, ad-namecache-base3
Diff to: previous 1.32: preferred, colored
Changes since revision 1.32: +6 -6 lines
Explicitly cast pointers to uintptr_t before casting to enums. They are
not necessarily the same size. Don't cast pointers to bool, check for
NULL instead.

Revision 1.31.2.1: download - view: text, markup, annotated - select for diffs
Mon Jun 10 22:09:56 2019 UTC (5 years, 5 months ago) by christos
Branches: phil-wifi
Diff to: previous 1.31: preferred, colored
Changes since revision 1.31: +2 -13 lines
Sync with HEAD

Revision 1.30.28.2: download - view: text, markup, annotated - select for diffs
Sat Jul 28 04:38:11 2018 UTC (6 years, 4 months ago) by pgoyette
Branches: pgoyette-compat
CVS tags: pgoyette-compat-merge-20190127
Diff to: previous 1.30.28.1: preferred, colored; branchpoint 1.30: preferred, colored; next MAIN 1.31: preferred, colored
Changes since revision 1.30.28.1: +2 -13 lines
Sync with HEAD

Revision 1.32: download - view: text, markup, annotated - select for diffs
Sun Jul 15 05:16:45 2018 UTC (6 years, 4 months ago) by maxv
Branches: MAIN
CVS tags: phil-wifi-20191119, 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, netbsd-9-base, netbsd-9-0-RELEASE, netbsd-9-0-RC2, netbsd-9-0-RC1, isaki-audio2-base, isaki-audio2, ad-namecache-base2, ad-namecache-base1, ad-namecache-base
Branch point for: netbsd-9, ad-namecache
Diff to: previous 1.31: preferred, colored
Changes since revision 1.31: +2 -13 lines
Retire ipkdb entirely. The option was removed from the config files
yesterday.

ok kamil christos

Revision 1.30.22.1: download - view: text, markup, annotated - select for diffs
Sat May 5 15:11:53 2018 UTC (6 years, 7 months ago) by martin
Branches: netbsd-8
CVS tags: netbsd-8-3-RELEASE, netbsd-8-2-RELEASE, netbsd-8-1-RELEASE, netbsd-8-1-RC1, netbsd-8-0-RELEASE, netbsd-8-0-RC2
Diff to: previous 1.30: preferred, colored; next MAIN 1.31: preferred, colored
Changes since revision 1.30: +7 -2 lines
Pull up following revision(s) (requested by alnsn in ticket #790):

	share/man/man9/secmodel_securelevel.9: revision 1.16
	sys/secmodel/suser/secmodel_suser.c: revision 1.44
	sys/secmodel/securelevel/secmodel_securelevel.c: revision 1.31
	sys/sys/kauth.h: revision 1.76
	sys/arch/x86/x86/svs.c: revision 1.18

Add KAUTH_MACHDEP_SVS_DISABLE and add support to secmodel_securelevel(9).
Disabling SVS is denied at securelevel 1 and above.

Add SVS. It may not be disabled at securelevel 1 and above.

Revision 1.30.28.1: download - view: text, markup, annotated - select for diffs
Wed May 2 07:20:24 2018 UTC (6 years, 7 months ago) by pgoyette
Branches: pgoyette-compat
Diff to: previous 1.30: preferred, colored
Changes since revision 1.30: +7 -2 lines
Synch with HEAD

Revision 1.31: download - view: text, markup, annotated - select for diffs
Thu Apr 26 18:54:09 2018 UTC (6 years, 7 months ago) by alnsn
Branches: MAIN
CVS tags: phil-wifi-base, pgoyette-compat-0625, pgoyette-compat-0521, pgoyette-compat-0502
Branch point for: phil-wifi
Diff to: previous 1.30: preferred, colored
Changes since revision 1.30: +7 -2 lines
Add KAUTH_MACHDEP_SVS_DISABLE and add support to secmodel_securelevel(9).

Disabling SVS is denied at securelevel 1 and above.

Revision 1.28.2.2: download - view: text, markup, annotated - select for diffs
Wed Aug 20 00:04:43 2014 UTC (10 years, 3 months ago) by tls
Branches: tls-maxphys
Diff to: previous 1.28.2.1: preferred, colored; branchpoint 1.28: preferred, colored; next MAIN 1.29: preferred, colored
Changes since revision 1.28.2.1: +3 -14 lines
Rebase to HEAD as of a few days ago.

Revision 1.20.12.3: download - view: text, markup, annotated - select for diffs
Thu May 22 11:41:17 2014 UTC (10 years, 6 months ago) by yamt
Branches: yamt-pagecache
Diff to: previous 1.20.12.2: preferred, colored; branchpoint 1.20: preferred, colored; next MAIN 1.21: preferred, colored
Changes since revision 1.20.12.2: +17 -12 lines
sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs.  ("Protocol error: too many arguments")

Revision 1.29.2.1: download - view: text, markup, annotated - select for diffs
Sun May 18 17:46:20 2014 UTC (10 years, 6 months ago) by rmind
Branches: rmind-smpnet
Diff to: previous 1.29: preferred, colored; next MAIN 1.30: preferred, colored
Changes since revision 1.29: +3 -14 lines
sync with head

Revision 1.30: download - view: text, markup, annotated - select for diffs
Tue Feb 25 18:30:13 2014 UTC (10 years, 9 months ago) by pooka
Branches: MAIN
CVS tags: yamt-pagecache-base9, tls-maxphys-base-20171202, tls-maxphys-base, tls-earlyentropy-base, tls-earlyentropy, rmind-smpnet-nbase, rmind-smpnet-base, riastradh-xf86-video-intel-2-7-1-pre-2-21-15, riastradh-drm2-base3, prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, prg-localcount2, pgoyette-localcount-base, pgoyette-localcount-20170426, pgoyette-localcount-20170320, pgoyette-localcount-20170107, pgoyette-localcount-20161104, pgoyette-localcount-20160806, pgoyette-localcount-20160726, pgoyette-localcount, pgoyette-compat-base, pgoyette-compat-0422, pgoyette-compat-0415, pgoyette-compat-0407, pgoyette-compat-0330, pgoyette-compat-0322, pgoyette-compat-0315, perseant-stdc-iso10646-base, perseant-stdc-iso10646, nick-nhusb-base-20170825, nick-nhusb-base-20170204, nick-nhusb-base-20161204, nick-nhusb-base-20161004, nick-nhusb-base-20160907, nick-nhusb-base-20160529, nick-nhusb-base-20160422, nick-nhusb-base-20160319, nick-nhusb-base-20151226, nick-nhusb-base-20150921, nick-nhusb-base-20150606, nick-nhusb-base-20150406, nick-nhusb-base, nick-nhusb, netbsd-8-base, netbsd-8-0-RC1, netbsd-7-nhusb-base-20170116, netbsd-7-nhusb-base, netbsd-7-nhusb, netbsd-7-base, netbsd-7-2-RELEASE, netbsd-7-1-RELEASE, netbsd-7-1-RC2, netbsd-7-1-RC1, netbsd-7-1-2-RELEASE, netbsd-7-1-1-RELEASE, netbsd-7-1, netbsd-7-0-RELEASE, netbsd-7-0-RC3, netbsd-7-0-RC2, netbsd-7-0-RC1, netbsd-7-0-2-RELEASE, netbsd-7-0-1-RELEASE, netbsd-7-0, netbsd-7, matt-nb8-mediatek-base, matt-nb8-mediatek, localcount-20160914, jdolecek-ncq-base, jdolecek-ncq, bouyer-socketcan-base1, bouyer-socketcan-base, bouyer-socketcan
Branch point for: pgoyette-compat, netbsd-8
Diff to: previous 1.29: preferred, colored
Changes since revision 1.29: +3 -14 lines
Ensure that the top level sysctl nodes (kern, vfs, net, ...) exist before
the sysctl link sets are processed, and remove redundancy.

Shaves >13kB off of an amd64 GENERIC, not to mention >1k duplicate
lines of code.

Revision 1.28.2.1: download - view: text, markup, annotated - select for diffs
Mon Feb 25 00:30:11 2013 UTC (11 years, 9 months ago) by tls
Branches: tls-maxphys
Diff to: previous 1.28: preferred, colored
Changes since revision 1.28: +19 -3 lines
resync with head

Revision 1.26.2.1: download - view: text, markup, annotated - select for diffs
Fri Feb 8 23:04:26 2013 UTC (11 years, 9 months ago) by riz
Branches: netbsd-6
CVS tags: netbsd-6-1-RELEASE, netbsd-6-1-RC4, netbsd-6-1-RC3, netbsd-6-1-RC2, netbsd-6-1-RC1, netbsd-6-1-5-RELEASE, netbsd-6-1-4-RELEASE, netbsd-6-1-3-RELEASE, netbsd-6-1-2-RELEASE, netbsd-6-1-1-RELEASE, netbsd-6-1
Diff to: previous 1.26: preferred, colored; next MAIN 1.27: preferred, colored
Changes since revision 1.26: +19 -3 lines
Pull up following revision(s) (requested by jym in ticket #802):
	sys/secmodel/securelevel/secmodel_securelevel.c: revision 1.29
	sys/secmodel/extensions/secmodel_extensions.c: revision 1.4
Re-instate backwards compatible security.models.bsd44.{curtain,securelevel}.
They were mistakenly removed when curtain and securelevel moved to
secmodel_extensions(9).
Reported by tls@ on tech-security@.
XXX will ask for pull-up for -6.

Revision 1.26.6.1: download - view: text, markup, annotated - select for diffs
Fri Feb 8 23:04:01 2013 UTC (11 years, 9 months ago) by riz
Branches: netbsd-6-0
CVS tags: netbsd-6-0-6-RELEASE, netbsd-6-0-5-RELEASE, netbsd-6-0-4-RELEASE, netbsd-6-0-3-RELEASE, netbsd-6-0-2-RELEASE
Diff to: previous 1.26: preferred, colored; next MAIN 1.27: preferred, colored
Changes since revision 1.26: +19 -3 lines
Pull up following revision(s) (requested by jym in ticket #802):
	sys/secmodel/securelevel/secmodel_securelevel.c: revision 1.29
	sys/secmodel/extensions/secmodel_extensions.c: revision 1.4
Re-instate backwards compatible security.models.bsd44.{curtain,securelevel}.
They were mistakenly removed when curtain and securelevel moved to
secmodel_extensions(9).
Reported by tls@ on tech-security@.
XXX will ask for pull-up for -6.

Revision 1.29: download - view: text, markup, annotated - select for diffs
Mon Jan 28 00:51:30 2013 UTC (11 years, 10 months ago) by jym
Branches: MAIN
CVS tags: riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2, khorben-n900, agc-symver-base, agc-symver
Branch point for: rmind-smpnet
Diff to: previous 1.28: preferred, colored
Changes since revision 1.28: +19 -3 lines
Re-instate backwards compatible security.models.bsd44.{curtain,securelevel}.

They were mistakenly removed when curtain and securelevel moved to
secmodel_extensions(9).

Reported by tls@ on tech-security@.

XXX will ask for pull-up for -6.

Revision 1.20.12.2: download - view: text, markup, annotated - select for diffs
Tue Oct 30 17:22:55 2012 UTC (12 years, 1 month ago) by yamt
Branches: yamt-pagecache
CVS tags: yamt-pagecache-tag8
Diff to: previous 1.20.12.1: preferred, colored; branchpoint 1.20: preferred, colored
Changes since revision 1.20.12.1: +5 -5 lines
sync with head

Revision 1.28: download - view: text, markup, annotated - select for diffs
Wed Jun 27 10:15:25 2012 UTC (12 years, 5 months ago) by cheusov
Branches: MAIN
CVS tags: yamt-pagecache-base8, yamt-pagecache-base7, yamt-pagecache-base6
Branch point for: tls-maxphys
Diff to: previous 1.27: preferred, colored
Changes since revision 1.27: +5 -5 lines
KNF fix. spaces vs. tab

Revision 1.20.12.1: download - view: text, markup, annotated - select for diffs
Tue Apr 17 00:08:51 2012 UTC (12 years, 7 months ago) by yamt
Branches: yamt-pagecache
Diff to: previous 1.20: preferred, colored
Changes since revision 1.20: +56 -8 lines
sync with head

Revision 1.22.2.2: download - view: text, markup, annotated - select for diffs
Thu Apr 5 21:33:50 2012 UTC (12 years, 8 months ago) by mrg
Branches: jmcneill-usbmp
Diff to: previous 1.22.2.1: preferred, colored; branchpoint 1.22: preferred, colored; next MAIN 1.23: preferred, colored
Changes since revision 1.22.2.1: +8 -2 lines
sync to latest -current.

Revision 1.27: download - view: text, markup, annotated - select for diffs
Tue Mar 13 18:41:02 2012 UTC (12 years, 8 months ago) by elad
Branches: MAIN
CVS tags: yamt-pagecache-base5, yamt-pagecache-base4, jmcneill-usbmp-base9, jmcneill-usbmp-base8, jmcneill-usbmp-base10
Diff to: previous 1.26: preferred, colored
Changes since revision 1.26: +8 -2 lines
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.

Revision 1.22.2.1: download - view: text, markup, annotated - select for diffs
Sat Feb 18 07:35:47 2012 UTC (12 years, 9 months ago) by mrg
Branches: jmcneill-usbmp
Diff to: previous 1.22: preferred, colored
Changes since revision 1.22: +40 -3 lines
merge to -current.

Revision 1.26: download - view: text, markup, annotated - select for diffs
Tue Jan 17 10:47:27 2012 UTC (12 years, 10 months ago) by cegger
Branches: MAIN
CVS tags: netbsd-6-base, netbsd-6-0-RELEASE, netbsd-6-0-RC2, netbsd-6-0-RC1, netbsd-6-0-1-RELEASE, matt-nb6-plus-nbase, matt-nb6-plus-base, matt-nb6-plus, jmcneill-usbmp-base7, jmcneill-usbmp-base6, jmcneill-usbmp-base5, jmcneill-usbmp-base4, jmcneill-usbmp-base3, jmcneill-usbmp-base2
Branch point for: netbsd-6-0, netbsd-6
Diff to: previous 1.25: preferred, colored
Changes since revision 1.25: +4 -4 lines
fix secmodel implementation of CPU_UCODE.
ok wiz@ for the manpages
ok elad@

Revision 1.25: download - view: text, markup, annotated - select for diffs
Fri Jan 13 16:05:15 2012 UTC (12 years, 10 months ago) by cegger
Branches: MAIN
Diff to: previous 1.24: preferred, colored
Changes since revision 1.24: +7 -2 lines
Support CPU microcode loading via cpuctl(8).
Implemented and enabled via CPU_UCODE kernel config option
for x86 and Xen Dom0.
Tested on different AMD machines with different
CPU families.

ok wiz@ for the manpages
ok releng@
ok core@ via releng@

Revision 1.24: download - view: text, markup, annotated - select for diffs
Mon Dec 5 00:13:30 2011 UTC (13 years ago) by jym
Branches: MAIN
Diff to: previous 1.23: preferred, colored
Changes since revision 1.23: +3 -3 lines
secmodel_eval(9) may want to access securelevel before it is set
to the right value, so init it first before registering secmodel(9).

Revision 1.23: download - view: text, markup, annotated - select for diffs
Sun Dec 4 19:25:00 2011 UTC (13 years ago) by jym
Branches: MAIN
Diff to: previous 1.22: preferred, colored
Changes since revision 1.22: +35 -3 lines
Implement the register/deregister/evaluation API for secmodel(9). It
allows registration of callbacks that can be used later for
cross-secmodel "safe" communication.

When a secmodel wishes to know a property maintained by another
secmodel, it has to submit a request to it so the other secmodel can
proceed to evaluating the request. This is done through the
secmodel_eval(9) call; example:

    bool isroot;
    error = secmodel_eval("org.netbsd.secmodel.suser", "is-root",
        cred, &isroot);
    if (error == 0 && !isroot)
            result = KAUTH_RESULT_DENY;

This one asks the suser module if the credentials are assumed to be root
when evaluated by suser module. If the module is present, it will
respond. If absent, the call will return an error.

Args and command are arbitrarily defined; it's up to the secmodel(9) to
document what it expects.

Typical example is securelevel testing: when someone wants to know
whether securelevel is raised above a certain level or not, the caller
has to request this property to the secmodel_securelevel(9) module.
Given that securelevel module may be absent from system's context (thus
making access to the global "securelevel" variable impossible or
unsafe), this API can cope with this absence and return an error.

We are using secmodel_eval(9) to implement a secmodel_extensions(9)
module, which plugs with the bsd44, suser and securelevel secmodels
to provide the logic behind curtain, usermount and user_set_cpu_affinity
modes, without adding hooks to traditional secmodels. This solves a
real issue with the current secmodel(9) code, as usermount or
user_set_cpu_affinity are not really tied to secmodel_suser(9).

The secmodel_eval(9) is also used to restrict security.models settings
when securelevel is above 0, through the "is-securelevel-above"
evaluation:
- curtain can be enabled any time, but cannot be disabled if
securelevel is above 0.
- usermount/user_set_cpu_affinity can be disabled any time, but cannot
be enabled if securelevel is above 0.

Regarding sysctl(7) entries:
curtain and usermount are now found under security.models.extensions
tree. The security.curtain and vfs.generic.usermount are still
accessible for backwards compat.

Documentation is incoming, I am proof-reading my writings.

Written by elad@, reviewed and tested (anita test + interact for rights
tests) by me. ok elad@.

See also
http://mail-index.netbsd.org/tech-security/2011/11/29/msg000422.html

XXX might consider va0 mapping too.

XXX Having a secmodel(9) specific printf (like aprint_*) for reporting
secmodel(9) errors might be a good idea, but I am not sure on how
to design such a function right now.

Revision 1.22: download - view: text, markup, annotated - select for diffs
Mon Nov 28 20:57:51 2011 UTC (13 years ago) by jym
Branches: MAIN
CVS tags: jmcneill-usbmp-pre-base2, jmcneill-usbmp-base
Branch point for: jmcneill-usbmp
Diff to: previous 1.21: preferred, colored
Changes since revision 1.21: +7 -7 lines
Whitespace fixes.

Revision 1.21: download - view: text, markup, annotated - select for diffs
Wed Nov 23 10:47:48 2011 UTC (13 years ago) by tls
Branches: MAIN
Diff to: previous 1.20: preferred, colored
Changes since revision 1.20: +7 -2 lines

Load entropy at system boot (only works at securelevel < 1); save
at system shutdown.  Disable with random_seed=NO in rc.conf if desired.

Goes to some trouble to never load or save to network filesystems.

Entropy should really be loaded by the boot loader but I am still
sorting out how to pass it to the kernel.

Revision 1.8.12.5: download - view: text, markup, annotated - select for diffs
Thu Mar 11 15:04:41 2010 UTC (14 years, 9 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.8.12.4: preferred, colored; branchpoint 1.8: preferred, colored; next MAIN 1.9: preferred, colored
Changes since revision 1.8.12.4: +108 -98 lines
sync with head

Revision 1.20: download - view: text, markup, annotated - select for diffs
Wed Oct 7 01:06:57 2009 UTC (15 years, 2 months ago) by elad
Branches: MAIN
CVS tags: yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, yamt-nfs-mp-base9, yamt-nfs-mp-base11, yamt-nfs-mp-base10, uebayasi-xip-base4, uebayasi-xip-base3, uebayasi-xip-base2, uebayasi-xip-base1, uebayasi-xip-base, uebayasi-xip, rmind-uvmplock-nbase, rmind-uvmplock-base, rmind-uvmplock, matt-premerge-20091211, matt-mips64-premerge-20101231, jym-xensuspend-nbase, jruoho-x86intr-base, jruoho-x86intr, jmcneill-audiomp3-base, jmcneill-audiomp3, cherry-xenmp-base, cherry-xenmp, bouyer-quota2-nbase, bouyer-quota2-base, bouyer-quota2
Branch point for: yamt-pagecache
Diff to: previous 1.19: preferred, colored
Changes since revision 1.19: +5 -5 lines
Compare against initproc, not pid 1, to check if it's init (unify).

Revision 1.19: download - view: text, markup, annotated - select for diffs
Tue Oct 6 05:03:58 2009 UTC (15 years, 2 months ago) by elad
Branches: MAIN
Diff to: previous 1.18: preferred, colored
Changes since revision 1.18: +3 -3 lines
Unify: >= 0 -> > -1.

Revision 1.18: download - view: text, markup, annotated - select for diffs
Tue Oct 6 05:01:51 2009 UTC (15 years, 2 months ago) by elad
Branches: MAIN
Diff to: previous 1.17: preferred, colored
Changes since revision 1.17: +12 -17 lines
Cosmetic changes to declarations. No functional change.

Revision 1.17: download - view: text, markup, annotated - select for diffs
Tue Oct 6 04:28:10 2009 UTC (15 years, 2 months ago) by elad
Branches: MAIN
Diff to: previous 1.16: preferred, colored
Changes since revision 1.16: +13 -52 lines
Factor out a block of code that appears in three places (Veriexec, keylock,
and securelevel) so that others can use it as well.

Revision 1.16: download - view: text, markup, annotated - select for diffs
Sat Oct 3 20:48:42 2009 UTC (15 years, 2 months ago) by elad
Branches: MAIN
Diff to: previous 1.15: preferred, colored
Changes since revision 1.15: +5 -14 lines
Introduce time_wraps() to check if setting the time will wrap it (or
close to it). Useful for secmodels.

Replace open-coded form with it in secmodel code (securelevel, keylock).

Note: I need to find a way to make secmodel_keylock.c ~<100 lines.

Revision 1.15: download - view: text, markup, annotated - select for diffs
Fri Oct 2 20:15:07 2009 UTC (15 years, 2 months ago) by elad
Branches: MAIN
Diff to: previous 1.14: preferred, colored
Changes since revision 1.14: +9 -2 lines
Create securelevel variable under securelevel node.

Revision 1.14: download - view: text, markup, annotated - select for diffs
Fri Oct 2 18:50:14 2009 UTC (15 years, 2 months ago) by elad
Branches: MAIN
Diff to: previous 1.13: preferred, colored
Changes since revision 1.13: +73 -17 lines
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

Revision 1.8.12.4: download - view: text, markup, annotated - select for diffs
Wed Sep 16 13:38:06 2009 UTC (15 years, 2 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.8.12.3: preferred, colored; branchpoint 1.8: preferred, colored
Changes since revision 1.8.12.3: +25 -3 lines
sync with head

Revision 1.13: download - view: text, markup, annotated - select for diffs
Thu Sep 3 04:45:28 2009 UTC (15 years, 3 months ago) by elad
Branches: MAIN
CVS tags: yamt-nfs-mp-base8
Diff to: previous 1.12: preferred, colored
Changes since revision 1.12: +25 -3 lines
Implement the vnode scope and adapt tmpfs to use it.

Mailing list reference:

	http://mail-index.netbsd.org/tech-kern/2009/07/04/msg005404.html

Revision 1.8.12.3: download - view: text, markup, annotated - select for diffs
Wed Aug 19 18:48:32 2009 UTC (15 years, 3 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.8.12.2: preferred, colored; branchpoint 1.8: preferred, colored
Changes since revision 1.8.12.2: +7 -2 lines
sync with head.

Revision 1.12: download - view: text, markup, annotated - select for diffs
Sat Jul 25 16:08:02 2009 UTC (15 years, 4 months ago) by mbalmer
Branches: MAIN
CVS tags: yamt-nfs-mp-base7
Diff to: previous 1.11: preferred, colored
Changes since revision 1.11: +7 -2 lines
Extend the existing security models for upcoming gpio(4) changes.
Reviewed and feedback by Elad Efrat.

Revision 1.8.12.2: download - view: text, markup, annotated - select for diffs
Sat May 16 10:41:52 2009 UTC (15 years, 6 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.8.12.1: preferred, colored; branchpoint 1.8: preferred, colored
Changes since revision 1.8.12.1: +23 -2 lines
sync with head

Revision 1.10.2.1: download - view: text, markup, annotated - select for diffs
Wed May 13 17:23:03 2009 UTC (15 years, 6 months ago) by jym
Branches: jym-xensuspend
Diff to: previous 1.10: preferred, colored; next MAIN 1.11: preferred, colored
Changes since revision 1.10: +23 -2 lines
Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.

Revision 1.11: download - view: text, markup, annotated - select for diffs
Wed May 6 21:10:22 2009 UTC (15 years, 7 months ago) by elad
Branches: MAIN
CVS tags: yamt-nfs-mp-base6, yamt-nfs-mp-base5, yamt-nfs-mp-base4, jymxensuspend-base, jym-xensuspend-base
Diff to: previous 1.10: preferred, colored
Changes since revision 1.10: +23 -2 lines
Sprinkle some switch defaults.

Revision 1.8.12.1: download - view: text, markup, annotated - select for diffs
Mon May 4 08:14:34 2009 UTC (15 years, 7 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.8: preferred, colored
Changes since revision 1.8: +11 -16 lines
sync with head.

Revision 1.8.20.1: download - view: text, markup, annotated - select for diffs
Mon Jan 19 13:20:29 2009 UTC (15 years, 10 months ago) by skrll
Branches: nick-hppapmap
Diff to: previous 1.8: preferred, colored; next MAIN 1.9: preferred, colored
Changes since revision 1.8: +11 -16 lines
Sync with HEAD.

Revision 1.8.6.1: download - view: text, markup, annotated - select for diffs
Sat Jan 17 13:29:40 2009 UTC (15 years, 10 months ago) by mjf
Branches: mjf-devfs2
Diff to: previous 1.8: preferred, colored; next MAIN 1.9: preferred, colored
Changes since revision 1.8: +11 -16 lines
Sync with HEAD.

Revision 1.10: download - view: text, markup, annotated - select for diffs
Sun Jan 11 02:45:55 2009 UTC (15 years, 10 months ago) by christos
Branches: MAIN
CVS tags: yamt-nfs-mp-base3, nick-hppapmap-base4, nick-hppapmap-base3, nick-hppapmap-base2, nick-hppapmap-base, mjf-devfs2-base
Branch point for: jym-xensuspend
Diff to: previous 1.9: preferred, colored
Changes since revision 1.9: +11 -15 lines
merge christos-time_t

Revision 1.8.18.1: download - view: text, markup, annotated - select for diffs
Sat Dec 13 01:15:35 2008 UTC (15 years, 11 months ago) by haad
Branches: haad-dm
Diff to: previous 1.8: preferred, colored; next MAIN 1.9: preferred, colored
Changes since revision 1.8: +2 -3 lines
Update haad-dm branch to haad-dm-base2.

Revision 1.8.8.2: download - view: text, markup, annotated - select for diffs
Thu Nov 20 20:45:39 2008 UTC (16 years ago) by christos
Branches: christos-time_t
Diff to: previous 1.8.8.1: preferred, colored; branchpoint 1.8: preferred, colored; next MAIN 1.9: preferred, colored
Changes since revision 1.8.8.1: +2 -3 lines
merge with head.

Revision 1.9: download - view: text, markup, annotated - select for diffs
Wed Nov 12 12:36:28 2008 UTC (16 years ago) by ad
Branches: MAIN
CVS tags: haad-nbase2, haad-dm-base2, haad-dm-base, christos-time_t-nbase, christos-time_t-base, ad-audiomp2-base, ad-audiomp2
Diff to: previous 1.8: preferred, colored
Changes since revision 1.8: +2 -3 lines
Remove LKMs and switch to the module framework, pass 1.

Proposed on tech-kern@.

Revision 1.8.8.1: download - view: text, markup, annotated - select for diffs
Sat Mar 29 20:47:03 2008 UTC (16 years, 8 months ago) by christos
Branches: christos-time_t
Diff to: previous 1.8: preferred, colored
Changes since revision 1.8: +11 -15 lines
Welcome to the time_t=long long dev_t=uint64_t branch.

Revision 1.5.2.3: download - view: text, markup, annotated - select for diffs
Sun Mar 23 02:05:10 2008 UTC (16 years, 8 months ago) by matt
Branches: matt-armv6
Diff to: previous 1.5.2.2: preferred, colored; branchpoint 1.5: preferred, colored; next MAIN 1.6: preferred, colored
Changes since revision 1.5.2.2: +9 -8 lines
sync with HEAD

Revision 1.4.14.2: download - view: text, markup, annotated - select for diffs
Mon Feb 18 21:07:22 2008 UTC (16 years, 9 months ago) by mjf
Branches: mjf-devfs
Diff to: previous 1.4.14.1: preferred, colored; branchpoint 1.4: preferred, colored; next MAIN 1.5: preferred, colored
Changes since revision 1.4.14.1: +526 -0 lines
Sync with HEAD.

Revision 1.4.6.4: download - view: text, markup, annotated - select for diffs
Mon Feb 4 09:24:56 2008 UTC (16 years, 10 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.4.6.3: preferred, colored; branchpoint 1.4: preferred, colored; next MAIN 1.5: preferred, colored
Changes since revision 1.4.6.3: +7 -7 lines
sync with head.

Revision 1.4.10.3: download - view: text, markup, annotated - select for diffs
Wed Jan 23 19:27:47 2008 UTC (16 years, 10 months ago) by bouyer
Branches: bouyer-xeni386
Diff to: previous 1.4.10.2: preferred, colored; branchpoint 1.4: preferred, colored; next MAIN 1.5: preferred, colored
Changes since revision 1.4.10.2: +5 -5 lines
Sync with HEAD.

Revision 1.8: download - view: text, markup, annotated - select for diffs
Wed Jan 23 15:04:41 2008 UTC (16 years, 10 months ago) by elad
Branches: MAIN
CVS tags: yamt-pf42-baseX, yamt-pf42-base4, yamt-pf42-base3, yamt-pf42-base2, yamt-pf42-base, yamt-pf42, yamt-nfs-mp-base2, yamt-nfs-mp-base, yamt-lazymbuf-base15, yamt-lazymbuf-base14, wrstuden-revivesa-base-4, wrstuden-revivesa-base-3, wrstuden-revivesa-base-2, wrstuden-revivesa-base-1, wrstuden-revivesa-base, wrstuden-revivesa, simonb-wapbl-nbase, simonb-wapbl-base, simonb-wapbl, nick-net80211-sync-base, nick-net80211-sync, netbsd-5-base, netbsd-5-2-RELEASE, netbsd-5-2-RC1, netbsd-5-2-3-RELEASE, netbsd-5-2-2-RELEASE, netbsd-5-2-1-RELEASE, netbsd-5-2, netbsd-5-1-RELEASE, netbsd-5-1-RC4, netbsd-5-1-RC3, netbsd-5-1-RC2, netbsd-5-1-RC1, netbsd-5-1-5-RELEASE, netbsd-5-1-4-RELEASE, netbsd-5-1-3-RELEASE, netbsd-5-1-2-RELEASE, netbsd-5-1-1-RELEASE, netbsd-5-1, netbsd-5-0-RELEASE, netbsd-5-0-RC4, netbsd-5-0-RC3, netbsd-5-0-RC2, netbsd-5-0-RC1, netbsd-5-0-2-RELEASE, netbsd-5-0-1-RELEASE, netbsd-5-0, netbsd-5, mjf-devfs-base, matt-nb5-pq3-base, matt-nb5-pq3, matt-nb5-mips64-u2-k2-k4-k7-k8-k9, matt-nb5-mips64-u1-k1-k5, matt-nb5-mips64-premerge-20101231, matt-nb5-mips64-premerge-20091211, matt-nb5-mips64-k15, matt-nb5-mips64, matt-nb4-mips64-k7-u2a-k9b, matt-mips64-base2, matt-armv6-nbase, keiichi-mipv6-nbase, keiichi-mipv6-base, keiichi-mipv6, hpcarm-cleanup-nbase, hpcarm-cleanup-base, haad-dm-base1, bouyer-xeni386-nbase, ad-socklock-base1
Branch point for: yamt-nfs-mp, nick-hppapmap, mjf-devfs2, haad-dm, christos-time_t
Diff to: previous 1.7: preferred, colored
Changes since revision 1.7: +7 -7 lines
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@.

Revision 1.4.6.3: download - view: text, markup, annotated - select for diffs
Mon Jan 21 09:47:46 2008 UTC (16 years, 10 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.4.6.2: preferred, colored; branchpoint 1.4: preferred, colored
Changes since revision 1.4.6.2: +4 -4 lines
sync with head

Revision 1.4.10.2: download - view: text, markup, annotated - select for diffs
Sat Jan 19 12:15:39 2008 UTC (16 years, 10 months ago) by bouyer
Branches: bouyer-xeni386
Diff to: previous 1.4.10.1: preferred, colored; branchpoint 1.4: preferred, colored
Changes since revision 1.4.10.1: +2 -1 lines
Sync with HEAD

Revision 1.7: download - view: text, markup, annotated - select for diffs
Wed Jan 16 12:34:53 2008 UTC (16 years, 10 months ago) by ad
Branches: MAIN
CVS tags: bouyer-xeni386-base
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +3 -2 lines
Pull in my modules code for review/test/hacking.

Revision 1.6: download - view: text, markup, annotated - select for diffs
Mon Jan 14 17:56:21 2008 UTC (16 years, 10 months ago) by ad
Branches: MAIN
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +3 -3 lines
vp->v_rdev, not vp->v_un.vu_specinfo->si_rdev.

Revision 1.5.2.2: download - view: text, markup, annotated - select for diffs
Wed Jan 9 01:58:04 2008 UTC (16 years, 11 months ago) by matt
Branches: matt-armv6
Diff to: previous 1.5.2.1: preferred, colored; branchpoint 1.5: preferred, colored
Changes since revision 1.5.2.1: +525 -0 lines
sync with HEAD

Revision 1.4.10.1: download - view: text, markup, annotated - select for diffs
Wed Jan 2 21:57:57 2008 UTC (16 years, 11 months ago) by bouyer
Branches: bouyer-xeni386
CVS tags: bouyer-xeni386-merge1
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +2 -3 lines
Sync with HEAD

Revision 1.5.2.1
Mon Dec 31 15:32:13 2007 UTC (16 years, 11 months ago) by matt
Branches: matt-armv6
FILE REMOVED
Changes since revision 1.5: +0 -525 lines
file secmodel_securelevel.c was added on branch matt-armv6 on 2008-01-09 01:58:03 +0000

Revision 1.5: download - view: text, markup, annotated - select for diffs
Mon Dec 31 15:32:13 2007 UTC (16 years, 11 months ago) by ad
Branches: MAIN
CVS tags: matt-armv6-base
Branch point for: matt-armv6
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +2 -3 lines
Remove systrace. Ok core@.

Revision 1.4.6.2: download - view: text, markup, annotated - select for diffs
Fri Dec 7 17:34:50 2007 UTC (17 years ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.4.6.1: preferred, colored; branchpoint 1.4: preferred, colored
Changes since revision 1.4.6.1: +526 -0 lines
sync with head

Revision 1.4.2.2: download - view: text, markup, annotated - select for diffs
Tue Nov 27 19:39:10 2007 UTC (17 years ago) by joerg
Branches: jmcneill-pm
Diff to: previous 1.4.2.1: preferred, colored; branchpoint 1.4: preferred, colored; next MAIN 1.5: preferred, colored
Changes since revision 1.4.2.1: +526 -0 lines
Sync with HEAD. amd64 Xen support needs testing.

Revision 1.4.14.1
Sun Nov 25 09:39:26 2007 UTC (17 years ago) by mjf
Branches: mjf-devfs
FILE REMOVED
Changes since revision 1.4: +0 -526 lines
file secmodel_securelevel.c was added on branch mjf-devfs on 2008-02-18 21:07:22 +0000

Revision 1.4.6.1
Sun Nov 25 09:39:26 2007 UTC (17 years ago) by yamt
Branches: yamt-lazymbuf
FILE REMOVED
Changes since revision 1.4: +0 -526 lines
file secmodel_securelevel.c was added on branch yamt-lazymbuf on 2007-12-07 17:34:50 +0000

Revision 1.4.2.1
Sun Nov 25 09:39:26 2007 UTC (17 years ago) by joerg
Branches: jmcneill-pm
FILE REMOVED
Changes since revision 1.4: +0 -526 lines
file secmodel_securelevel.c was added on branch jmcneill-pm on 2007-11-27 19:39:10 +0000

Revision 1.4: download - view: text, markup, annotated - select for diffs
Sun Nov 25 09:39:26 2007 UTC (17 years ago) by elad
Branches: MAIN
CVS tags: yamt-kmem-base3, yamt-kmem-base2, yamt-kmem-base, yamt-kmem, vmlocking2-base3, vmlocking2-base2, vmlocking2-base1, vmlocking2, vmlocking-nbase, reinoud-bufcleanup-nbase, reinoud-bufcleanup-base, jmcneill-pm-base, cube-autoconf-base, cube-autoconf
Branch point for: yamt-lazymbuf, mjf-devfs, jmcneill-pm, bouyer-xeni386
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +2 -7 lines
Deprecate KAUTH_REQ_SYSTEM_TIME_BACKWARDS, as it was merged into
KAUTH_REQ_SYSTEM_TIME_SYSTEM.

Revision 1.3: download - view: text, markup, annotated - select for diffs
Sun Nov 25 00:35:28 2007 UTC (17 years ago) by elad
Branches: MAIN
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +26 -2 lines
Refactor time modification checks and place them in the secmodel code.

okay christos@

Revision 1.2: download - view: text, markup, annotated - select for diffs
Sat Nov 24 20:47:14 2007 UTC (17 years ago) by elad
Branches: MAIN
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +42 -93 lines
Fix a long time issue where the securelevel secmodel would explicitly
allow certain operations.

The suser module of the bsd44 secmodel code was made aware of the missing
operations that were explicitly allowed in the securelevel module, and
the logic in the latter was modified to a default defer, deny where not
allowed.

This concept, which is the correct way to write secmodel code, was first
brought up by pavel@ a long time ago.

okay christos@.

Revision 1.1.2.2: download - view: text, markup, annotated - select for diffs
Thu Nov 22 15:38:36 2007 UTC (17 years ago) by bouyer
Branches: bouyer-xenamd64
Diff to: previous 1.1.2.1: preferred, colored; branchpoint 1.1: preferred, colored; next MAIN 1.2: preferred, colored
Changes since revision 1.1.2.1: +558 -0 lines
Sync with HEAD

Revision 1.1.2.1
Wed Nov 21 22:49:09 2007 UTC (17 years ago) by bouyer
Branches: bouyer-xenamd64
FILE REMOVED
Changes since revision 1.1: +0 -558 lines
file secmodel_securelevel.c was added on branch bouyer-xenamd64 on 2007-11-22 15:38:35 +0000

Revision 1.1: download - view: text, markup, annotated - select for diffs
Wed Nov 21 22:49:09 2007 UTC (17 years ago) by elad
Branches: MAIN
CVS tags: bouyer-xenamd64-base
Branch point for: bouyer-xenamd64
Make securelevel a "secmodel" of its own.

While it's true that it's part of the traditional 4.4BSD security model,
there may come a time where a different "primary" security model used for
fine-grained privileges (ie., splitting root's responsibilities to various
privileges that can be assigned) may want to still have a securelevel
setting.

Idea from Daniel Carosone:

  http://mail-index.netbsd.org/tech-security/2006/08/25/0001.html

The location of the removed files, for reference, was:

  src/secmodel/bsd44/secmodel_bsd44_securelevel.c
  src/secmodel/bsd44/securelevel.h

Diff request

This form allows you to request diffs between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.

Log view options

CVSweb <webmaster@jp.NetBSD.org>