Skip to content

Commit a4924d5

Browse files
committed
wip on sandboxing vanta agent
1 parent f2656a2 commit a4924d5

File tree

1 file changed

+55
-0
lines changed

1 file changed

+55
-0
lines changed

misc/vanta_sandbox/vanta.service

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
[Unit]
2+
Description=Vanta monitoring software
3+
After=network.service syslog.service
4+
5+
[Service]
6+
TimeoutStartSec=0
7+
ExecStart=/usr/libexec/vanta/metalauncher
8+
Restart=on-failure
9+
KillMode=control-group
10+
KillSignal=SIGTERM
11+
# see systemd.exec(5), systemd.resource-control(5)
12+
RestrictNamespaces=true
13+
RestrictSUIDSGID=true
14+
SecureBits=noroot noroot-locked
15+
NoNewPrivileges=yes
16+
AmbientCapabilities=
17+
CapabilityBoundingSet=
18+
ProtectHostname=true
19+
ProtectClock=true
20+
ProtectKernelTunables=true
21+
ProtectKernelModules=true
22+
ProtectControlGroups=true
23+
ProtectHome=tmpfs
24+
DevicePolicy=closed
25+
DeviceAllow=/dev/log
26+
#ProtectSystem=strict
27+
ProtectSystem=full
28+
#ReadWritePaths=/opt/Kaseya
29+
#ReadWritePaths=/run
30+
#ReadWritePaths=/var/run
31+
#ReadWritePaths=/tmp
32+
# Required for PrivateTmp
33+
#ReadWritePaths=/var/tmp
34+
#ReadOnlyPaths=/etc
35+
#ReadOnlyPaths=/dev
36+
#ReadOnlyPaths=/proc
37+
#ReadOnlyPaths=/sys
38+
#ReadOnlyPaths=/lib
39+
#ReadOnlyPaths=/bin
40+
#ReadOnlyPaths=/sbin
41+
#ReadOnlyPaths=/usr/lib
42+
#ReadOnlyPaths=/usr/bin
43+
#ReadOnlyPaths=/usr/sbin
44+
#TemporaryFileSystem=/etc/profile.d
45+
PrivateTmp=true
46+
PrivateUsers=true
47+
# See systemd-analyse syscall-filter, and systemd.exec(5)
48+
#SystemCallFilter=@default @process @basic-io @chown @file-system @network-io @timer
49+
#SystemCallFilter=~@mount @module @privileged @reboot @debug @keyring @setuid
50+
#SystemCallFilter=@system-service
51+
SystemCallFilter=~@mount
52+
53+
[Install]
54+
WantedBy=multi-user.target
55+
Alias=vanta.service

0 commit comments

Comments
 (0)