forked from pool/velociraptor
Accepting request 950594 from home:firstyear:branches:security:sensor
- Add client service file OBS-URL: https://build.opensuse.org/request/show/950594 OBS-URL: https://build.opensuse.org/package/show/security:sensor/velociraptor?expand=0&rev=2
This commit is contained in:
parent
13a001b73e
commit
5288159631
@ -1,3 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed Feb 2 04:44:49 UTC 2022 - William Brown <william.brown@suse.com>
|
||||
|
||||
- Add client service file
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Jan 6 21:50:43 UTC 2022 - Jeff Mahoney <jeffm@suse.com>
|
||||
|
||||
|
21
velociraptor-client.service
Normal file
21
velociraptor-client.service
Normal file
@ -0,0 +1,21 @@
|
||||
[Unit]
|
||||
Description=Velociraptor Client Service
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
User=root
|
||||
Group=root
|
||||
UMask=0027
|
||||
ExecStart=/usr/bin/velociraptor client --config /etc/velociraptor/client.config
|
||||
|
||||
PrivateTmp=true
|
||||
PrivateDevices=true
|
||||
ProtectHostname=true
|
||||
ProtectClock=true
|
||||
ProtectKernelTunables=true
|
||||
ProtectKernelModules=true
|
||||
ProtectControlGroups=true
|
||||
MemoryDenyWriteExecute=true
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
@ -20,21 +20,21 @@
|
||||
Name: velociraptor-client
|
||||
Version: 0.6.2~git73.dc02b45e
|
||||
Release: 0
|
||||
Summary: Endpoint visibility and collection tool (endpoint only)
|
||||
Summary: Endpoint visibility and collection tool (endpoint only)
|
||||
|
||||
# FIXME: Select a correct license from https://github.com/openSUSE/spec-cleaner#spdx-licenses
|
||||
License: AGPL-3.0-only
|
||||
URL: https://github.com/Velocidex/velociraptor
|
||||
Source: %{projname}-%{version}.tar.xz
|
||||
Source1: vendor-golang-%{version}.tar.xz
|
||||
Patch1: velociraptor-golang-mage-vendoring.diff
|
||||
Source1: vendor-golang-%{version}.tar.xz
|
||||
Patch1: velociraptor-golang-mage-vendoring.diff
|
||||
BuildRequires: golang-packaging
|
||||
BuildRequires: systemd-rpm-macros
|
||||
BuildRequires: golang(API) >= 1.14
|
||||
BuildRequires: fileb0x
|
||||
BuildRequires: mage
|
||||
BuildRequires: libtsan0
|
||||
Conflicts: velociraptor
|
||||
BuildRequires: fileb0x
|
||||
BuildRequires: mage
|
||||
BuildRequires: libtsan0
|
||||
Conflicts: velociraptor
|
||||
|
||||
%description
|
||||
Velociraptor is a tool for collecting host based state information
|
||||
@ -63,11 +63,14 @@ make linux_bare
|
||||
|
||||
%install
|
||||
mkdir -p %buildroot/%{_bindir}
|
||||
install -m 755 output/velociraptor-v%{version}-linux-* %buildroot/%{_bindir}/velociraptor
|
||||
install -m 0755 output/velociraptor-v%{version}-linux-* %buildroot/%{_bindir}/velociraptor
|
||||
install -m 0644 %{SOURCE2} %{buildroot}%{_unitdir}/velociraptor-client.service
|
||||
|
||||
%files
|
||||
%license LICENSE
|
||||
%doc README.md
|
||||
%dir %{_sysconfdir}/velociraptor
|
||||
%{_bindir}/velociraptor
|
||||
%{_unitdir}/velociraptor-client.service
|
||||
|
||||
%changelog
|
||||
|
Loading…
Reference in New Issue
Block a user