From 6917e28d2d16138d6d497dc96efafe573b4b0979 Mon Sep 17 00:00:00 2001 From: Michael Biebl Date: Fri, 4 Oct 2019 00:23:38 +0200 Subject: Install directories as created by upstream build system Drop network-manager.dirs and instead use the directories created by the upstream build system. Fix permissions of /var/lib/NetworkManager to be 0700 as it contains possibly sensitive data and should not be world-readable. --- debian/network-manager.postinst | 3 +++ 1 file changed, 3 insertions(+) (limited to 'debian/network-manager.postinst') diff --git a/debian/network-manager.postinst b/debian/network-manager.postinst index 0f95087f..ee139d90 100644 --- a/debian/network-manager.postinst +++ b/debian/network-manager.postinst @@ -24,6 +24,9 @@ case "$1" in # org.freedesktop.NetworkManager.settings.modify.system without prior authentication addgroup --quiet --system netdev + # This directory can contain sensitive data and should not be world-readable + chmod 0700 /var/lib/NetworkManager + NIF=/etc/network/interfaces if [ -z "$2" ] && [ -f $NIF ]; then ifaces=`grep -v '^#' $NIF | awk '/iface/ {print $2}' | sort -u | sed -e 's/lo//' -e '/^$/d' -e 's/^/- /'` -- cgit 1.3.0-6-gf8a5