[ZBXNEXT-9380] Support zabix-agent2 to drop privilegies Created: 2024 Aug 01 Updated: 2024 Aug 01 |
|
Status: | Open |
Project: | ZABBIX FEATURE REQUESTS |
Component/s: | Agent2 plugin (G) |
Affects Version/s: | 6.0.31 |
Fix Version/s: | None |
Type: | Change Request | Priority: | Medium |
Reporter: | Viacheslav | Assignee: | Vjaceslavs Bogdanovs |
Resolution: | Unresolved | Votes: | 0 |
Labels: | vyos | ||
Remaining Estimate: | 26h | ||
Time Spent: | Not Specified | ||
Original Estimate: | 26h | ||
Environment: |
VyOS 1.5-rolling-202408010023 |
Description |
Background: We integrated zabbix-agent2 to support VRF to the VyOS (based on Debian bookworm) So, the same is true for Debian. And had issues if systemd unit was started from the user `zabbix` under VRF ``` Additional capabilities do not work https://vyos.dev/T5657#196808 ``` We have to use user "root" to the systemd unit to start the service correctly under VRF User=root ``` set vrf name mgmt table '123' set vrf bind-to-all ``` Status ``` vyos@r4# sudo systemctl status zabbix-agent2 Aug 01 12:37:55 r4 systemd[1]: Started zabbix-agent2.service - Zabbix Agent 2. ``` Dropping privileges will be an excellent option, as starting the unit under the root is insecure.
|