From fd2ea78b1f09d26f19a35a82c38a03ad09ab3cfc Mon Sep 17 00:00:00 2001 From: zhangyao Date: Mon, 23 Oct 2023 14:25:23 +0800 Subject: [PATCH] change the permission on vhost-net and vhost-vsock to 0660 (cherry picked from commit 8364ef56fdb58476c54966233498acde2ff0d96b) --- systemd.spec | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/systemd.spec b/systemd.spec index 3a45d6b..ac73ea7 100644 --- a/systemd.spec +++ b/systemd.spec @@ -21,7 +21,7 @@ Name: systemd Url: https://www.freedesktop.org/wiki/Software/systemd Version: 249 -Release: 56 +Release: 57 License: MIT and LGPLv2+ and GPLv2+ Summary: System and Service Manager @@ -844,7 +844,7 @@ Systemd PAM module registers the session with systemd-logind. CONFIGURE_OPTS=( -Dsysvinit-path=/etc/rc.d/init.d -Drc-local=/etc/rc.d/rc.local - -Ddev-kvm-mode=0666 + -Ddev-kvm-mode=0660 -Dkmod=true -Dxkbcommon=true -Dblkid=true @@ -1307,9 +1307,6 @@ udevadm hwdb --update &>/dev/null grep -q -E '^KEYMAP="?fi-latin[19]"?' /etc/vconsole.conf 2>/dev/null && sed -i.rpm.bak -r 's/^KEYMAP="?fi-latin[19]"?/KEYMAP="fi"/' /etc/vconsole.conf || : -if [ -f "/usr/lib/udev/rules.d/50-udev-default.rules" ]; then - sed -i 's/KERNEL=="kvm", GROUP="kvm", MODE="0666"/KERNEL=="kvm", GROUP="kvm", MODE="0660"/g' /usr/lib/udev/rules.d/50-udev-default.rules -fi %{_bindir}/systemctl daemon-reload &>/dev/null || : %preun timesyncd @@ -2069,6 +2066,9 @@ fi %{_libdir}/security/pam_systemd.so %changelog +* Mon Oct 23 2023 zhangyao - 249-57 +- change the permission on vhost-net and vhost-vsock to 0660 + * Mon Oct 9 2023 wangyuhang - 249-56 - backport: sync patches from systemd community