Commit Graph

1748 Commits

Author SHA1 Message Date
christos
0b1f5855c2 no stack protector warning for execvp 2006-11-09 04:00:11 +00:00
christos
4ba9b8cfbe undo the previous; we need alloca here, otherwise the parent will leak on
vfork.
2006-11-09 03:57:26 +00:00
christos
e0d6d71d76 use mmap instead of malloc because we may have vforked. pointed out by yamt. 2006-11-09 02:51:52 +00:00
christos
249933b899 if we are using ssp, use malloc instead of alloca. 2006-11-08 23:27:32 +00:00
christos
b442c7cdd1 weak for syslog_ss 2006-11-05 04:35:35 +00:00
christos
95c7627c87 use FD_CLOEXEC instead of 1. 2006-11-03 20:18:49 +00:00
christos
1083e07a50 - verify that the log file is usable, otherwise re-open it.
- if the file is re-opened, clear the connected flag.
- don't check that the file is opened before connecting, because the
  file will be opened then.
2006-11-02 20:36:29 +00:00
cbiere
4b14bb6309 Changed error message of ENOPROTOOPT to "Protocol option not available". 2006-10-31 00:38:06 +00:00
wiz
bb93eb1630 Remove trailing whitespace. Use .Bl -enum for an enumeration. 2006-10-28 22:50:16 +00:00
christos
5c60f22be5 need to negate before masking; from abp. 2006-10-27 21:36:50 +00:00
christos
d15d9f8a71 add async-signal-safe versions: syslog_ss and vsyslog_ss
multithread-safe syslog_r and vsyslog_r are not async-signal-safe.
2006-10-27 20:00:55 +00:00
uwe
b0f3335e9a Add syslog_r.3 link (hi christos). 2006-10-27 01:24:26 +00:00
wiz
d8f71c6e09 Various fixes. 2006-10-26 13:08:17 +00:00
christos
64c9721228 don't use strerror_r in the re-entrant case. 2006-10-26 10:00:38 +00:00
christos
77f9f63fa2 add _r functions for syslog from OpenBSD 2006-10-25 23:49:31 +00:00
uwe
87cd2874b2 G/c check() macro, b/c it's used only twice and the off < 0 test is
useless in the first case (off is 0), and causes error with new gcc
(comparison of unsigned expression < 0 is always false) in the
second.

While here fix a typo in a comment and use less indent to make BAD and
BADUNMAP definitions fit 80 columns.

XXX: The second check should probably be more elaborate to protect
against bogus/malicious COFF files.
2006-10-25 20:43:49 +00:00
he
b98baf7a62 Avoid "unsigned < 0" comparison by open-coding the remaining part
of the check() macro.
2006-10-23 15:27:41 +00:00
yamt
355bbc5cdf document tcp.abc. 2006-10-19 11:48:02 +00:00
christos
ce2c90c7c1 fix incomplete initializers 2006-10-15 16:14:46 +00:00
christos
3b77d4bc25 instead of using the (void)&foo kludge to avoid longjmp clobbering of variables
make the variables volatile as needed.
2006-10-15 16:12:02 +00:00
wiz
22b0689a70 Bump date for previous. 2006-10-13 21:12:51 +00:00
rpaulo
f3330397f0 Modular (I tried ;-) TCP congestion control API. Whenever certain conditions
happen in the TCP stack, this interface calls the specified callback to
handle the situation according to the currently selected congestion
control algorithm.
A new sysctl node was created: net.inet.tcp.congctl.{available,selected}
with obvious meanings.
The old net.inet.tcp.newreno MIB was removed.
The API is discussed in tcp_congctl(9).

In the near future, it will be possible to selected a congestion control
algorithm on a per-socket basis.

