<p dir="ltr"></p>
<p dir="ltr">On Sep 13, 2016 8:16 PM, "Sergio Schvezov" <<a href="mailto:sergio.schvezov@canonical.com">sergio.schvezov@canonical.com</a>> wrote:<br>
><br>
> El 14/09/16 a las 00:08, Robert Park escribió:<br>
><br>
><br>
>> Hi all,<br>
>><br>
>> So I want to snap up a script that needs root and does administrative<br>
>> stuff on the host system. I realize this goes against snaps' goals of<br>
>> being all secure and confined, is there any way I can list a plug in<br>
>> my 'plugs:' that would give me root on the users computer, perhaps<br>
>> giving the user a giant warning that they're installing something that<br>
>> can break their system? Basically I don't want any confinement in my<br>
>> snap at all.<br>
><br>
><br>
> You can run as root (just use `sudo`), maybe just use `--devmode` initially to get started.</p>
<p dir="ltr">You mean use sudo in my script? Or have the user run my script under sudo? Either way I can't seem to run apt-get. Even bundling apt in my snap doesn't work. I really need to get out of the confinement and run my script as root on the host. <br></p>
<p dir="ltr">><br>
><br>
>> Also, is there a way to get a list of possible plugs? The<br>
>> documentation only hints that network and network-bind exist, I found<br>
>> some others by googling other people's snapcraft.yamls, but there<br>
>> doesn't seem to be a way to query what the valid set of possible plugs<br>
>> are (yeah, I suppose you could put anything in there, but I mean I<br>
>> need to query what sockets exist that would make sense to put as my<br>
>> plugs).<br>
><br>
><br>
> 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 <a href="https://github.com/snapcore/snapd/tree/master/interfaces/builtin">https://github.com/snapcore/snapd/tree/master/interfaces/builtin</a></p>
<p dir="ltr">Thanks, I'll try that. </p>