diff options
| author | sarthurdev <965089+sarthurdev@users.noreply.github.com> | 2025-09-23 15:23:55 +0200 |
|---|---|---|
| committer | sarthurdev <965089+sarthurdev@users.noreply.github.com> | 2025-09-23 19:55:17 +0200 |
| commit | cdf9fe4c9cfd4572c49207936c2304162e91e7b1 (patch) | |
| tree | 861c2f0a19574d9a40136111eb8b3af16788f320 /src/system | |
| parent | 868e45f86d39936ad04566e702ac95759b738149 (diff) | |
| download | vyos-1x-cdf9fe4c9cfd4572c49207936c2304162e91e7b1.tar.gz vyos-1x-cdf9fe4c9cfd4572c49207936c2304162e91e7b1.zip | |
kea: T7854: Use helper for Kea VRF systemd units
Diffstat (limited to 'src/system')
| -rwxr-xr-x | src/system/kea-vrf-helper | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/system/kea-vrf-helper b/src/system/kea-vrf-helper new file mode 100755 index 000000000..b4dd6a349 --- /dev/null +++ b/src/system/kea-vrf-helper @@ -0,0 +1,14 @@ +#!/bin/bash + +VRF=$1 +shift + +export KEA_DHCP_DATA_DIR=/config/dhcp +export KEA_HOOK_SCRIPTS_PATH=/usr/libexec/vyos/system +export KEA_LOCKFILE_DIR=/run/lock/kea + +ip vrf exec $VRF \ + setpriv --reuid=_kea --regid=_kea --init-groups \ + --inh-caps +net_bind_service,+net_raw \ + --ambient-caps +net_bind_service,+net_raw \ + $@ |
