change the permission on vhost-net and vhost-vsock to 0660

(cherry picked from commit 8364ef56fdb58476c54966233498acde2ff0d96b)
This commit is contained in:
zhangyao 2023-10-23 14:25:23 +08:00 committed by openeuler-sync-bot
parent 5b048ad87f
commit fd2ea78b1f

View File

@ -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 <zhangyao108@huawei.com> - 249-57
- change the permission on vhost-net and vhost-vsock to 0660
* Mon Oct 9 2023 wangyuhang <wangyuhang27@huawei.com> - 249-56
- backport: sync patches from systemd community