Discussed on tech-net and reviewed by <yamt>.
2006-10-09 16:27:07 +00:00
elad
e18b1bdd1d PR/27233: Arto Selonen: 'options BUFCACHE' vs. 'sysctl vm.bufcache'
documentation differs
2006-10-08 15:56:50 +00:00
elad
0dd96e541d PR/19444: IIMURA Takuji: usleep(0); seems to microsleep(1);
Patch applied, thanks!
2006-10-08 15:25:28 +00:00
rillig
30991c10e3 Fixed the wording of the <ctype.h> character classification functions by
always using "function" instead of "macro".

Changed "undefined result" into "undefined behavior" for argument values
outside the valid range. Since the character table is allocated via
malloc(), it _may_ happen that it starts at a page boundary, so that
negative values for the argument result in a segmentation fault. In that
case, there is no result at all.
2006-10-05 22:34:52 +00:00
elad
5c38108d28 Change the PaX mprotect(2) restrictions' "global_protection" knob to
just "global" -- it's shorter and more readable. Update documentation.
2006-09-26 14:48:40 +00:00
wiz
9934420870 Only mark up one word, not the whole sentence. 2006-09-06 18:59:21 +00:00
liamjfoy
ecc29b2222 document net.inet.ip.maxflows. dump date. 2006-09-06 18:56:21 +00:00
rpaulo
2fb2ae3251 Import of TCP ECN algorithm for congestion control.
Both available for IPv4 and IPv6.
Basic implementation test results are available at
http://netbsd-soc.sourceforge.net/projects/ecn/testresults.html.

Work sponsored by the Google Summer of Code project 2006.
Special thanks to Kentaro Kurahone, Allen Briggs and Matt Thomas for their
help, comments and support during the project.
2006-09-05 00:29:35 +00:00
liamjfoy
36661dd3cb Update for carp(4). Bump date.
from openbsd
2006-09-04 23:16:22 +00:00
christos
72c3baadfe Remove ad clause. Approved by board@ 2006-08-28 20:42:12 +00:00
rpaulo
13a593e7c8 We support the POSIX Clock Selection Option. 2006-08-14 18:14:19 +00:00
christos
cbfb283c65 - Add strndup and stresep
- Use stresep so in fstab so that we can mount paths with white space in them.
2006-08-12 23:49:53 +00:00
christos
ce0ef6cfc4 Pretending to be Elad's keyboard:
fileassoc.diff adds a fileassoc_table_run() routine that allows you to
pass a callback to be called with every entry on a given mount.

veriexec.diff adds some raw device access policies: if raw disk is
opened at strict level 1, all fingerprints on this disk will be
invalidated as a safety measure. level 2 will not allow opening disk
for raw writing if we monitor it, and prevent raw writes to memory.
level 3 will not allow opening any disk for raw writing.

both update all relevant documentation.

veriexec concept is okay blymn@.
2006-08-11 19:17:47 +00:00
tron
f7f8c72cc7 Remove leftover debugging message. Problem pointed out by Kurt Schreiner
on "current-users" mailing list.
2006-08-03 17:38:26 +00:00
wiz
ae2c80bc90 Typo fix. 2006-07-30 00:21:26 +00:00
dogcow
fe9e9e8f3a back out last change as it is actually a visible function. 2006-07-27 20:54:42 +00:00
dogcow
98bf56ed78 define _ng_cycle to be static, so gcc won't whing about its implicit decl. 2006-07-27 19:44:06 +00:00
christos
b30e946f1c move include of StringList.h before netgroup.h 2006-07-27 18:12:50 +00:00
christos
9f1d175c27 add an _ng_cycle function to print the list of netgroups that are are dups. 2006-07-27 16:06:40 +00:00
christos
6826db0f05 Add sl_delete, KNF, ansi 2006-07-27 15:36:29 +00:00
wiz
ac9fed958d Remove superfluous word, add comma to make it easier to parse. 2006-07-24 21:48:13 +00:00
elad
5e3617ba81 blymn made ips mode prevent execution of non-monitored files; document
that.
2006-07-24 21:44:52 +00:00
elad
51f96c232c ugh.. forgot to document no removal in ids mode. 2006-07-24 21:43:46 +00:00
elad
a5307a7c24 "verified exec" -> "veriexec" + some minor tweaks. 2006-07-22 10:47:53 +00:00
wiz
6dd1c5d067 Punctuation nits. 2006-07-14 22:04:42 +00:00
elad
1c8d298b89 move security.setid_core.* to kern.coredump.setid.*, as requested by yamt@. 2006-07-14 21:55:19 +00:00
elad
b5d09ef065 okay, since there was no way to divide this to two commits, here it goes..
introduce fileassoc(9), a kernel interface for associating meta-data with
files using in-kernel memory. this is very similar to what we had in
veriexec till now, only abstracted so it can be used more easily by more
consumers.

