From 1e68d5ca5d46a60fff0c1d6098a29c8816cb23459686d5bd9e5e25f3f47c1177 Mon Sep 17 00:00:00 2001 From: Hillwood Yang Date: Thu, 26 Oct 2023 07:27:29 +0000 Subject: [PATCH] Accepting request 1120480 from home:hillwood:branches:server:proxy - Fix boo#1216372 and boo#1216373, run systemd service as a dedicated user and group OBS-URL: https://build.opensuse.org/request/show/1120480 OBS-URL: https://build.opensuse.org/package/show/server:proxy/shadowsocks-rust?expand=0&rev=16 --- shadowsocks-rust.changes | 2 +- shadowsocks-rust.spec | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/shadowsocks-rust.changes b/shadowsocks-rust.changes index fccf384..9e3c0f5 100644 --- a/shadowsocks-rust.changes +++ b/shadowsocks-rust.changes @@ -1,7 +1,7 @@ ------------------------------------------------------------------- Tue Oct 24 14:38:46 UTC 2023 - Hillwood Yang -- Fix boo#1216372 and boo#1216373 +- Fix boo#1216372 and boo#1216373, run systemd service as a dedicated user and group ------------------------------------------------------------------- Mon Sep 25 14:02:49 UTC 2023 - Hillwood Yang diff --git a/shadowsocks-rust.spec b/shadowsocks-rust.spec index 292bfe3..d3a896c 100644 --- a/shadowsocks-rust.spec +++ b/shadowsocks-rust.spec @@ -86,7 +86,7 @@ getent passwd shadowsocks >/dev/null || %{_sbindir}/useradd --system -c "shadows %service_add_post %{name}-client.service %service_add_post %{name}-server.service %service_add_post %{name}-manager.service -chown shadowsocks:shadowsocks %{_sysconfdir}/shadowsocks -R +chown root:shadowsocks %{_sysconfdir}/shadowsocks -R %preun %service_del_preun %{name}-client.service @@ -105,6 +105,7 @@ chown shadowsocks:shadowsocks %{_sysconfdir}/shadowsocks -R %{_sbindir}/rc%{name}-* %{_unitdir}/%{name}-*.service %dir %{_sysconfdir}/shadowsocks +# %config(noreplace) %attr(660,%{name},root) %{_sysconfdir}/shadowsocks %config %{_sysconfdir}/shadowsocks/%{name}.json %changelog