]> granicus.if.org Git - icinga2/commit
Impersonate as Icinga user, not root
authorMichael Friedrich <michael.friedrich@icinga.com>
Fri, 4 Jan 2019 14:29:25 +0000 (15:29 +0100)
committerMichael Friedrich <michael.friedrich@icinga.com>
Tue, 2 Apr 2019 15:05:48 +0000 (17:05 +0200)
commit7ca8c3ec2f5b5c7c65e2c8d11b01c2f5d99af955
tree4363fdb4907e004b94e336f6fc6ba59e74f075c0
parent58ae29acaccf3427800164cb192e0c04de6e27b8
Impersonate as Icinga user, not root

This requires write permissions for

- etc/features-*
- etc/*.conf
- var/{lib,cache}/icinga2/*

Typically permissions are handled by prepare-dirs,
or the respective CLI commands are run as root either way.

fixes #4947
lib/cli/apisetupcommand.cpp
lib/cli/featuredisablecommand.cpp
lib/cli/featureenablecommand.cpp
lib/cli/nodesetupcommand.cpp
lib/cli/nodewizardcommand.cpp