this also prompted the redesign of the interface, making it work on vnodes
and mounts and not directly on devices and inodes. internally, we still
use file-id but that's gonna change soon... the interface will remain
consistent.

as a result, veriexec went under some heavy changes to conform to the new
interface. since we no longer use device numbers to identify file-systems,
the veriexec sysctl stuff changed too: kern.veriexec.count.dev_N is now
kern.veriexec.tableN.* where 'N' is NOT the device number but rather a
way to distinguish several mounts.

also worth noting is the plugging of unmount/delete operations
wrt/fileassoc and veriexec.

tons of input from yamt@, wrstuden@, martin@, and christos@.
2006-07-14 18:41:40 +00:00
jnemeth
787fd08293 KNF 2006-07-04 03:53:54 +00:00
drochner
51086becae move manpages for frexp/ldexp/modf to libm -- the (most) implementation is
already there
2006-07-03 16:03:56 +00:00
drochner
3379c1c805 replaced by code in libc/compat/gen 2006-07-03 13:20:19 +00:00
ginsbach
f5439cd0a6 Fix YP lookup latency reported by Stephen M. Jones on tech-net. This is a
performance regression between 2.0 and 3.0.  The passwd compat method was
incorrectly querying the NIS server with yp_first()/yp_next() rather than
using yp_match() with the correct key.
2006-06-29 21:16:04 +00:00
drochner
0048377426 First step to clean up the variety of frexp(), ldexp() and modf()
implementations.
Long term goal is to use the implementation in libm and get rid of
the libc instances. For now, we need to keep one in libc for compatibility,
it belongs into the compat subtree.
The switch is per-arch. Should be painless for ieee754 boxes.
If all ieee754 archs are switched, libc/gen/{frexp,ldexp,modf}_ieee754.c
can be removed.
2006-06-27 18:16:47 +00:00
simonb
a4052de411 Use PRId64 instead of a cast to long long and %lld to print an int64_t. 2006-06-08 21:08:56 +00:00
jnemeth
d7635ff0b0 missed check for malloc() returning NULL 2006-05-29 21:55:41 +00:00
christos
ca130c6a90 Explicitly mention that telldir values are only valid for the lifetime of
the DIR pointer. Pointed out by Klaus Klein.
2006-05-18 15:30:36 +00:00
christos
cfd3aebca4 PR/24324: Arne H Juul: Re-implement seekdir/telldir using a pointer of
locations per directory instead of a global hash table to avoid memory
leak issues, and incorrect results.
2006-05-17 20:36:50 +00:00
elad
04d63f90b5 Introduce PaX MPROTECT -- mprotect(2) restrictions used to strengthen
W^X mappings.

Disabled by default.

First proposed in:

	http://mail-index.netbsd.org/tech-security/2005/12/18/0000.html

More information in:

	http://pax.grsecurity.net/docs/mprotect.txt

Read relevant parts of options(4) and sysctl(3) before using!

