Commit Graph

4182 Commits

Author SHA1 Message Date
dsl
c2452a4af0 There really isn't any point reporting all the alternate superblocks,
big filesystems can have thousands of them - no one ever writes them down.
After the first line of numbers just output a '.' for each cylinder group.
Also limit the lines to 79 columns so broken terminal emulaters don't
double-space the output lines.
2006-01-09 20:59:25 +00:00
elad
9eed84a6ae Allow multiple lines entries using '\' at the end of the line.
Simplified by martin@, thanks. :)
2006-01-05 20:16:20 +00:00
hubertf
3e91637cdf The -b option is really on fsck_ffs, not fsck
Pointed out by Sebastian Schuetz on IRCnet #NetBSD
2006-01-05 11:22:47 +00:00
mjl
0a7b52fa50 Typo fix (to umount is not yet a verb). Via OpenBSD bugs mailing list. 2005-12-30 10:29:56 +00:00
tsutsui
1f5055228d Add preliminary support for System V Boot File System.
Written by UCHIYAMA Yasushi <uch@netbsd>.
2005-12-29 14:53:45 +00:00
christos
5de69f0012 fix compilation on LP64 machines. 2005-12-28 06:03:15 +00:00
reinoud
d1e514c58e Fix obvious typo in the man page of mount_cd9660:
-The behaviour is cotrollable by the
+The behaviour is controllable by the
2005-12-27 17:40:49 +00:00
jmmv
fbb8b4076f Add an option (-s) to specify which sector to read to parse the partition
table.  Useful if the disk has remapping drivers installed into it (such as
Ontrack Disk Manager).

Added as an option instead of automatic behavior to let the user scan any
of the two partition tables at will.
2005-12-27 15:37:56 +00:00
hubertf
cfc5c5528b Xref newfs_msdos, noted by rabioli on Freenode #NetBSD 2005-12-27 14:49:28 +00:00
yamt
6171bf3a5b add a functionality to get/switch bufq strategy.
based on a patch from Juan RP.
2005-12-26 10:38:52 +00:00
perry
0f0296d88a Remove leading __ from __(const|inline|signed|volatile) -- it is obsolete. 2005-12-24 20:45:08 +00:00
jmmv
ff68701afc Point to the share/examples/fstab/fstab.ramdisk file for some more information. 2005-12-24 13:02:53 +00:00
yamt
0616e4b566 linkup: reparent() only when lost+found is created successfully. 2005-12-23 12:58:11 +00:00
yamt
a71fb9d9ab add vm.inactivepct. 2005-12-21 12:21:06 +00:00
jmc
06b42f5e66 Redo previous rework to generate yacc/lex output again and remove generated
copies from the import as they don't compile clean across all archs.
2005-12-16 16:25:07 +00:00
jmc
32415dbb57 Don't yacc/lex here as dist includes generated copies already and depending
on timestamps it's possible for gcc2 on vax to get confused on which .h
to use.
2005-12-15 14:27:21 +00:00
dsl
24c43e28bb Use PRIu64 to print ino_t (maybe there should be a PRIino_t somewhere....) 2005-12-13 10:56:16 +00:00
yamt
a83111c7d8 add vm.idlezero. noted by Hubert Feyrer. 2005-12-13 10:07:21 +00:00
wiz
fe79b0c9bd Grammar improvement. 2005-12-12 22:29:37 +00:00
elad
a9505be892 Add and document a "query" keyword to veriexecctl. Usage:
/sbin/veriexecctl query /path/to/file

will print out filename, device, inode, evaluation status, entry flags,
fingerprint, and fingerprinting algorithm.
2005-12-12 21:47:58 +00:00
elad
f39afe3e47 Add and document a VERIEXEC_DELETE operation for Veriexec.
We can now delete an entry from the tables using

	veriexecctl delete /path/to/file

or remove an entire table using

	veriexecctl delete /mount_point

