NetVM: /etc/netvm 711 so operators can stat (not read) identities
This commit is contained in:
@@ -8,6 +8,8 @@ netvm_names "${1:?usage: netvm-node-up.sh <node>}"
|
||||
CONF="/etc/netvm/${NODE}.conf"
|
||||
[ -f "$CONF" ] || { echo "missing $CONF (human: netvm-new-identity.sh $NODE)"; exit 1; }
|
||||
chmod 600 "$CONF"
|
||||
# let the operator user stat (not read) identities: 711 dir, 600 files
|
||||
chmod 711 /etc/netvm 2>/dev/null || true
|
||||
nsexec() { ip netns exec "$NETNS" "$@"; }
|
||||
|
||||
ip netns add "$NETNS" 2>/dev/null || true
|
||||
|
||||
Reference in New Issue
Block a user