<div dir="ltr"><div><div><div><div>My snap now runs unconfined and I would like to make it confined. I am sitting on top of a huge software stack (entire OpenCV and its dependencies) and access problems start to come up.<br><br></div>First question: I need to grant access to a privileged file.<br>IOError: [Errno 13] Permission denied: '/etc/matplotlibrc'<br><br></div>How do I do this?<br><br></div>Regards,<br></div>Gabor<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Oct 30, 2015 at 8:17 PM, Jamie Strandboge <span dir="ltr"><<a href="mailto:jamie@canonical.com" target="_blank">jamie@canonical.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On 10/30/2015 02:08 PM, Gábor Paller wrote:<br>
> "On 15.04 you have two options, either use hw-assign (which is aimed at<br>
> developers) or use oem assign"<br>
><br>
> So is that "hw-assign" necessary after every installation? I suspect it is as<br>
> the access to the ttyO1 device is not present in the apparmor file so whenever<br>
> the package is reinstalled, the permission has to be granted again. Am I right?<br>
><br>
</span>I answered this in a followup email: "When using hw-assign, you will need to run<br>
<span class="">hw-assign after the first install of the snap on a device. You do not have to<br>
run it again after upgrading the snap that the device has been assigned to."<br>
<br>
</span><span class="">> Also, what is the "caps" in the package.yaml that gives me access to the /dev/ttyO1?<br>
><br>
</span>caps is not used to grant access to devices.<br>
<div class="HOEnZb"><div class="h5"><br>
--<br>
Jamie Strandboge                 <a href="http://www.ubuntu.com/" rel="noreferrer" target="_blank">http://www.ubuntu.com/</a><br>
<br>
</div></div></blockquote></div><br></div>