First time snapcraft user having issues

Sergio Schvezov sergio.schvezov at canonical.com
Wed Sep 14 03:15:21 UTC 2016


El 14/09/16 a las 00:08, Robert Park escribió:

> Hi all,
>
> So I want to snap up a script that needs root and does administrative
> stuff on the host system. I realize this goes against snaps' goals of
> being all secure and confined, is there any way I can list a plug in
> my 'plugs:' that would give me root on the users computer, perhaps
> giving the user a giant warning that they're installing something that
> can break their system? Basically I don't want any confinement in my
> snap at all.

You can run as root (just use `sudo`), maybe just use `--devmode` 
initially to get started.

> Also, is there a way to get a list of possible plugs? The
> documentation only hints that network and network-bind exist, I found
> some others by googling other people's snapcraft.yamls, but there
> doesn't seem to be a way to query what the valid set of possible plugs
> are (yeah, I suppose you could put anything in there, but I mean I
> need to query what sockets exist that would make sense to put as my
> plugs).

Running `snap interfaces` on a system with snapd installed will give you 
a nice list; the only other way I know is to look at 
https://github.com/snapcore/snapd/tree/master/interfaces/builtin





More information about the Snapcraft mailing list