summaryrefslogtreecommitdiff
path: root/sbin/mount_vnd
AgeCommit message (Collapse)Author
2019-06-28When system calls indicate an error they return -1, not some arbitraryTheo de Raadt
value < 0. errno is only updated in this case. Change all (most?) callers of syscalls to follow this better, and let's see if this strictness helps us in the future.
2019-04-25Remove vnconfig functionality, and try to adapt the manual page.Theo de Raadt
I'm considering simply deleting mount_vnd -- are there any users of this bizzare feature?
2019-04-25install new vnconfigTheo de Raadt
2017-07-09remove redundant variable declarations in Makefiles, since those areMarc Espie
the default. okay millert@
2016-03-30for some time now mandoc has not required MLINKS to functionJason McIntyre
correctly - logically complete that now by removing MLINKS from base; authors need only to ensure there is an entry in NAME for any function/ util being added. MLINKS will still work, and remain for perl to ease upgrades; ok nicm (curses) bcook (ssl) ok schwarze, who provided a lot of feedback and assistance ok tb natano jung
2016-01-24fix 1.18 by removing extra argument from explicit_bzero callsmmcc
from kili@
2016-01-24Immediately zero the stack-allocated buffers for the passphrase and salt rathermmcc
than doing so conditionally later on. These were false positives during an explicit_bzero audit. ok gsoares@
2016-01-24use explicit_bzero(3) for clearing sensitive dataGleydson Soares
OK millert@ mmcc@
2015-01-16Replace <sys/param.h> with <limits.h> and other less dirty headers whereTheo de Raadt
possible. Annotate <sys/param.h> lines with their current reasons. Switch to PATH_MAX, NGROUPS_MAX, HOST_NAME_MAX+1, LOGIN_NAME_MAX, etc. Change MIN() and MAX() to local definitions of MINIMUM() and MAXIMUM() where sensible to avoid pulling in the pollution. These are the files confirmed through binary verification. ok guenther, millert, doug (helped with the verification protocol)
2014-10-29dial down the direness of the warning; vnd isn't going anywhere yetTed Unangst
2014-05-30warnings warnings everywhereTed Unangst
2014-05-30WARNING: Encrypted vnd is insecure.Ted Unangst
Migrate your data to softraid before 5.7.
2013-11-11unused variableTheo de Raadt
2013-04-23simple repair for large ino_tTheo de Raadt
2012-09-06move pkcs5_pbkdf5 function to libutil so everybody can play with itTed Unangst
ok deraadt jsing matthew
2011-07-04No point in documenting "Encryption only works with vnd".Matthew Dempsky
2011-04-18Deprecate vnds in favour of svnds.Thordur I. Bjornsson
In effect, this removes the "old" vndX nodes, and renames the svndX nodes to vndX. Old svndX nodes will still continue to work though, for now. Cleanup accordingly. ok deraadt@, todd@ comments and ok on the man page bits from jmc@
2011-01-29no need for fopen, when opendev gives us a perfectly good fd.Ted Unangst
from "maurice"
2010-12-18remove david as author. he is not to blame for the current C implementation.Ted Unangst
ok david
2010-04-15there is in fact no default salt file nameTed Unangst
2010-04-12remove pkcs5 implementation here and use the one from bioctl. no libcryptoTed Unangst
dependency. and some other tweaks. from mikeb. ok djm
2009-02-15should fsck the raw device; spotted by frantisek holop and mentioned onTheo de Raadt
the mailing lists two weeks ago, and completely ignored I guess.
2008-09-03Replace -s (sector size) option with more general -t (disktype)Kenneth R Westerback
option which makes the vnd device emulate the geometry of the specified disktab(5) entry. No change in behaviour or geometry unless -t is used. API for vnd configuration ioctl (VNDIOCSET) changes, so mount_vnd must be in sync with kernel. Tested & ok jsing@ 'Lovely' deraadt@
2008-08-15Add -s option to usage().Joel Sing
Prompted by jmc@ ok jmc@
2008-08-14Allow the sector size to be specified by the user when configuring aJoel Sing
vnd(4) device, via a new -s option to vnconfig/mount_vnd. This allows us to create disklabels and file systems that are suitable for use on devices that have a non-512 byte sector size (eg. CDROMs). With help from krw@ and feedback from pedro@. ok krw@, pedro@
2008-06-26First pass at removing clauses 3 and 4 from NetBSD licenses.Ray Lai
Not sure what's more surprising: how long it took for NetBSD to catch up to the rest of the BSDs (including UCB), or the amount of code that NetBSD has claimed for itself without attributing to the actual authors. OK deraadt@
2008-06-14finish djm@'s job of making mount_vnd -Wall clean, and mark this in theAlexander von Gernler
Makefile. ok djm@, "get the M's out of my tree" deraadt@
2008-06-13-Wall friendly (missing "static", signed vs. unsigned comparison)Damien Miller
2008-05-26no need for such a wordy .Nd; ok grunkJason McIntyre
2008-05-26- put CAVEATS in the right placeJason McIntyre
- filesystem -> file system, for consistency; from Pierre Riteau
2008-05-26fix example in manpage, spotted by Jacek MasiulaniecAlexander von Gernler
While there, stress the idea that users should always have a disklabel inside their vnd images, so they can fsck their filesystems properly input from otto@, corrections by jmc@, "looks better" deraadt@
2008-05-03remove unused functionsCharles Longeau
from tobias@ ok ray@ tobias@
2007-09-29default to svnds now to accomodate change in the vnd driver.Felix Kronlage
from Piotr Durlej with man-page nits from me tested henning@, krw@, thib@ and myself. ok thib@, grunk@, krw@
2007-09-11rearrange the mount_vnd examples to show the equivalent entry for eachAlexandre Anriot
vnconfig example, instead of having a bunch of different examples. discussed with and ok jmc@ grunk@
2007-09-05remove compat link to /usr/sbin/vnconfig, the program is in /sbin for oneAlexander von Gernler
release now. ok deraadt@ todd@
2007-09-02use calloc() to avoid malloc(n * m) overflows; checked by djm canacar jsgTheo de Raadt
2007-06-01since real boottime vnd support would have caused many problems,Alexander von Gernler
do a poor man's (but yet working) solution and provide the user with instructions to enhance fstab(5) and rc.local(8) with own boot time support. tweaks and ok jmc@
2007-05-31convert to new .Dd format;Jason McIntyre
2007-05-27Simplify symlink creation. ok grunkAlexander Bluhm
2007-05-27sync usage(); ok grunkJason McIntyre
2007-05-27sync argument names; ok grunkJason McIntyre
2007-05-27Prevent buf[-1] access if strlen(buf) == 0.Ray Lai
Simplify some if-else statements while here. OK grunk@ and tedu@.
2007-05-26tweaks;Jason McIntyre
2007-05-26link mount_vnd to the build, and remove usr.sbin/vnconfig, which is nowAlexander von Gernler
completely contained at the new place. provide a legacy link to /usr/sbin to go away after next release. ok deraadt@
2007-05-26improve the EXAMPLES for fstab entries of mount_vnd(8):Alexander von Gernler
- reduce the number of used svnd devs to the default number of an OpenBSD System - make it more obvious that vnd's w/ different levels or no encryption can be specified. diff from Okan Demirmen, thanks
2007-05-26make mount_vnd a C program by pulling in the vnconfig(8) source and addingAlexander von Gernler
a mount_vnd(8) interface to it. merge manpages as well. next goal is to have this here completely replace the usr.sbin/vnconfig directory. prodded by many, manpage discussion and help jmc@, "go ahead" deraadt@
2007-05-02clarify error message; ok grunk@David Krause
2007-04-14oops, sort options;Jason McIntyre
2007-04-14introduce {fsck,mount}_vnd tools to be able to describe vnd imagesAlexander von Gernler
in /etc/fstab instead of using some weird homegrown scripts. No support for boot time mounting yet, so "noauto" is still needed. original idea from david@ help and discussion todd@ bluhm@ beck@, manpage help jmc@ ok simon@ tedu@ bluhm@ todd@, "looks good" thib@