<div dir="ltr">On Tue, Nov 26, 2019 at 8:29 PM Winnie Poon <<a href="mailto:winniepoon_home@hotmail.com">winniepoon_home@hotmail.com</a>> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">




<div dir="ltr">
<div>
<div id="gmail-m_7380265818699827710appendonsend" style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
Hi all,</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
that would be sad news <span id="gmail-m_7380265818699827710🙁">🙁</span>  I remember a while ago when I asked in this mailing list about usb drive access, a few developers including Alex suggested the device portal, that's why I looked into that, but now it seems like --device=all is
 the ONLY option?</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
So really my approach of using file chooser to grant permission to the right file e.g. /dev/bus/usb/001/010 would not go anywhere?  like even after if i can somehow solve the root owner issue?</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
I'm really hoping to have a better solution than using --device=all. <span id="gmail-m_7380265818699827710🙁">
🙁</span><br>
</div></div></div></blockquote></div><div><br></div><div>Yeah, this is a bit unfortunate. However, /dev access is something that is set up at sandbox setup time (i.e. app startup) and thus it has to be static. I.e. we can't change these after the fact, and that would be needed for usb which is highly dynamic.</div><div><br></div><div>The file chooser portal works by using a fuse filesystem that protects access to the files, but we can't use fuse for something like a device node, so this can't be done.</div><div><br></div><div>We don't have any generic portal that works for all usb devices, we're instead trying to abstract thing out on a higher per-device-type level. I.e. webcams via pipewire, joysticks via wayland, etc. <br></div><div><br></div><div>However, for block devices we can't just pass things back as there are no way to do this safely, and in practice it will not work anyway because all block devices are typically only readable by root.<br></div><div><br></div><div><br></div></div>