summaryrefslogtreecommitdiff
path: root/sbin
AgeCommit message (Collapse)Author
2015-10-18after kmem is open and setup, pledge "stdio rpath wpath cpath"Theo de Raadt
seems to be working. commiting to get feedback from people who crash.
2015-10-18Collapse some strange programmer style with too much abstraction.Theo de Raadt
2015-10-18Use explicit_bzero() when the memory is freed directly afterward.mmcc
ok deraadt@
2015-10-17make usage() less horribleFlorian Obser
2015-10-17NUMBOOT is dead! Nuke the variables and abstractions that were usedKenneth R Westerback
to build boot blocks. ok miod@
2015-10-17Implement -w maxwait now that the -w flag is free in ping6. SameFlorian Obser
behaviour as ping(8).
2015-10-17move -V option before -v and remove one spurious newline, now in syncFlorian Obser
with ping. No object change.
2015-10-17Remove left over -N and -w. Adapt wording for the link local example.Florian Obser
Pointed out by, input & OK jmc
2015-10-16Remove RFC 4620 support. The RFC is experimental and this code plainFlorian Obser
needs killing before the installed user base excedes 6. Minus 745 LOC. This is getting in the way of a merge since it has it's tentacles all over the place. OK jca@, deraadt@
2015-10-16No longer talk about -b flag, it's gone.Florian Obser
2015-10-16Move -t and -w functionality to -a. Both flags are in the way for aFlorian Obser
merge with ping(8). Let's see if we can shove every weird and special v6 functionality into -a. suggested by and OK sthen@
2015-10-16Remove -B from EXAMPLES; reminded by jmc@Miod Vallat
2015-10-15Remove disklabel -B (NUMBOOT) support. All the platforms which used to needMiod Vallat
it are now using MI installboot for that purpose. ok krw@ deraadt@
2015-10-15Remove some unnecessary NULL-checks before free(). Change two bzero()mmcc
calls on pf data to explicit_bzero(). ok mikeb@
2015-10-15corrects pledge code for fsck_ffs and fsck_ext2fsSebastien Marie
on filesystem error, fsck will try to display username of inode, resulting need of "getpw" for not SMALL version. add a missed (?) -DSMALL in distrib/special/ for fsck_ffs and fsck_ext2fs found by hard way by ajacoutot@ OK millert@
2015-10-15A classic case for bzero() -> explicit_bzero()mmcc
ok deraadt@
2015-10-15fsck_ffs has a ^T signal handler which opens /dev/tty late. Hoist thatTheo de Raadt
opening to before the pledge, and cache the fd. looked over by millert
2015-10-14To specify a source address ping uses -I while ping6 uses -S. SwitchFlorian Obser
ping6 -I to the ping-alike semantics. sthen@ thinks this is OK
2015-10-14Since the fsck_* programs now only handle one filesystem, this createsTheo de Raadt
a point where open() and disklabel reading have completed. After that point, pledge "stdio". As a result, an fsck of a hostile partition (noone ever does that, or do they? :) is done by a program with SUBSTANTIALLY less system call exposure. ok semarie
2015-10-14unfortunately rewritelabel() just before termination does a non-permittedTheo de Raadt
ioctl to rewrite the label, in support of the old-school "frag info in the disklabel" concept. disklabel folk, please come talk to me...
2015-10-14Only accept one filesystem/device as argument for checking. Few peopleTheo de Raadt
will be calling these directly, and not for the multiple filesystem case. fsck(8) is generally the parent and will handle things. ok semarie; this change will also help a goal jsing has
2015-10-13Remove -b flag and let ping6 set the socket buffer size automaticallyFlorian Obser
like ping. Suggested by deraadt@, OK dlg
2015-10-13can pledge "stdio" after opening device.Theo de Raadt
2015-10-13Pledge "stdio rpath" requests for nologin.Doug Hogan
ok deraadt@ "reads ok" semarie@
2015-10-12deprecate & remove -W option; ok florianTheo de Raadt
2015-10-12Annotate an pretty obvious signal race... no time to fix it now.Theo de Raadt
2015-10-12tunefs can pledge to only use "stdio", after it has opened the device.Theo de Raadt
ok doug
2015-10-12pledge "stdio" right after opening the device. The remainder isTheo de Raadt
is just read, write, fsync, and close. ok doug
2015-10-11Pledge that ncheck_ffs only uses "stdio" after opening the device.Doug Hogan
ok deraadt@
2015-10-11After the filesystem is opened, pledge "stdio"Theo de Raadt
ok doug
2015-10-11If only displaying the disklabel (the normal thing to do against potentiallyTheo de Raadt
unknown disks...), after opening & reading the disklabel, pledge "stdio" ok doug
2015-10-11After the disk is opened, this can pledge "stdio".Theo de Raadt
ok doug
2015-10-11Prefer dprintf() over snprintf()+write()Philip Guenther
ok beck@ deraadt@
2015-10-10pflogd contained the same "privsep error" as tcpdump -- assuming thatTheo de Raadt
it can ioctl()'s against a bpf device node. Privsep that operation via a message to the parent process. Unfortunately "rpath wpath cpath" is still needed due to SIGHUP handling, but I have asked canacar the expert to look into this.
2015-10-09Change all tame callers to namechange to pledge(2).Theo de Raadt
2015-10-07Note permissions for the crc32() code adapted from Hacker's Delight.Kenneth R Westerback
Prompted by deraadt@.
2015-10-06fix flowsrc spec, ok florian, thx ingo!Sebastian Benoit
2015-10-05Remove 'landisk' from the comment about NUMBOOT archs. Only oneKenneth R Westerback
NUMBOOT arch is left: Vax.
2015-10-05Remove disklabel -B support on landisk - superseded by MI installboot.Miod Vallat
2015-10-05Oops. Missed file in fdisk commit.Kenneth R Westerback
2015-10-05Tweak man page to describe newly enhanced '-g' operation.Kenneth R Westerback
2015-10-05Enhance '-g' to create a default GPT label in addition to the protectiveKenneth R Westerback
MBR. If '-b' is specified an EFI System partition of the requested size is created. All remaining space is put into an OpenBSD partition. Minimal enhancement necessary for upcoming UEFI install support. Committed first to flush out any unexpected impacts on 'normal' MBR operation and install media. ok deraadt@
2015-10-04dmesg has two modes. The normal sysctl mode, and the -M/-N kvm searcher.Theo de Raadt
In both cases once the relevant setup is done, it can drop to tame "stdio".
2015-10-04Repair tame() error check to be == -1Theo de Raadt
2015-10-03IPv6 transport for pflow data.Florian Obser
Input deraadt@ Bug fix & OK benno@
2015-10-03If we care about placing core files from SUID programs in a safe place,Vadim Zhukov
lets do not suggest to provoke races and use -m option of mkdir(1). ok guenther@, "don't care" deraadt@ :)
2015-10-03ping6 is a setuid root priv-drop which holds a sockraw. we can tame itTheo de Raadt
substantially with "stdio inet", plus "dns" if the -n option is missing. a successful exploit against it then cannot create files, or perform a variety of other operations, as described in the tame(2) man page. ping6 is a bit trickier than ping, because it uses recvmsg() with CMSG types of IPV6_HOPOPTS, IPV6_DSTOPTS, IPV6_RTHDRDSTOPTS, IPV6_RTHDR. there is further work to do in the kernel, with claudio! work with florian a while back, which involved hoisting lots of initization code upwards. ok doug
2015-10-03ping is a setuid root priv-drop which holds a sockraw. we can tame itTheo de Raadt
substantially with "stdio inet", plus "dns" if the -n option is missing. a successful exploit against it then cannot create files, or perform a variety of other operations, as described in the tame(2) man page. work with florian a while back ok doug
2015-10-02Curve25519 is now specified in draft-ietf-ipsecme-safecurves-00 (alongReyk Floeter
with Curve448). And we already support it. Mention it here to update the Id when it was assigned by IANA.
2015-10-02RFC7634 specifies ChaCha20-Poly1305 for IKEv2 and IPsec and IANAReyk Floeter
assigned an official ID 28 for it. This is good news, and we should really support it as well. Just add the ID for now. Discussed with mikeb@