Up to [local] / src / usr.sbin / ldomd
Request diff between arbitrary revisions
Default branch: MAIN
Revision 1.11 / (download) - annotate - [select for diffs], Sun Oct 24 21:24:18 2021 UTC (2 years, 7 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_7_5_BASE,
OPENBSD_7_5,
OPENBSD_7_4_BASE,
OPENBSD_7_4,
OPENBSD_7_3_BASE,
OPENBSD_7_3,
OPENBSD_7_2_BASE,
OPENBSD_7_2,
OPENBSD_7_1_BASE,
OPENBSD_7_1,
HEAD
Changes since 1.10: +3 -3 lines
Diff to previous 1.10 (colored)
For open/openat, if the flags parameter does not contain O_CREAT, the 3rd (variadic) mode_t parameter is irrelevant. Many developers in the past have passed mode_t (0, 044, 0644, or such), which might lead future people to copy this broken idiom, and perhaps even believe this parameter has some meaning or implication or application. Delete them all. This comes out of a conversation where tb@ noticed that a strange (but intentional) pledge behaviour is to always knock-out high-bits from mode_t on a number of system calls as a safety factor, and his bewilderment that this appeared to be happening against valid modes (at least visually), but no sorry, they are all irrelevant junk. They could all be 0xdeafbeef. ok millert
Revision 1.10 / (download) - annotate - [select for diffs], Thu Nov 28 18:40:42 2019 UTC (4 years, 6 months ago) by kn
Branch: MAIN
CVS Tags: OPENBSD_7_0_BASE,
OPENBSD_7_0,
OPENBSD_6_9_BASE,
OPENBSD_6_9,
OPENBSD_6_8_BASE,
OPENBSD_6_8,
OPENBSD_6_7_BASE,
OPENBSD_6_7
Changes since 1.9: +2 -2 lines
Diff to previous 1.9 (colored)
Use scan_scaled(3) for memory in ldom.conf Replace the hand-written routing with a proper library allowing even more formats. Since ldomctl's local util.h conflicts with the now used global util.h from libutil, rename it to ldom_util.h. Manual wording from amd64's vm.conf(5). OK kettenis
Revision 1.9 / (download) - annotate - [select for diffs], Sun Sep 29 17:10:00 2019 UTC (4 years, 8 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_6_6_BASE,
OPENBSD_6_6
Changes since 1.8: +2 -1 lines
Diff to previous 1.8 (colored)
oops .h file missing
Revision 1.8 / (download) - annotate - [select for diffs], Sat Sep 28 16:12:13 2019 UTC (4 years, 8 months ago) by deraadt
Branch: MAIN
Changes since 1.7: +3 -3 lines
Diff to previous 1.7 (colored)
It is better style if path[] buffers are PATH_MAX, rather than shorter. This subtly reduces the impact of truncation effects, as the truncation is less likely, and if it exists it may be detected directly by the system call with a proper error check. (this strange justification is sadly valid in a world where people moan oh so loudly about truncation but then don't audit and fix all instances) ok kettenis
Revision 1.7 / (download) - annotate - [select for diffs], Sun Aug 28 00:51:48 2016 UTC (7 years, 9 months ago) by guenther
Branch: MAIN
CVS Tags: OPENBSD_6_5_BASE,
OPENBSD_6_5,
OPENBSD_6_4_BASE,
OPENBSD_6_4,
OPENBSD_6_3_BASE,
OPENBSD_6_3,
OPENBSD_6_2_BASE,
OPENBSD_6_2,
OPENBSD_6_1_BASE,
OPENBSD_6_1
Changes since 1.6: +2 -1 lines
Diff to previous 1.6 (colored)
Pull in <time.h> for tzset()
Revision 1.6 / (download) - annotate - [select for diffs], Sat Dec 8 20:38:10 2012 UTC (11 years, 5 months ago) by kettenis
Branch: MAIN
CVS Tags: OPENBSD_6_0_BASE,
OPENBSD_6_0,
OPENBSD_5_9_BASE,
OPENBSD_5_9,
OPENBSD_5_8_BASE,
OPENBSD_5_8,
OPENBSD_5_7_BASE,
OPENBSD_5_7,
OPENBSD_5_6_BASE,
OPENBSD_5_6,
OPENBSD_5_5_BASE,
OPENBSD_5_5,
OPENBSD_5_4_BASE,
OPENBSD_5_4,
OPENBSD_5_3_BASE,
OPENBSD_5_3
Changes since 1.5: +17 -1 lines
Diff to previous 1.5 (colored)
Make ldomd(8) to control the availability of virtual disks to guest domains. This is done by opening the corresponding /dev/vdspN device file. The virtual disk will remain available until that device is closed, which happens automatically when ldomd(8) exits.
Revision 1.5 / (download) - annotate - [select for diffs], Sun Nov 4 17:37:10 2012 UTC (11 years, 6 months ago) by kettenis
Branch: MAIN
Changes since 1.4: +2 -111 lines
Diff to previous 1.4 (colored)
Split out hvctl protocol definitions in a seperate header file.
Revision 1.4 / (download) - annotate - [select for diffs], Sat Oct 27 20:53:15 2012 UTC (11 years, 7 months ago) by kettenis
Branch: MAIN
Changes since 1.3: +63 -39 lines
Diff to previous 1.3 (colored)
Close hvctl channel after initial setup and reopen it whenever we need to reconfigure. Makes it possible to use ldomctl(8) when ldomd(8) is running.
Revision 1.3 / (download) - annotate - [select for diffs], Sat Oct 27 20:03:24 2012 UTC (11 years, 7 months ago) by kettenis
Branch: MAIN
Changes since 1.2: +126 -46 lines
Diff to previous 1.2 (colored)
Turn this into a proper deamon, and add a man page.
Revision 1.2 / (download) - annotate - [select for diffs], Sat Oct 27 18:34:03 2012 UTC (11 years, 7 months ago) by kettenis
Branch: MAIN
Changes since 1.1: +55 -121 lines
Diff to previous 1.1 (colored)
Give ldomd(8) its own copy of the domain services support code and modify it to handle multiple channels. Use it to provide the var-config domain service to all the currently configured guest domains.
Revision 1.1 / (download) - annotate - [select for diffs], Fri Oct 26 18:26:13 2012 UTC (11 years, 7 months ago) by kettenis
Branch: MAIN
Work-in-progress code for ldomd(8), a daemon running in a sun4v control domain that provides some essential services to guest domains.