OpenBSD CVS

CVS log for src/usr.sbin/vmmctl/Attic/main.c


[BACK] Up to [local] / src / usr.sbin / vmmctl

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.8, Thu Dec 3 21:45:45 2015 UTC (8 years, 6 months ago) by reyk
Branch: MAIN
CVS Tags: HEAD
Changes since 1.7: +1 -1 lines
FILE REMOVED

Replace vmmctl with vmctl.  Also remove parse.y from the "new" vmctl.

As discussed with mlarkin@ and deraadt@

Revision 1.7 / (download) - annotate - [select for diffs], Thu Dec 3 13:08:44 2015 UTC (8 years, 6 months ago) by reyk
Branch: MAIN
Changes since 1.6: +13 -1 lines
Diff to previous 1.6 (colored)

Use PEERCRED to obtain the user id of the vmmctl user.  This is used to
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.

Revision 1.6 / (download) - annotate - [select for diffs], Wed Dec 2 09:14:25 2015 UTC (8 years, 6 months ago) by reyk
Branch: MAIN
Changes since 1.5: +23 -24 lines
Diff to previous 1.5 (colored)

Start tweaking vmd's privsep and daemon model by splitting the main
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@

Revision 1.5 / (download) - annotate - [select for diffs], Tue Dec 1 20:52:44 2015 UTC (8 years, 6 months ago) by halex
Branch: MAIN
Changes since 1.4: +7 -2 lines
Diff to previous 1.4 (colored)

Fix -i option handling.

ok reyk@

Revision 1.4 / (download) - annotate - [select for diffs], Fri Nov 27 09:11:39 2015 UTC (8 years, 6 months ago) by reyk
Branch: MAIN
Changes since 1.3: +232 -69 lines
Diff to previous 1.3 (colored)

Change the command line syntax to a "command + getopts" style, eg.
  vmmctl start "myvm" -m 512M -i 1 -d disk.img -k /bsd

Networking people like me are used to the human-readable CLI-style
syntax that we have in some of our OpenBSD *ctl tools, including
bgpctl, other routing daemons, or relayctl.  But this didn't work for
vmmctl, so change it to something a bit less human-readable but more
BSD- and POSIX-ish.  After all, the command line is only intended for
simple configuration, more details will go into the configuration
file, so we can avoid getopt flag conflicts or scary things like the
getsubopt(3) style.

OK krw@ jasper@, with input from kettenis@ jmc@ deraadt@ mlarkin@ etc.

Revision 1.3 / (download) - annotate - [select for diffs], Thu Nov 26 08:26:48 2015 UTC (8 years, 6 months ago) by reyk
Branch: MAIN
Changes since 1.2: +1 -13 lines
Diff to previous 1.2 (colored)

Automatically start vmm(4) when the first VM is created and after the
last VM is terminated.  This allows to remove the explicit "vmm
enable" / "vmm disable" (VMM_IOC_START / VMM_IOC_STOP) ioctls.  You'll
have to update kernel and userland for this change, as the kernel ABI
changes.

OK mpi@ mlarkin@

Revision 1.2 / (download) - annotate - [select for diffs], Thu Nov 26 07:44:28 2015 UTC (8 years, 6 months ago) by reyk
Branch: MAIN
Changes since 1.1: +2 -2 lines
Diff to previous 1.1 (colored)

Fix potentially uninitialized variable.

Found by jsg@

Revision 1.1 / (download) - annotate - [select for diffs], Sun Nov 22 20:55:18 2015 UTC (8 years, 6 months ago) by reyk
Branch: MAIN

Add initial parser to support a vmm.conf(5) configuration file format
for vmm and virtual machines.  Additionally, add a matching vmmctl
command line grammar that replaces (most of the) getopt arguments.
The goal is to provide a sane way to configure vmm(4) and vmd(8).
"There is still a lot to be done, and fixed" in this as well.

OK mlarkin@

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.