(any directory will work for the mount point it's on)
2005-12-10 02:10:00 +00:00
jmc
fa63539af8 Fix acorn builds 2005-12-07 04:38:32 +00:00
skrll
fa922b7d20 Remove lmcctl. 2005-12-06 09:39:50 +00:00
christos
38c03eb895 lmcctl has been superceded by lmcconfig. 2005-12-06 03:17:24 +00:00
christos
9fe740f63c ndb is daddr_t which is 64 bits, by truncating it to j which is an int, it
can get negative causing segmentation faults. Check against this.
2005-12-05 23:59:43 +00:00
dbj
5a25538485 fix byteswap of log revision structure check, improve error printout 2005-11-29 08:47:22 +00:00
dbj
1aeda8c1bc add newline termination on error message 2005-11-29 08:06:13 +00:00
dsl
3a2bad7a99 Include the size we are trying to create in the 'partition to small'
error message.
2005-11-28 22:35:06 +00:00
yamt
f00c1d8ace bump date for the previous. 2005-11-27 13:12:32 +00:00
yamt
0ae701e533 add ddb.commandonenter. 2005-11-27 13:12:03 +00:00
elad
03e754fd4d The securelevel does not affect whether Veriexec's tables can be modified;
this is now controlled by Veriexec's strict level.
2005-11-13 18:39:53 +00:00
dsl
c23511b386 Add a missing break!
Maybe 'mount_nfs -oport=<port>' has been broken since the IPv6 changes.
2005-11-12 20:30:21 +00:00
chs
3ea0c57c60 don't set fs_maxsymlinklen and fs_old_inodefmt twice,
we set them correctly the first time.  fixes PR 26995.
2005-11-05 19:15:54 +00:00
dsl
409a3e040d Fix alpha build - pointed out by Kurt Schreiner on port-alpha 2005-10-20 20:08:33 +00:00
dsl
65151c95f1 Rototil the way disklabel -r reads and writes labels.
In particular the 'read' part plays 'hunt the disklabel' in order to get a
label into a local buffer - from where it can be displayed/edited.
The 'write' part makes a separate scan of the disk looking for places to
write the label.
The main changes are:
- It can no longer write the first 8k of the mbr to the pbr (or v.v.)
- All labels on the disk (that it can find) get updated during a write
- With -A all the labels are displayed (inc. those deleted by -D)
- Addition of -D which will delete (by one's complimenting dk_magic{2}) and
  existing labels before writing labels to the expected locations.
- -v gives some verbose output to stderr, -vv more etc
A better basis for processing incorrect endian labels, or labels from other
architectures.
2005-10-19 21:22:21 +00:00
xtraeme
eda099ea39 Mention "kern.bufq.strategies", bump date. 2005-10-15 23:05:45 +00:00
jmc
49c83b8ea2 Put back removed initializer. gcc on sh3 still doesn't get it correct... 2005-10-13 21:14:45 +00:00
chs
6c50e54c82 avoid the need for a bogus initializer. 2005-10-08 03:21:17 +00:00
uwe
39ab40b2aa PRI* macros should not contain percent sign.
While here, conditionalise use of "lld" for PRId64 on HAVE_LONG_LONG.
2005-10-07 23:57:10 +00:00
dogcow
7babc7145c Fix cross-compilation on FreeBSD 4.x (and other OSes) where PRId64 isn't
defined.
2005-10-07 01:04:08 +00:00
wiz
1638f02bd8 Add missing comma. 2005-10-06 11:17:38 +00:00
wiz
42c5a0b8fd Make sentence more readable. 2005-10-05 13:58:49 +00:00
elad
8fc0d7a9c3 Introduce per-page fingerprints in Veriexec.
This closes a hole pointed out by Thor Lancelot Simon on tech-kern ~3
years ago.

The problem was with running binaries from remote storage, where our
kernel (and Veriexec) has no control over any changes to files.

An attacker could, after the fingerprint has been verified and
program loaded to memory, inject malicious code into the backing
store on the remote storage, followed by a forced flush, causing
a page-in of the malicious data from backing store, bypassing
integrity checks.

Initial implementation by Brett Lymn.
2005-10-05 13:48:48 +00:00
elad
8358410265 Document security level for sysctl and security.curtain.
Hi Hubert! :)
2005-10-03 22:22:10 +00:00
wiz
c60cfece75 Bump date for previous. 2005-10-03 19:17:49 +00:00
christos
c05266af8a fix setmode error handling. 2005-10-01 20:23:54 +00:00
atatat
fca6393ad4 Add "cwd" and "root" symlinks to each process's directory. The cwd
link points to the process's current working directory, and the root
link points to the process's root directory.  What else would you
expect?

For directories that are out of reach (caller is in a chroot, target
process is in a different chroot, etc), the links point to "/"
instead.
2005-10-01 03:17:37 +00:00
rpaulo
e24e702bdb .An -nosplit 2005-09-30 20:18:12 +00:00
jmmv
ea3755726f Do not use stdbool.h; it breaks the build on ports using gcc 2.x (such as
vax).  Ew.  Pointed out by he@.
2005-09-30 14:25:07 +00:00
jmmv
34afcb6a5d Add an EXAMPLES section. Requested by martti@ to clarify the purpose of
the field before the mount point.
2005-09-29 20:54:23 +00:00