Lots of thanks to the PaX author and Matt Thomas.
2006-05-16 00:08:24 +00:00
wiz
7cde219c2b Bump date for previous, uppercase I/O, serial comma, remove trailing space. 2006-04-26 20:41:30 +00:00
blymn
434398553a Change DISKSTATS to IOSTATS, document new i/o stats sysctl. 2006-04-25 11:56:25 +00:00
jld
8293fbeb02 \*[Am] for an ampersand, not *[Am]. 2006-04-24 20:27:34 +00:00
wiz
abc202e87e No abbreviations in Dd arguments. 2006-04-23 16:46:32 +00:00
salo
11124f2a30 Add setttyentpath() information to RETURN VALUES and HISTORY, too. 2006-04-18 09:38:12 +00:00
salo
2118fde310 Add setttyentpath(), functionally equivalent to setttyent() but takes an
additional argument to read the ttys information from an alternate path
istead of _PATH_TTYS.

Required for upcoming init(8) changes.

Mostly from <apb>.

Bump libc minor.
2006-04-17 23:29:21 +00:00
jschauma
2871f9db99 document that VIS_CSTYLE encodes space (SP 040) as '\s'. 2006-04-09 15:24:34 +00:00
christos
e9427c25f6 Add coverity annotations. 2006-04-02 03:26:03 +00:00
christos
8d5214b18a PR/33163: Auster Vl.: fts: cant allocate memory | filename too long
Change the ftp_pathlen and fts_namelen to u_int from u_short so that
pathnames > 32K work.
2006-03-30 01:23:50 +00:00
christos
3b6811d33b PR/33123: Murray Armfield: standards compliance & glob.h
Certain fields in glob.h need to be size_t; fix this and version glob(3).
    http://www.opengroup.org/onlinepubs/000095399/basedefs/glob.h.html
