Lockdown /bin/ip permissions for the monasca-agent
This patch adds addtional arguments to the sudoers entry for the /bin/ip command. It restricts access to only 'ip netns exec'. Change-Id: Ie80c8fbdc851cbace8c82f8c47f490898f5c4d6e
This commit is contained in:
parent
f7a92f5b58
commit
c8ca10e6a9
@ -1,4 +1,4 @@
|
||||
# Needed for monasca_agent.collector.checks_d.swift_diags
|
||||
monasca-agent ALL = (root) NOPASSWD:/usr/local/bin/diagnostics,/usr/local/bin/swift-checker,/bin/ip,/usr/bin/ovs-vsctl
|
||||
monasca-agent ALL = (root) NOPASSWD:/usr/local/bin/diagnostics,/usr/local/bin/swift-checker,/bin/ip netns exec qrouter-[! ][! ][! ][! ][! ][! ][! ][! ]-[! ][! ][! ][! ]-[! ][! ][! ][! ]-[! ][! ][! ][! ]-[! ][! ][! ][! ][! ][! ][! ][! ][! ][! ][! ][! ] /bin/ping *,/usr/bin/ovs-vsctl
|
||||
# Needed for monasca_agent.collector.checks_d.postfix
|
||||
monasca-agent ALL = (root) NOPASSWD:NOEXEC:/usr/bin/find
|
||||
|
Loading…
x
Reference in New Issue
Block a user