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 15:04:51 +0200
commit515c3cb6b306fc885dea3b28668ae77cdb254d1a (patch)
tree651ad0d5c502fc69f33393e2bfe84999697f7d10 /debian/network-manager.postinst
parent818a190f256f7b4c6a11943296574d1eef7fd172 (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 674fac34..7f0589da 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/^/- /'`