2006-03-26 18:11:22 +00:00
wiz
14bdd15e54 Bump date for previous. 2006-03-23 19:43:58 +00:00
christos
f70970fc40 Coverity CID 1640: closedir on error. 2006-03-22 00:05:01 +00:00
drochner
00c2a788f7 mention single precision versions and advise to link against libm 2006-03-21 18:33:00 +00:00
he
5c598dee82 Now that we use an errno constant, we need <errno.h>. 2006-03-20 09:27:30 +00:00
rtr
5cefc5aa01 check the return of alloca() if it fails set errno = ENOMEM and fail execl().
approved by christos@
resolves pr29671
2006-03-20 05:12:24 +00:00
christos
8a8a2fc7a2 iCoverity CID 706: Remove dead code. 2006-03-19 03:08:11 +00:00
christos
28929e2bc3 Coverity CID 708: Remove dead code. 2006-03-19 03:05:57 +00:00
christos
58a505fcfe Coverity CID 561: Remove dead code. 2006-03-19 02:33:02 +00:00
christos
dfd5a33604 Coveriry CID 509: Avoid NULL pointer deref. 2006-03-19 02:25:12 +00:00
christos
a0357ac2d2 Coverity CID 512: Fix memory leak. 2006-03-19 02:17:16 +00:00
christos
10a8cb0e88 Coverity CID 510: Avoid uninitialized variable. 2006-03-19 02:12:09 +00:00
christos
456b09ff6f Coverity CID 17: Free parent if it was not used. 2006-03-19 02:01:50 +00:00
christos
6beb2a5c7e Coverity 2278: Avoid leak on allocation failure. 2006-03-19 01:41:43 +00:00
christos
14ebd4f381 Appease Coverity CID 2527; not a bug. 2006-03-17 17:17:00 +00:00
wiz
db6c428e48 Bump date for previous. 2006-02-24 22:05:09 +00:00
drochner
39222faf50 complete constification of the sysctl() user side 2006-02-24 19:33:09 +00:00
drochner
9c09926156 scale denormal numbers, to get a meaningful exponent (and a mantissa
which just consists of the implicit bit),
fixes PR lib/32861 by FX Coudert
(the bug was seen in gfortran stress tests)
(we should use the code in fdlibm as we do for frexpf())
2006-02-21 16:30:56 +00:00
christos
2249b62177 Add 3 new error strings. 2006-02-20 17:33:47 +00:00
wiz
e544bcfb3f Fix .St argument. 2006-02-07 19:02:29 +00:00
wiz
f618c5fcee .Fn needs an argument. 2006-02-07 18:59:56 +00:00
wiz
1fc051f36f Serial comma; bump date for previous. 2006-02-04 18:47:31 +00:00
elad
e25c3ef7af document knobs for security.setid_core.
while i'm here... catch up with reality: no more SECURITY_CURTAIN;
now we have security.curtain. (no constant)
2006-02-02 19:56:32 +00:00
rillig
cd9c32de8b .St -ansiC doesn't know about isascii(). 2006-01-26 11:13:49 +00:00
rillig
3f2facbd7d s/macro/function/g 2006-01-26 00:21:05 +00:00
rillig
e77cd9f3f8 The VIS_HTTPSTYLE does not use $ for encoding special characters, but %. 2006-01-25 23:48:58 +00:00
christos
b72acd5139 rename __func to _func_unlocked, and add their prototypes in extern.h
instead of exposing them in dirent.h. More locking consistency fixes.
2006-01-24 19:33:10 +00:00
christos
83e4df350a Use a separate macro, not DEBUG to enforce 8 bit chars [glob uses internally
16 bit chars]. Fix lint complaint when compiling with 8 bit chars.
2006-01-24 17:24:09 +00:00
christos
28463c62e1 PR/32609: Tanaka Akira: seekdir blocks if pthread is linked
Do locking consistently to avoid recursive locks (like the bug reported in
this pr), and to avoid leaking locks on errors.
2006-01-24 14:00:57 +00:00
wiz
3b03818912 Replace statfs(2) with statvfs(2). 2006-01-14 15:40:49 +00:00
elad
ef8e209a99 sync & sort kern. 2006-01-14 15:36:38 +00:00
elad
aa14ddaccd sort vm. 2006-01-14 11:18:45 +00:00
elad
455a40402f sync & sort hw. 2006-01-14 11:14:00 +00:00
elad
742866cafe Sync net.{inet,inet6}. 2006-01-13 21:09:55 +00:00
wiz
04e2e74b7a Use In, improve macro usage, serial comma. 2006-01-12 20:54:08 +00:00
rpaulo
b583fcc049 #include <stdio.h> in the example. 2006-01-05 19:45:29 +00:00
elad
e77db80a44 Revert back to revision 1.40, as requested by cube@.
Unbreaks KDE.
2005-12-31 12:32:30 +00:00
agc
740a95c15f Add Todd Miller's ftw(3) and nftw(3) file-tree walking functionality,
from OpenBSD.

Bump libc minor to 136.
2005-12-30 23:07:31 +00:00
perry
fd18408b9a u_intN_t -> uintN_t 2005-12-26 19:40:14 +00:00
perry
4e11af46bc Remove leading __ from __(const|inline|signed|volatile) -- it is obsolete. 2005-12-24 21:11:15 +00:00
elad
0c73d40610 Allow last component to be non-existing again. I broke this behavior for
no apparent good reason in revision 1.39.

This is what broke systrace's filename normalization.

Go back to original behavior as in revision 1.35: return resolved name,
but also set errno to ENOENT.
2005-12-22 23:29:23 +00:00
christos
e5548b402a Use reach-over sources from common/lib/libc 2005-12-20 19:31:47 +00:00
christos
b53fea69d0 Restore the compatibility versions of fts not to do path mangling (i.e.
remove double slashes). Also make sure we free sp in all cases. From yamt,
many thanks!
2005-12-11 04:12:58 +00:00
wiz
db45f13c8a Bump date for previous. Remove trailing whitespace. 2005-12-01 18:08:10 +00:00
elad
310e19f394 Change the entry from "foobar" to "not applicable" in the "Changeable"
field of kern.veriexec.count.. no idea how that went unnoticed. :)
2005-12-01 14:45:31 +00:00
christos
c341912e62 cleanup casts and KNF. 2005-11-29 13:30:49 +00:00
christos
03256c6e55 WARNS=4 2005-11-29 03:11:58 +00:00
christos
369645b798 ANSI prototypes and function declarations. No functional change. 2005-11-18 16:48:48 +00:00
martin
428522929f Make the MAKEEXTRALIST macro safe to be called with string literals as
third argument - the old version relies on the compiler to use the same
address for identical strings.

