summaryrefslogtreecommitdiff
path: root/usr.sbin
AgeCommit message (Collapse)Author
2015-12-04macro args in previous were the wrong way round;Jason McIntyre
zap some trailing whitespace while here;
2015-12-04Make the NOPRIV_USER match that is actually intended to be used forSebastian Reitenbach
that. Problem introduced since tftp-proxy and ftp-proxy have separate nonpriv users. OK deraadt@
2015-12-04refine some logging and error messages. errors will now always go to stderrTed Unangst
until daemonized and syslog as well. make logerr() work more like err().
2015-12-04push daemon call a little later so if the address is in use we see theTed Unangst
error message
2015-12-04Add -c option to "vmctl start" to automatically connect to the VMReyk Floeter
console after startup. This calls 'cu -l $TTY -s 9600' internally - a "safe mode" for cu is proposed by tedu@. Requested by mlarkin@ OK tedu@ on the execl/cu chunk
2015-12-04pledge the relay (layer 7 proxy) children, they can do with "stdioSebastian Benoit
recvfd inet" ok reyk@
2015-12-04Fix typo in #include line.YASUOKA Masahiko
2015-12-04Remove files which had been unused.YASUOKA Masahiko
2015-12-04one signal.h should sufficeTed Unangst
2015-12-04A VM has to run with at least 1 CPU.Reyk Floeter
2015-12-04ignore SIGPIPE. i don't see any way for it to happen, but nevertheless weTed Unangst
definitely don't want to receive it unexpectedly.
2015-12-04sort flags.Igor Sobrado
ok jmc@
2015-12-04- sync usageGleydson Soares
- add a bit more detail about config alternative file and add -d while here. manpage help from jmc@ schwarze@ thanks a lot! OK tedu jmc schwarze
2015-12-03Re-add the "load" and "reload" commands to vmctl: Instead of parsingReyk Floeter
the configuration in vmctl directly, it now sends a (re)load request to vmd. The reload also resets the existing configuration status - this doesn't do much difference yet but a future change will compare if a specified VM is already running. "load" will allow to add configuration, while "reload" resets the state before loading.
2015-12-03sort SEE ALSO;Jason McIntyre
2015-12-03new sentence, new line;Jason McIntyre
2015-12-03Replace vmmctl with vmctl. Also remove parse.y from the "new" vmctl.Reyk Floeter
As discussed with mlarkin@ and deraadt@
2015-12-03remove trailing whitespaceJoerg Jung
2015-12-03introduce limit session keyword replacing fixed valuesJoerg Jung
original diff from Renaud Allard ok gilles
2015-12-03if_indextoname() was fixed a while back, do not need to pledge "route"Theo de Raadt
ok claudio
2015-12-03Add and document -D and -f flags to vmd.Reyk Floeter
2015-12-03mlarkin's code has been moved to vmm.c, so it is ok to claim the copyright.Reyk Floeter
2015-12-03quick removal of all host-related entries in the related relayd anchorSebastian Benoit
if the host fails the SLA check. patch from Brian S. Vangsgaard. ok reyk@
2015-12-03Add support for an optional vm.conf(5) file in vmd. This will replaceReyk Floeter
vmm.conf(5) in vmmctl. For a short time, both vmd and vmmctl will support a configuration file, but vmmctl will be changed to send "load" requests to vmd instead of loading and parsing the file directly.
2015-12-03prepare config_getvm() for parse.yReyk Floeter
2015-12-03Use PEERCRED to obtain the user id of the vmmctl user. This is used toReyk Floeter
restrict write operations (start/stop/terminate/load) to root for now, but allow others to obtain the status. A more sophisticated model will follow later, but this change prevents non-root users, even if in the wheel group, to start vms and thus to open any files read-writable as disks.
2015-12-03Remove unnecessary NULL checks before free().Reyk Floeter
From Jan Schreiber
2015-12-03Another imsg_read EAGAIN check. OK benno@Claudio Jeker
2015-12-03imsg_read will return EAGAIN in some cases so prep code for it.Claudio Jeker
This is in the way for ospfd pledge so in it goes. OK benno@
2015-12-03claudio questioned the need for pledge(unix) in the rde, and i thinkSebastian Benoit
he is right. ok claudio@
2015-12-03spacingReyk Floeter
2015-12-03spacingReyk Floeter
2015-12-03when running on a machine without net, rebound will still receive queriesTed Unangst
from localhost, but then fail to forward them. this causes the resolver to stall waiting for timeouts in situations where it would otherwise fail quickly. we don't know this happens until it's too late, but we can push the resolver forward by sending back empty replies. ok deraadt
2015-12-03the grammar can prompt DNS lookups, so pledge "dns" also.Theo de Raadt
from Gregor Best, discussed with florian
2015-12-02send the tty name to vmmctl and print it as a result.Reyk Floeter
2015-12-02Split the fully privileged parent into two processes "parent" andReyk Floeter
"vmm" with reduced privileges: - the "parent" opens fds (disks, ifs, etc.) but runs as root but pledged as "stdio rpath wpath proc tty sendfd". - the "vmm" process handles the creation and supervision of vm processes, and the primary communication with the vmm(4) subsystem. It runs as _vmd in the chroot but does not use pledge, as the vmm ioctls are not allowed by any pledge model yet. With this change, vmd starts to track the configuration state of VMs in vmd and will allow other things later (like terminating a vm by name, moving the configuration parser to vmd, ...). More incremental changes will follow.
2015-12-02relayd (when running relays) can distribute client sessions over hostsSebastian Benoit
with a hash generated from different data and calculate modulo rlt->rlt_nhosts to find the host the session should go to. If this host is down, the current algorithm simply selects the next host that is up, obviously not ideal, because this puts heavier load on this next host. this changes the algorithm: if the chosen host is not available, the hash value is recalculated and and retried until a host that is usable is found or a maximum of retires is reached (in that case the old method is used). ok and nice input on my original idea bluhm@
2015-12-02typo in log entrymmcc
2015-12-02sync with relayd, use proc_compose()Reyk Floeter
2015-12-02Sync with relayd, fix previous use of proc_compose*_imsg()Reyk Floeter
2015-12-02In most cases we don't need all arguments of proc_compose*_imsg(),Reyk Floeter
so add a shortcut proc_compose*() that skips all of them. Only use the full argument list if needed. The functions with full argument lists can eventually be replaced with a nicer transaction-based approach later. OK benno@
2015-12-02tell readers about config reloads.Sebastian Benoit
ok tedu
2015-12-02Add back the "peerid" to the proc_compose*() functions: in relayd, IReyk Floeter
initially left it out because I didn't have a need for it. But it is actually quite useful to carry a reference to the imsg data context across processes.
2015-12-02The earlier "nifs" change broke the configuration file; unbreak it byReyk Floeter
adding a missing bit.
2015-12-02Start tweaking vmd's privsep and daemon model by splitting the mainReyk Floeter
process into multiple parts and adopting the "proc.c"-style from other daemons. This allows to further reduce the privileges, to give better pledge(2), and to add some upcoming changes. "please do" mlarkin@, deraadt@
2015-12-02whitespacesGilles Chehade
2015-12-02comment typommcc
2015-12-01add missing fclose(3)Gleydson Soares
ok tedu@
2015-12-01missing articles in previous;Jason McIntyre
2015-12-01Fix -i option handling.Alexander Hall
ok reyk@