From: Filip Schauer <f.schauer@proxmox.com>
To: pve-devel@lists.proxmox.com
Subject: [pve-devel] [PATCH cluster/guest-common/manager/qemu-server v2 0/9] fix #5657: allow configuring RNG device as non-root user
Date: Wed, 29 Jan 2025 16:53:30 +0100 [thread overview]
Message-ID: <20250129155339.164696-1-f.schauer@proxmox.com> (raw)
Allow users with the VM.Config.HWType privilege to configure VirtIO RNG
devices on VMs with either /dev/urandom or /dev/random as the entropy
source.
Further introduce hardware RNG device mapping to be able to selectively
allow non-root users with the Mapping.Use privilege to configure
hardware RNG devices as entropy sources.
Changes since v1:
* Restrict use of /dev/hwrng to the root user
* introduce hardware RNG mapping
pve-guest-common:
Filip Schauer (1):
mapping: add a hardware RNG mapping config
src/Makefile | 1 +
src/PVE/Mapping/HWRNG.pm | 147 +++++++++++++++++++++++++++++++++++++++
2 files changed, 148 insertions(+)
create mode 100644 src/PVE/Mapping/HWRNG.pm
pve-cluster:
Filip Schauer (1):
cfs: add 'mapping/hwrng.cfg' to observed files
src/PVE/Cluster.pm | 1 +
src/pmxcfs/status.c | 1 +
2 files changed, 2 insertions(+)
pve-manager:
Filip Schauer (4):
introduce hardware rng mapping api
introduce hardware rng scanning api
ui: add hardware RNG resource mapping
ui: allow use of mapped hardware RNGs as entropy sources for VMs
PVE/API2/Cluster/Mapping.pm | 7 +
PVE/API2/Cluster/Mapping/HWRNG.pm | 286 ++++++++++++++++++++++++++
PVE/API2/Cluster/Mapping/Makefile | 5 +-
PVE/API2/Hardware.pm | 7 +
PVE/API2/Hardware/HWRNG.pm | 47 +++++
PVE/API2/Hardware/Makefile | 1 +
www/manager6/Makefile | 3 +
www/manager6/data/PermPathStore.js | 1 +
www/manager6/dc/Config.js | 10 +
www/manager6/dc/HWRNGMapView.js | 76 +++++++
www/manager6/form/HWRNGMapSelector.js | 99 +++++++++
www/manager6/qemu/HardwareView.js | 9 +-
www/manager6/qemu/RNGEdit.js | 79 ++++---
www/manager6/window/HWRNGMapEdit.js | 149 ++++++++++++++
14 files changed, 748 insertions(+), 31 deletions(-)
create mode 100644 PVE/API2/Cluster/Mapping/HWRNG.pm
create mode 100644 PVE/API2/Hardware/HWRNG.pm
create mode 100644 www/manager6/dc/HWRNGMapView.js
create mode 100644 www/manager6/form/HWRNGMapSelector.js
create mode 100644 www/manager6/window/HWRNGMapEdit.js
qemu-server:
Filip Schauer (3):
refactor: move rng related code into its own module
allow non-root users to set /dev/u?random as an RNG source
let VirtIO RNG devices source entropy from mapped HWRNGs
PVE/API2/Qemu.pm | 47 ++++++++++++
PVE/QemuServer.pm | 101 +++++++-------------------
PVE/QemuServer/Makefile | 1 +
PVE/QemuServer/RNG.pm | 156 ++++++++++++++++++++++++++++++++++++++++
4 files changed, 229 insertions(+), 76 deletions(-)
create mode 100644 PVE/QemuServer/RNG.pm
Summary over all repositories:
22 files changed, 1127 insertions(+), 107 deletions(-)
--
Generated by git-murpp 0.6.0
_______________________________________________
pve-devel mailing list
pve-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel
next reply other threads:[~2025-01-29 15:54 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-01-29 15:53 Filip Schauer [this message]
2025-01-29 15:53 ` [pve-devel] [PATCH guest-common v2 1/9] mapping: add a hardware RNG mapping config Filip Schauer
2025-01-30 12:18 ` Fiona Ebner
2025-01-29 15:53 ` [pve-devel] [PATCH cluster v2 2/9] cfs: add 'mapping/hwrng.cfg' to observed files Filip Schauer
2025-01-29 15:53 ` [pve-devel] [PATCH manager v2 3/9] introduce hardware rng mapping api Filip Schauer
2025-01-29 15:53 ` [pve-devel] [PATCH manager v2 4/9] introduce hardware rng scanning api Filip Schauer
2025-01-29 15:53 ` [pve-devel] [PATCH manager v2 5/9] ui: add hardware RNG resource mapping Filip Schauer
2025-01-29 15:53 ` [pve-devel] [PATCH manager v2 6/9] ui: allow use of mapped hardware RNGs as entropy sources for VMs Filip Schauer
2025-01-29 15:53 ` [pve-devel] [PATCH qemu-server v2 7/9] refactor: move rng related code into its own module Filip Schauer
2025-01-30 12:17 ` Fiona Ebner
2025-01-29 15:53 ` [pve-devel] [PATCH qemu-server v2 8/9] allow non-root users to set /dev/u?random as an RNG source Filip Schauer
2025-01-30 12:18 ` Fiona Ebner
2025-01-29 15:53 ` [pve-devel] [PATCH qemu-server v2 9/9] let VirtIO RNG devices source entropy from mapped HWRNGs Filip Schauer
2025-01-30 12:17 ` [pve-devel] [PATCH cluster/guest-common/manager/qemu-server v2 0/9] fix #5657: allow configuring RNG device as non-root user Fiona Ebner
2025-02-10 15:47 ` Filip Schauer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20250129155339.164696-1-f.schauer@proxmox.com \
--to=f.schauer@proxmox.com \
--cc=pve-devel@lists.proxmox.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.