Spotted by segv at netctl dot net in libnbcompat context, details
in PR pkg/32097.
2005-11-18 08:32:46 +00:00
christos
a109c1ee32 1. minimize code diffs with FreeBSD
2. return ENAMETOOLONG instead of ENOMEM if name is too long to fit.
3. only decrement cp if we are pointing to the end of the string.
   [this fixes the cp truncation of the last char problem reported]
2005-11-17 19:13:20 +00:00
christos
fd85feb124 Fix the code example. 2005-11-10 17:23:26 +00:00
christos
2ce4c16c0d Instead of special-casing root, special case paths that end with a /, so
that find foo/ does not print foo//bar. From FreeBSD.
2005-10-22 20:55:13 +00:00
christos
641784aa2a Don't hide the error from sysctl. From Liam Foy. 2005-10-14 23:53:41 +00:00
simonb
9e2441db78 Add a full-stop to the end of a sentence. 2005-10-06 13:45:12 +00:00
wiz
77a08e3909 Fix typo. Add some commas. Improve markup. 2005-10-06 11:17:11 +00:00
elad
8358410265 Document security level for sysctl and security.curtain.
Hi Hubert! :)
2005-10-03 22:22:10 +00:00
wiz
5219255abf getfsent(3) does not contain any information about the (nonexisting)
function getfstype(), so don't MLINK it. Remove getfstype from other
places that reference it too.

Noted by jmc@openbsd.
2005-10-03 14:56:32 +00:00
christos
fbd01002b3 Make sure that setmode sets errno on failure (it used to return a random
errno) and document it.
2005-10-01 20:08:01 +00:00
wiz
72a37764e0 Punctuation nits; grammar fix. 2005-09-26 10:54:46 +00:00
christos
1c208b995b ttyname_r returns int. 2005-09-25 20:43:54 +00:00
christos
cc85a7cfd9 add getenv_r and ttyname_r 2005-09-25 20:08:01 +00:00
rpaulo
6f844bf524 Document kern.hardclock_ticks. Pointed out by Hubert. 2005-09-24 12:05:45 +00:00
elad
6ed9366c27 Don't overflow when DEBUG is defined.
PR/30833, from Tomas Skare.
2005-09-13 21:38:03 +00:00
christos
95a8d0876b don't use the weak names directly, so that the compat code works. 2005-09-13 13:51:50 +00:00
christos
5b84b3983f compat core reorg. 2005-09-13 01:44:08 +00:00
christos
3303764533 64 bit inode changes 2005-08-19 02:04:54 +00:00
elad
ccdc56641c Make this compile again (remove unused serrno).
Noted by uwe@.
2005-08-13 21:16:58 +00:00
elad
314b003dee Don't allow last path element to be nonexistant. 2005-08-13 19:53:53 +00:00
christos
86741d79ab - Fix the remaining indr_references so that they define lint symbols.
- Add an internal symbol for strerror_r (thanks klaus for noticing)
- Remove internal __strerror
2005-07-30 15:21:20 +00:00
christos
e7adb37afc PR/30832: Tomas Skäre: Freed memory used in lib/libc/getnetgrent.c
While there, KNF and ansify.
2005-07-25 14:38:48 +00:00
rpaulo
25a6efd600 Fix another sigignore -> sigset typo.
ok klenik@, hubertf@
2005-07-24 21:58:32 +00:00
isaki
e70e55fa02 Correct a typo. 2005-07-17 05:06:57 +00:00
christos
c13c780daf Ignore indirect references when linting.
XXX: All this is done backwards, and is a mess. Really the _foo.c files should
include the _foo function definition, not the foo.c files, like everywhere
else.
2005-07-16 18:01:38 +00:00
christos
47bfe475f7 Add missing _. 2005-07-16 18:00:40 +00:00
enami
8bf4305eee Fixes to previous:
- Don't handle single and multiple slashes differently.
- A symlink to a directory can be appear in the middle of path.  Don't
  reject it.
