title: AppImage and CAP_SYS_BOOT using setcap: ./app.AppImage differs in [pe]
body: <p>I am trying to grant reboot capability to my appimage using <code>setcap</code>. Using following command on a simple application (all it does is to reboot the machine) works, however it does not work with my actual app's appimage.</p>
  <p>Both applications essentially do the same thing for rebooting:</p>
  <pre><code>sync();
  if(reboot(RB_AUTOBOOT) == -1) {
      // handle errno
  }
  </code></pre>
  <p>(In case you want to try the code, include &lt;unistd.h&gt; and &lt;sys/reboot.h&gt;)</p>
  <p>Output with minimal test app:</p>
  <pre><code>sudo setcap -v cap_sys_boot+ep ./main
  ./main: OK
  </code></pre>
  <p>Output with appimage:</p>
  <pre><code>sudo setcap -v cap_sys_boot+ep ./app.AppImage
  ./app.AppImage differs in [pe]
  </code></pre>
  <p>Any idea what can I do?</p>