On 14/09/2016 05:15, Sergio Schvezov wrote:
> 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
>
>

Hi Robru and welcome to snaps!

- The Interfaces reference
<http://snapcraft.io/docs/reference/interfaces> on snapcraft.io will
give you the complete list of what's available in xenial-update's snapd.

- If you are building the latest snapd or using a daily version: the
reference is on GitHub
https://github.com/snapcore/snapd/blob/master/docs/interfaces.md

Cheers,

David

-- 
Snapcraft mailing list
Snapcraft@lists.snapcraft.io
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/snapcraft

Reply via email to