Verification-done on bionic using netplan.io 0.40.1~18.04.2:

Verified that with umask set, netplan correctly generates the files for
systemd with 644 permissions, and they are succesfully read by systemd-
networkd.

root@working-guinea:~# umask
0077
root@working-guinea:~# cd /run/systemd/system/
root@working-guinea:/run/systemd/system# ls
root@working-guinea:/run/systemd/system# cd ../network/
root@working-guinea:/run/systemd/network# ls
10-netplan-eth0.network  10-netplan-veth0.network
root@working-guinea:/run/systemd/network# ls -altr
total 8
-rw-r--r--  1 root root  78 Oct 29 20:53 10-netplan-veth0.network
-rw-r--r--  1 root root 100 Oct 29 20:53 10-netplan-eth0.network
drwxr-xr-x  2 root root  80 Oct 29 20:53 .
drwxr-xr-x 20 root root 480 Oct 29 20:53 ..
root@working-guinea:/run/systemd/network# touch toto
root@working-guinea:/run/systemd/network# ls -altr
total 8
-rw-r--r--  1 root root  78 Oct 29 20:53 10-netplan-veth0.network
-rw-r--r--  1 root root 100 Oct 29 20:53 10-netplan-eth0.network
drwxr-xr-x 20 root root 480 Oct 29 20:53 ..
-rw-------  1 root root   0 Oct 29 20:54 toto
drwxr-xr-x  2 root root 100 Oct 29 20:54 .
root@working-guinea:/run/systemd/network# netplan apply
root@working-guinea:/run/systemd/network# ls -latr
total 8
-rw-------  1 root root   0 Oct 29 20:54 toto
-rw-r--r--  1 root root  78 Oct 29 20:54 10-netplan-veth0.network
-rw-r--r--  1 root root 100 Oct 29 20:54 10-netplan-eth0.network
drwxr-xr-x  2 root root 100 Oct 29 20:54 .
drwxr-xr-x 21 root root 500 Oct 29 20:54 ..
root@working-guinea:/run/systemd/network# netplan generate
root@working-guinea:/run/systemd/network# ls -latr
total 8
-rw-------  1 root root   0 Oct 29 20:54 toto
drwxr-xr-x 21 root root 500 Oct 29 20:54 ..
-rw-r--r--  1 root root  78 Oct 29 20:54 10-netplan-veth0.network
-rw-r--r--  1 root root 100 Oct 29 20:54 10-netplan-eth0.network
drwxr-xr-x  2 root root 100 Oct 29 20:54 .


** Tags removed: verification-needed verification-needed-bionic
** Tags added: verification-done-bionic

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1736965

Title:
  "netplan apply" does not set file mode, umask 077 causes systemd-
  networkd to be unable to start

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/netplan.io/+bug/1736965/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to