WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
212524
[GTK] Bubblewrap sandbox lacks support for sndio
https://bugs.webkit.org/show_bug.cgi?id=212524
Summary
[GTK] Bubblewrap sandbox lacks support for sndio
Haelwenn (lanodan) Monnier
Reported
2020-05-29 07:50:47 PDT
Loosely related to
https://bugs.webkit.org/show_bug.cgi?id=210101
(I'm using sndio as a workaround to this alsa bug)
Attachments
Patch
(2.29 KB, patch)
2020-05-29 07:53 PDT
,
Haelwenn (lanodan) Monnier
no flags
Details
Formatted Diff
Diff
Patch
(2.38 KB, patch)
2020-05-30 06:37 PDT
,
Haelwenn (lanodan) Monnier
no flags
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Haelwenn (lanodan) Monnier
Comment 1
2020-05-29 07:53:55 PDT
Created
attachment 400580
[details]
Patch
Carlos Alberto Lopez Perez
Comment 2
2020-05-29 07:59:32 PDT
Comment on
attachment 400580
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=400580&action=review
> Source/WebKit/ChangeLog:4 > + BubblewrapLauncher.cpp: Add paths required for sndio > +
You have to add the bug number here. Check how other Changelog entries are written.
> Source/WebKit/ChangeLog:11 > + No new tests (OOPS!).
You have to remove this line and change it by something like "Covered by existing tests"
Haelwenn (lanodan) Monnier
Comment 3
2020-05-29 09:27:40 PDT
(In reply to Carlos Alberto Lopez Perez from
comment #2
)
> Comment on
attachment 400580
[details]
> Patch > > View in context: >
https://bugs.webkit.org/attachment.cgi?id=400580&action=review
> > Source/WebKit/ChangeLog:11 > > + No new tests (OOPS!). > > You have to remove this line and change it by something like "Covered by > existing tests"
Well there *is* no tests for sndio into the webkit bubblewrap sandbox so I'm not really sure what to write there.
Adrian Perez
Comment 4
2020-05-29 09:48:11 PDT
Comment on
attachment 400580
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=400580&action=review
> Source/WebKit/UIProcess/Launcher/glib/BubblewrapLauncher.cpp:386 > + bindIfExists(args, "/tmp/sndio", BindFlags::ReadWrite);
Does the patch work without this bind mount? I think it should be enought to bind the per-user directory (as done in the next two lines). I tried to run “sndiod” in my system and there is only a “/tmp/sndio-1000” directory (my user UID here is 1000), but no “/tmp/sndio” directory.
Carlos Alberto Lopez Perez
Comment 5
2020-05-29 10:21:04 PDT
(In reply to Haelwenn (lanodan) Monnier from
comment #3
)
> (In reply to Carlos Alberto Lopez Perez from
comment #2
) > > Comment on
attachment 400580
[details]
> > Patch > > > > View in context: > >
https://bugs.webkit.org/attachment.cgi?id=400580&action=review
> > > Source/WebKit/ChangeLog:11 > > > + No new tests (OOPS!). > > > > You have to remove this line and change it by something like "Covered by > > existing tests" > > Well there *is* no tests for sndio into the webkit bubblewrap sandbox so I'm > not really sure what to write there.
I know, but you have to remove that line "No new tests (OOPS!)." to make our tooling happy. So saying something along with what I suggested is good enough. You can also say something like "Feature has been manually tested, there is currently not automatic tests for it"
Haelwenn (lanodan) Monnier
Comment 6
2020-05-30 06:25:17 PDT
(In reply to Adrian Perez from
comment #4
)
> Comment on
attachment 400580
[details]
> Patch > > View in context: >
https://bugs.webkit.org/attachment.cgi?id=400580&action=review
> > > Source/WebKit/UIProcess/Launcher/glib/BubblewrapLauncher.cpp:386 > > + bindIfExists(args, "/tmp/sndio", BindFlags::ReadWrite); > > Does the patch work without this bind mount? I think it should be enought to > bind the per-user directory (as done in the next two lines). I tried to run > “sndiod” in my system and there is only a “/tmp/sndio-1000” directory (my > user UID here is 1000), but no “/tmp/sndio” directory.
Yes, the "/tmp/sndio" is needed when sndio is launched as superuser (which then drops to an unprivileged user like "sndiod"), this allows to share it between multiple users.
Haelwenn (lanodan) Monnier
Comment 7
2020-05-30 06:37:28 PDT
Created
attachment 400667
[details]
Patch
Adrian Perez
Comment 8
2020-05-30 11:48:55 PDT
(In reply to Haelwenn (lanodan) Monnier from
comment #6
)
> (In reply to Adrian Perez from
comment #4
) > > Comment on
attachment 400580
[details]
> > Patch > > > > View in context: > >
https://bugs.webkit.org/attachment.cgi?id=400580&action=review
> > > > > Source/WebKit/UIProcess/Launcher/glib/BubblewrapLauncher.cpp:386 > > > + bindIfExists(args, "/tmp/sndio", BindFlags::ReadWrite); > > > > Does the patch work without this bind mount? I think it should be enought to > > bind the per-user directory (as done in the next two lines). I tried to run > > “sndiod” in my system and there is only a “/tmp/sndio-1000” directory (my > > user UID here is 1000), but no “/tmp/sndio” directory. > > Yes, the "/tmp/sndio" is needed when sndio is launched as superuser (which > then drops to an unprivileged user like "sndiod"), this allows to share it > between multiple users.
Ah, good to know, thanks for commenting about this :)
Haelwenn (lanodan) Monnier
Comment 9
2020-07-05 22:57:21 PDT
Any updates on merging it?
Adrian Perez
Comment 10
2020-07-06 05:07:29 PDT
Comment on
attachment 400667
[details]
Patch Let's land this, patch LGTM now. Thanks for working on the patch!
EWS
Comment 11
2020-07-06 05:13:12 PDT
Committed
r263966
: <
https://trac.webkit.org/changeset/263966
> All reviewed patches have been landed. Closing bug and clearing flags on
attachment 400667
[details]
.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug