<div dir="auto">It seems to me this is something worth a portal, for apps like the Arduino IDE and other apps that need to talk to the serial port. Whats the process to propose and submit an implementation? </div><br><div class="gmail_quote"><div dir="ltr">El dom., 1 jul. 2018 14:06, Alec Leamas <<a href="mailto:leamas.alec@gmail.com">leamas.alec@gmail.com</a>> escribió:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
<br>
On 01/07/18 14:43, Ryan Gonzalez wrote:<br>
<br>
> On July 1, 2018 3:07:51 AM Alec Leamas <<a href="mailto:leamas.alec@gmail.com" target="_blank" rel="noreferrer">leamas.alec@gmail.com</a>> wrote:<br>
<br>
>> I'm trying to package opencpn, a navigation program requiring access to<br>
>> serial data, typically on a device like /dev/ttyS0 or /dev/ttyUSB0.<br>
>><br>
>> In traditional rpm packaging, access to these devices is handled using<br>
>> the group permissions. The devices are typically 660 and owned by<br>
>> root:dialout. Adding dialout to the running user's secondary groups<br>
>> gives her r/w access to the device without too much fuzz.<br>
>><br>
>> Howwever, my too small brain cannot understand how to handle this is in<br>
>> a flatpak package. The device ownership in the sandbox is<br>
>> nfsnobody:nfsnobody, so the sandbox user cannot access it, permissions<br>
>> being 660.<br>
>><br>
>> The brute force method would be to add a udev rule changing permissions<br>
>> and/or ownership of the device. But, before making this somewhat drastic<br>
>> step: Is there any other way to give the sandbox user r/w permissions to<br>
>> the devices involved?<br>
<br>
> Try passing --device=all in finish-args:<br>
> <a href="http://docs.flatpak.org/en/latest/sandbox-permissions.html#device-access" rel="noreferrer noreferrer" target="_blank">http://docs.flatpak.org/en/latest/sandbox-permissions.html#device-access</a><br>
<br>
<br>
yes.. already done that. The devices are visible, but unusable due to<br>
the nfsnobody:nfsnobody ownership and 660 permissions in the sandbox.<br>
<br>
Cheers!<br>
<br>
--alec<br>
_______________________________________________<br>
Flatpak mailing list<br>
<a href="mailto:Flatpak@lists.freedesktop.org" target="_blank" rel="noreferrer">Flatpak@lists.freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/flatpak" rel="noreferrer noreferrer" target="_blank">https://lists.freedesktop.org/mailman/listinfo/flatpak</a><br>
</blockquote></div>