vmd(8): restrict qcow2 cluster shifts at parse time.
Qcow2 minimum is 9 (512 bytes). Cap a maximum at 21 (2 MiB).
Report and diff by Andrew Griffiths.
ok hshoexer@
vmd(8): reject short qcow2 l2 metadata reads.
Prevents use of partially initialized buffer if the read is short.
Report and diff by Andrew Griffiths.
ok hshoexer@
Switch rad and ractl to use imsgbuf_get.
Trivial conversion since the imsg_get return value is only used to check
for error and an empty queue.
OK florian@
Exclude LOGIN_SETXDGENV from flags when pwd is NULL
This follows LOGIN_SETGROUP and LOGIN_SETLOGIN which do the same.
Calling setusercontext with a NULL pwd argument should not cause
a crash. Skipping LOGIN_SETXDGENV in this case is fine since the
combination of now pwd entry and LOGIN_SETXDGENV makes no sense.
Documentation change suggested by deraadt@
OK jca@