<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">On 14/09/2016 05:15, Sergio Schvezov
wrote:<br>
</div>
<blockquote
cite="mid:21b3c556-0edd-678f-1d37-69bd43a67f4c@canonical.com"
type="cite">El 14/09/16 a las 00:08, Robert Park escribió:
<br>
<br>
<blockquote type="cite">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>
</blockquote>
<br>
You can run as root (just use `sudo`), maybe just use `--devmode`
initially to get started.
<br>
<br>
<blockquote type="cite">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>
</blockquote>
<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 class="moz-txt-link-freetext" href="https://github.com/snapcore/snapd/tree/master/interfaces/builtin">https://github.com/snapcore/snapd/tree/master/interfaces/builtin</a>
<br>
<br>
<br>
</blockquote>
<p><br>
</p>
<p>Hi Robru and welcome to snaps!<br>
</p>
<p>- The <a href="http://snapcraft.io/docs/reference/interfaces">Interfaces
reference</a> on snapcraft.io will give you the complete list of
what's available in xenial-update's snapd.</p>
<p>- If you are building the latest snapd or using a daily version:
the reference is on GitHub
<a class="moz-txt-link-freetext" href="https://github.com/snapcore/snapd/blob/master/docs/interfaces.md">https://github.com/snapcore/snapd/blob/master/docs/interfaces.md</a></p>
<p>Cheers,</p>
<p>David<br>
</p>
</body>
</html>