From 089c8e865e0f6aeec47eafee71873123f271fefe758f9eeace19d2735cd7ab73 Mon Sep 17 00:00:00 2001 From: Jeff Mahoney Date: Tue, 8 Feb 2022 17:50:07 +0000 Subject: [PATCH] Accepting request 952778 from home:jeff_mahoney:branches:security:sensor - Added client systemd unit files to velociraptor package (LSS#5). Since the velociraptor binary in the 'server' package can also function as the client, we'll need the client config as well. - Temporarily re-enable Windows artifacts (LSS#4). OBS-URL: https://build.opensuse.org/request/show/952778 OBS-URL: https://build.opensuse.org/package/show/security:sensor/velociraptor?expand=0&rev=5 --- velociraptor.changes | 9 ++++++++- velociraptor.spec | 11 ++++++++++- 2 files changed, 18 insertions(+), 2 deletions(-) diff --git a/velociraptor.changes b/velociraptor.changes index 570f88d..c9aab54 100644 --- a/velociraptor.changes +++ b/velociraptor.changes @@ -1,7 +1,14 @@ +------------------------------------------------------------------- +Tue Feb 8 17:25:58 UTC 2022 - Jeff Mahoney + +- Added client systemd unit files to velociraptor package (LSS#5). + Since the velociraptor binary in the 'server' package can + also function as the client, we'll need the client config as well. + ------------------------------------------------------------------- Mon Feb 7 14:40:47 UTC 2022 - Jeff Mahoney -- Temporarily re-enable Windows artifacts. +- Temporarily re-enable Windows artifacts (LSS#4). ------------------------------------------------------------------- Wed Feb 2 18:10:19 UTC 2022 - Jeff Mahoney diff --git a/velociraptor.spec b/velociraptor.spec index 5d1a289..e479fc9 100644 --- a/velociraptor.spec +++ b/velociraptor.spec @@ -30,6 +30,8 @@ Source1: vendor-golang-%{version}.tar.xz Source2: vendor-nodejs-%{version}.tar.xz Source3: %{name}.service Source4: %{name}-server.config.placeholder +Source5: %{name}-client.service +Source6: %{name}-client.config.placeholder Patch1: velociraptor-golang-mage-vendoring.diff BuildRequires: golang-packaging BuildRequires: systemd-rpm-macros @@ -76,6 +78,8 @@ mkdir -p %buildroot/%{_unitdir} install -m 755 output/velociraptor-v%{version}-linux-* %buildroot/%{_bindir}/velociraptor install -m 0644 %{SOURCE3} %{buildroot}%{_unitdir}/%{name}.service install -m 0600 %{SOURCE4} %{buildroot}%{_sysconfdir}/velociraptor/server.config +install -m 0644 %{SOURCE5} %{buildroot}%{_unitdir}/%{name}-client.service +install -m 0600 %{SOURCE6} %{buildroot}%{_sysconfdir}/velociraptor/client.config %files %license LICENSE @@ -83,19 +87,24 @@ install -m 0600 %{SOURCE4} %{buildroot}%{_sysconfdir}/velociraptor/server.config %dir %{_sysconfdir}/velociraptor %{_bindir}/velociraptor %config(noreplace) %{_sysconfdir}/velociraptor/server.config +%config(noreplace) %{_sysconfdir}/velociraptor/client.config %{_unitdir}/%{name}.service +%{_unitdir}/%{name}-client.service %pre %service_add_pre %{name}.service +%service_add_pre %{name}-client.service %post %service_add_post %{name}.service +%service_add_post %{name}-client.service %preun %service_del_preun %{name}.service +%service_del_preun %{name}-client.service %postun %service_del_postun %{name}.service - +%service_del_postun %{name}-client.service %changelog