Skip to content

Commit

Permalink
interfaces: builtin: Allow writing DHCP lease files to /run/NetworkMa…
Browse files Browse the repository at this point in the history
…nager/dhcp (#2049)

* Allow writing DHCP lease files to /run/NetworkManager/dhcp

This is needed to allow console-conf to properly detect that an
interface is configured with DHCP in certain cases where the
NetworkManager snap is installed and running on a device before
console-conf is run.

* directories need a trailing slash

* Actually allow writing files inside that directory

* Fix comment to better convey intent
  • Loading branch information
ssweeny authored and jdstrand committed Sep 30, 2016
1 parent 1e0403c commit 535bbeb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions interfaces/builtin/network_manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,9 @@ network packet,
# from netplan
/run/NetworkManager/{,**} r,
# Allow writing dhcp files to a well-known system location
/run/NetworkManager/dhcp/{,**} w,
# Needed by the ifupdown plugin to check which interfaces can
# be managed an which not.
/etc/network/interfaces r,
Expand Down

0 comments on commit 535bbeb

Please sign in to comment.