On 17.01.2017 17:46, Joe Coates wrote: > The 'network-manager' slot interface does not show up in my Ubuntu-core > interface list. I'm running 2.21 on a Virtualbox VM.
It's not a slot you can put on your snap or one which is provided by the core snap. It's a slot which only the network-manager snap can own and no other one and its not a one which allows arbitrary snaps to access the resolvconf configuration. For that we still need a different interface or add support for resolvconf access to the network-control interface. If you look at the code for the network-manager interface the responsible part for resolveconf is at https://github.com/snapcore/snapd/blob/master/interfaces/builtin/network_manager.go#L86 I guess it would be ok to get those bits added to the network-control interface at https://github.com/snapcore/snapd/blob/master/interfaces/builtin/network_control.go If you want you can easily submit a PR to get those bits added there. A short introduction into snapd hacking is available at https://github.com/snapcore/snapd/blob/master/HACKING.md regards, Simon > -----Original Message----- > From: snapcraft-boun...@lists.snapcraft.io > [mailto:snapcraft-boun...@lists.snapcraft.io] On Behalf Of Simon Fels > Sent: Tuesday, January 17, 2017 11:05 AM > To: snapcraft@lists.snapcraft.io > Subject: Re: DHCP and /etc/resolv.conf > > On 17.01.2017 14:18, Zygmunt Krynicki wrote: >> Quick grep tells me that no interface currently relates to >> "resolv.conf" file > > Actually you shouldn't allow access to /etc/resolv.conf but to > /run/resolvconf/ which the network-manager interface allows as the only one > so far. > > regards, > Simon > >> On Tue, Jan 17, 2017 at 12:01 AM, Joe Coates >> <jcoa...@extremenetworks.com> wrote: >>> Is there a current slot interface which allows write access to >>> /etc/resolv.conf? >>> >>> Thanks, >>> Joe Coates >>> >>> ________________________________________ >>> From: snapcraft-boun...@lists.snapcraft.io >>> <snapcraft-boun...@lists.snapcraft.io> on behalf of Mark Shuttleworth >>> <m...@ubuntu.com> >>> Sent: Monday, January 16, 2017 4:58:45 PM >>> To: Snapcraft >>> Subject: Re: DHCP and /etc/resolv.conf >>> >>> On 16/01/17 16:39, Joe Coates wrote: >>> >>> I'm snapping an app which includes a DHCP client replacement. Ultimately >>> it wants to update/replace /etc/resolv.conf. My snap is connected to >>> all the "network" interfaces available in my ubuntu-core, but none seem to >>> allow write access to this file. Shouldn't an interface like >>> "network-control" allow write access to /etc/resolv.conf ? >>> >>> I think /etc/resolv.conf is generated from a number of sources, but yes, it >>> should be possible to influence it. >>> >>> Mark >>> >>> ________________________________ >>> >>> DISCLAIMER: >>> This e-mail and any attachments to it may contain confidential and >>> proprietary material and is solely for the use of the intended recipient. >>> Any review, use, disclosure, distribution or copying of this transmittal is >>> prohibited except by or on behalf of the intended recipient. If you have >>> received this transmittal in error, please notify the sender and destroy >>> this e-mail and any attachments and all copies, whether electronic or >>> printed. >>> >>> >>> -- >>> Snapcraft mailing list >>> Snapcraft@lists.snapcraft.io >>> Modify settings or unsubscribe at: >>> https://lists.ubuntu.com/mailman/listinfo/snapcraft >> > > > -- > Snapcraft mailing list > Snapcraft@lists.snapcraft.io > Modify settings or unsubscribe at: > https://lists.ubuntu.com/mailman/listinfo/snapcraft > > > ________________________________ > > DISCLAIMER: > This e-mail and any attachments to it may contain confidential and > proprietary material and is solely for the use of the intended recipient. Any > review, use, disclosure, distribution or copying of this transmittal is > prohibited except by or on behalf of the intended recipient. If you have > received this transmittal in error, please notify the sender and destroy this > e-mail and any attachments and all copies, whether electronic or printed. > > -- Snapcraft mailing list Snapcraft@lists.snapcraft.io Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/snapcraft