Age | Commit message (Collapse) | Author |
|
an arbitrary location is a possibility.
Suggested by & ok deraadt@
|
|
krw's refactorings which hoisted disk-opening to the top.
tested by krw
|
|
resistant against memory correctup, if a corrupt filesystem is given to them.
ok krw
|
|
Discovered by krw
|
|
|
|
with the SOCK_NONBLOCK flag to socket() and accept4().
OK claudio@ jung@
|
|
resistant against memory correctup, if a corrupt filesystem is given to them.
ok krw
|
|
|
|
pledging easier, and it was excessive complicated stuff.
"Good." deraadt@
|
|
|
|
so add an entry to NAME and document it;
ok schwarze
|
|
deraadt@'s decree.
|
|
How this could have been unotified for so long? Thanks to sebastia@
for reporting a breakage when re-configuring an IPv6 static address.
ok sebastia@
|
|
include the process name, and replace all calls of fatal*(NULL) with
fatal(__func__) for better debugging.
OK benno@
|
|
|
|
ok schwarze
|
|
by presenting the existing offset and size as the defaults. Enhance
getuint64() to take a minimum value as ask_num() does. Use this to
ensure that GPT partitions are constrained to the valid area of the
disk. Leave MBR partition constraints alone for the moment.
Original problem(s) noted by tim@
|
|
get rid of the "LOSS OF MIND" joke. Haha. We keep on removing it and
it shows up again because it accidentally gets synced from somewhere
else. bgpd and ospfd don't have it anymore, but their offsprings
still carry it. If you see it, remove it, and, in the OpenBSD ISC
case, use the original text from /usr/share/misc/license.template.
All authors agree.
|
|
sync log.c with relayd and httpd - all three daemons are using a copy
of the same file now. Nevertheless, adding "extern int debug/verbose"
in util.c is not super nice but helps for now. No functional change.
|
|
and Xgedit() to a new mechanism. Keep a copy of the old partition
and compare final edited version to that to decide if it is dirty.
Fixes a number of (but not all!) nits in editing partitions.
Original problem(s) noted by, suggestions from, much testing and
ok tim@
|
|
|
|
|
|
|
|
strndup().
ok millert@
|
|
|
|
table is marked dirty so that it gets written when "quit" is issued.
This commit contains the MBR part of the fix only. The GPT code needs a few
adjustments before the GPT part can be fixed properly.
OK krw@
|
|
Reduce overburden of unnecessary #include's. Note that param.h is
included only for DEV_BSIZE. Use INT64_MAX instead of LLONG_MAX
so stdint.h is enough. General tidying up of #include sections.
ok GCC
|
|
|
|
|
|
No binary change (for real this time).
|
|
included only for DEV_BSIZE. Use INT64_MAX instead of LLONG_MAX
so stdint.h is enough. General tidying up of #include sections.
ok GCC
|
|
|
|
|
|
policy after receiving it from the parent. print_policy ->
print_proto -> getprotobynumber -> pledge abort because it tried to
access /etc/protocols without rpath. It was just a debugging message
that can be moved to the parent (printing the policy on the sender
side and not the receiver side). The parent has rpath and dns.
Issue found by sthen@ with "proto etherip"
OK sthen@ benno@
|
|
|
|
partition table in this variable when doing an 'u'pdate of the MBR.
Remove now superfluous MBR_pcopy() and its re-read of the on-disk MBR.
|
|
|
|
1) If mbr_file is NULL use built-in mbr for -i, -u and 'reinit'.
2) If mbr_file cannot be opened issue a warning and use built-in mbr for -i,
-u, and 'reinit'.
3) If mbr_file can't be read, bail out of fdisk.
4) Use the mbr read from mbr_file for -i, -u, and 'reinit'.
Remove inappropriate GPT dancing.
This restores pre-GPT-editing mbr_file handling and makes the logic
clearer at the expense of a tiny bit of duplication.
|
|
and re-read it from disk if appropriate. i.e. when the re-read MBR
is a protective MBR.
|
|
protective MBR.
|
|
from jan stary
|
|
it sounds like a lot, but this will eventually run the /etc/rc scripts
to shutdown, then run reboot or halt. After looking at getpw*, drop
pledge "getpw". Later drop to just "stdio exec"...
This depends on new pledge semantics for revoke(2).
with help from jca
ok guenther millert semarie tedu jca
|
|
returning a value to tell callers to zap it. Use consistant idiom
to check for the presence of a GPT (check gh.gh_sig). When zapping
GPT, always zap both the header and partition table just for
paranoia's sake.
|
|
invalid and mention the constraint in usage(). Modify the appropriate
field(s) of the global 'disk' as -l/-c/-h/-s are encountered. As a
result use the disklabel information to populate the global 'disk'
only when it has not already been populated. Move test for 'disk'
validity into DISK_open().
|
|
usage() verbiage a bit so it's clear all of '-c -h -s' are required
if any are used.
|
|
when none of -i, -e or -u are specified.
Prodded by deraadt@
|
|
MBR or GPT is printed. Do not attempt to read the MBR template file,
construct an initial mbr, etc.
|
|
-g needing -i. The usage() text is quite clear.
usage() doesn't return so eliminate unneeded 'else'.
|
|
|
|
verbiage in the usage() output.
|