2005-07-05 02:56:12 +00:00
elad
0b9ed39b26 Make realpath(3) work correctly.
The current code resolves paths like `/foo/bar/', `/foo/bar/./', and
`/foo/bar/../', even if `bar' is a regular file and not a directory.

Reviewed by cube@.
2005-07-04 20:44:47 +00:00
he
0ec45ddeab Fix the toolification of disklabel by using the nbinclude namespace
under HAVE_NBTOOL_CONFIG_H for disktab.h as well.  This means
disktab.h has to be installed in the nbinclude include directory.

(Failure mode: with TOOLDIR as a subdirectory of /usr, the host's disktab.h
got picked up, and not the in-tree copy.)

Reviewed by dyoung.
2005-06-22 21:35:28 +00:00
elad
0e4dfe1792 - Use more calls to veriexec_report() where possible.
- Change #ifdef VERIFIED_EXEC_VERBOSE to another verbose level, 2. Add
  sysctl(3) bits.

- Simplify access type conflict handling during load. This depends on
  the values of access type defines to be ordered from least to most
  'strict'.
2005-06-20 15:06:18 +00:00
wiz
f076596bae New sentence, new line. 2005-06-17 18:19:39 +00:00
peter
9231683ec7 Fix some spelling errors.
From Igor Sobrado in PR/29997.
2005-06-17 18:08:00 +00:00
elad
ad7b01f7d0 More veriexec changes:
- Better organize strict level. Now we have 4 levels:
  - Level 0, learning mode: Warnings only about anything that might've
      resulted in 'access denied' or similar in a higher strict level.

  - Level 1, IDS mode:
    - Deny access on fingerprint mismatch.
    - Deny modification of veriexec tables.

  - Level 2, IPS mode:
    - All implications of strict level 1.
    - Deny write access to monitored files.
    - Prevent removal of monitored files.
    - Enforce access type - 'direct', 'indirect', or 'file'.

  - Level 3, lockdown mode:
    - All implications of strict level 2.
    - Prevent creation of new files.
    - Deny access to non-monitored files.

- Update sysctl(3) man-page with above. (date bumped too :)

- Remove FINGERPRINT_INDIRECT from possible fp_status values; it's no
  longer needed.

- Simplify veriexec_removechk() in light of new strict level policies.

- Eliminate use of 'securelevel'; veriexec now behaves according to
  its strict level only.
2005-06-17 17:46:18 +00:00
enami
cdc60944c2 Changes done in rev. 1.21 of getcap.3 (former name of this file) is
not correct since, as far as reading the source, it is impossible for
cgetset() to set such errno.  I guess `seq' is not a typo of `set' but
abbreviation of `sequen...'.
2005-06-17 02:10:45 +00:00
dyoung
a37289db57 Make disklabel(8) and fdisk(8) into "host tools " last step: build
and install ${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-disklabel,
${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-fdisk by "reaching over" to
the sources in ${NETBSDSRCDIR}/sbin/{disklabel fdisk}/.

To avoid clashes with a build-host's header files, especially on
*BSD, the host-tools versions of fdisk and disklabel search for
#includes such as disklabel.h, disklabel_acorn.h, disklabel_gpt.h,
and bootinfo.h in a new #includes namespace, nbinclude/.  That is,
they #include <nbinclude/sys/disklabel.h>, <nbinclude/machine/disklabel.h>,
<nbinclude/sparc64/disklabel.h>, instead of <sys/disklabel.h> and
such.  I have also updated the system headers to #include from
nbinclude/-space when HAVE_NBTOOL_CONFIG_H is #defined.
2005-06-12 19:46:15 +00:00