<div dir="ltr"><div><div><div><div>Thanks David. Did you forget to add Morphis and Zyga? :)<br></div>Loop Simon.<br></div>Simon told me here is the latest bluez snap, <a href="https://code.launchpad.net/%7Esnappy-hwe-team/snappy-hwe-snaps/+git/bluez">https://code.launchpad.net/~snappy-hwe-team/snappy-hwe-snaps/+git/bluez</a><br></div>Simon told me that bluez snap only declares bluez slot in its snapcraft.yaml.<br><br>IMHO, after the bluez snap declares "bluez" slot in snapcraft.yaml, it will have <b><span class="gmail-m_-2302418151930720499gmail-pl-smi">bluezPermanentSlotAppArmor</span></b> capability defined in<br><a href="https://github.com/snapcore/snapd/blob/master/interfaces/builtin/bluez.go#L28" target="_blank">https://github.com/snapcore/<wbr>snapd/blob/master/interfaces/<wbr>builtin/bluez.go#L28</a><br>So it seems to me by defining "bluez" slot, the bluez snap have more power/permissions to do some privileged work,<br><b>but</b> it doesn't <b>provide</b> anything to other snaps. From my experiment, if a new snap connects to the bluez slot in bluez snap, the new snap will not get the extra permissions.<br><br></div>Thanks again.<br><br><div><div><div class="gmail_extra">Br<br></div><div class="gmail_extra">Enwei<br></div><div class="gmail_extra"><div class="gmail_quote">On Thu, Nov 10, 2016 at 1:34 AM, David Callé <span dir="ltr"><<a href="mailto:davidc@framli.eu" target="_blank">davidc@framli.eu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
  
    
  
  <div><span>
    <div class="gmail-m_7906746271791241518m_-2383544822935554560moz-cite-prefix">On 09/11/2016 10:47, Enwei Zhang wrote:<br>
    </div>
    <blockquote type="cite">
      <div dir="ltr">
        <div>
          <div>
            <div>
              <div>
                <div>
                  <div>Hello,<br>
                  </div>
                  For now, all slots are provided by ubuntu-core. I saw
                  the concept of App-provided slots from<br>
                  <a href="https://github.com/snapcore/snapd/blob/master/interfaces/builtin/basedeclaration.go#L72" target="_blank">https://github.com/snapcore/sn<wbr>apd/blob/master/interfaces/bui<wbr>ltin/basedeclaration.go#L72</a><br>
                </div>
                But I didn't find any guidance/document about how to do
                that.<br>
              </div>
              Could you please help advise?<br>
            </div>
          </div>
        </div>
      </div>
    </blockquote>
    <br></span>
    I don't think we have a document for this yet, except the general
    interfaces overview that only mentions it as a possibility (
    <a class="gmail-m_7906746271791241518m_-2383544822935554560moz-txt-link-freetext" href="http://snapcraft.io/docs/core/interfaces" target="_blank">http://snapcraft.io/docs/core/<wbr>interfaces</a> ).<br>
    <br>
    As far as I know, only two snaps are providing their own slots: the
    core snap and bluez.<br>
    If it can help in the meantime, the source code I've found for the
    bluez snap is at:
    <a class="gmail-m_7906746271791241518m_-2383544822935554560moz-txt-link-freetext" href="http://bazaar.launchpad.net/%7Ebluetooth/bluez/snap-core-rolling/files" target="_blank">http://bazaar.launchpad.net/~b<wbr>luetooth/bluez/snap-core-rolli<wbr>ng/files</a><br> 
    <br></div></blockquote><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div bgcolor="#FFFFFF">
    CCing Morphis and Zyga for more information.<br>
    <br>
    Cheers,<br>
    David<span><br>
    <br>
    <blockquote type="cite">
      <div dir="ltr">
        <div>
          <div>Thanks so much.<br>
            <br>
          </div>
          Br<br>
        </div>
        Enwei<br>
      </div>
      <br>
      <fieldset class="gmail-m_7906746271791241518m_-2383544822935554560mimeAttachmentHeader"></fieldset>
      <br>
    </blockquote>
    <p><br>
    </p>
  </span></div>

<br>--<br>
Snapcraft mailing list<br>
<a href="mailto:Snapcraft@lists.snapcraft.io" target="_blank">Snapcraft@lists.snapcraft.io</a><br>
Modify settings or unsubscribe at: <a href="https://lists.ubuntu.com/mailman/listinfo/snapcraft" rel="noreferrer" target="_blank">https://lists.ubuntu.com/mailm<wbr>an/listinfo/snapcraft</a><br>
<br></blockquote></div><br></div></div></div></div>