about summary refs log tree commit diff
path: root/debian/network-manager.postinst
diff options
context:
space:
mode:
authorMichael Biebl <biebl@debian.org>2019-10-04 00:23:38 +0200
committerMichael Biebl <biebl@debian.org>2019-10-04 00:25:45 +0200
commit6917e28d2d16138d6d497dc96efafe573b4b0979 (patch)
treefd6c77f1b8d083ba2c3d5d30d4712d8086ced123 /debian/network-manager.postinst
parent803475e5f6a684308a9bbff97b1567ab04f7c8b1 (diff)
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.
Diffstat (limited to 'debian/network-manager.postinst')
-rw-r--r--debian/network-manager.postinst3
1 files changed, 3 insertions, 0 deletions
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/^/- /'`