When the same snap is sideloaded two times the security profile stops working:
``` $ sudo snap install youtube-dl_2016.03.27_amd64.snap [\] Setup snap "youtube-dl" security profiles $ youtube-dl.run WARNING: Assuming --restrict-filenames since file system encoding cannot encode all characters. Set the LC_ALL environment variable to fix this. Usage: youtube-dl [OPTIONS] URL [URL...]
youtube-dl: error: You must provide at least one URL. Type youtube-dl --help to see a list of all options.
$ sudo snap install youtube-dl_2016.03.27_amd64.snap [-] Copy snap "youtube-dl" data $ youtube-dl.run /bin/sh: 0: Can't open /snap/youtube-dl/100002/command-run.wrapper
$ dmesg|tail -n1 [13348.347319] audit: type=1400 audit(1461143833.011:132): apparmor="DENIED" operation="open" profile="snap.youtube-dl.run" name="/snap/youtube-dl/100002/command-run.wrapper" pid=28849 comm="command-run.wra" requested_mask="r" denied_mask="r" fsuid=1000 ouid=0
$ grep SNAP_REVISION}= /var/lib/snapd/apparmor/profiles/snap.youtube-dl.run @{SNAP_REVISION}="100001" ```
When the same snap is sideloaded two times the security profile stops working:
``` dl_2016. 03.27_amd64. snap filenames since file system encoding cannot encode all characters. Set the LC_ALL environment variable to fix this.
$ sudo snap install youtube-
[\] Setup snap "youtube-dl" security profiles
$ youtube-dl.run
WARNING: Assuming --restrict-
Usage: youtube-dl [OPTIONS] URL [URL...]
youtube-dl: error: You must provide at least one URL.
Type youtube-dl --help to see a list of all options.
$ sudo snap install youtube- dl_2016. 03.27_amd64. snap dl/100002/ command- run.wrapper
[-] Copy snap "youtube-dl" data
$ youtube-dl.run
/bin/sh: 0: Can't open /snap/youtube-
$ dmesg|tail -n1 3.011:132) : apparmor="DENIED" operation="open" profile= "snap.youtube- dl.run" name="/ snap/youtube- dl/100002/ command- run.wrapper" pid=28849 comm="command- run.wra" requested_mask="r" denied_mask="r" fsuid=1000 ouid=0
[13348.347319] audit: type=1400 audit(146114383
$ grep SNAP_REVISION}= /var/lib/ snapd/apparmor/ profiles/ snap.youtube- dl.run REVISION} ="100001"
@{SNAP_
```