server.c: block privileged protocols for sandboxed clients - #2398
Conversation
2696581 to
a946125
Compare
|
I'm a bit confused with |
No, that was more for being able to comprehend the accept list in code, I could throw them all into one array instead if preferred. In the longer term I think we should allow users to define the interface names themselves which then get allowed or blocked based on security-context engine, app_id and instance + have a default list in case its not configured by the user. When we get to implement user defined block lists I think we still need some kind of profiles though to keep the user configs maintainable. Maybe roughly something along the lines of #1004 (comment) just with new selectors rather than socket names, based on the security-context protocol. |
|
OK. I read through #1004 and I support basic ideas suggested there. But I still wonder why |
Yep, it is. For sandboxes we really don't want to accidentally expose a privileged protocol, thus allowing everything on an accept list and rejecting everything else. I am open to improve the PR though if there are specific things that should be changed. |
|
LGTM. Not tested. |
|
LGTM. I've checked all the globals we're exposing are listed. |
In the longer term we want this to be user-configurable (and also depend on the sandbox engine, app_id and instance). But dropping privileged protocols for sandboxed clients in the meantime seems like a sensible thing to do and matches user expectations. Related: labwc#2392
a946125 to
267d05a
Compare
In the longer term we want this to be user-configurable (and also depend on the sandbox engine, app_id and instance).
But dropping privileged protocols for sandboxed clients in the meantime seems like a sensible thing to do and matches user expectations.
Related: #2392
I think we should add this before 0.8.2.
When we implement a user config for this we can also move the new functions into its own file, they feel a bit hacked onto
server.cwith this PR.Can be tested with https://gitlab.freedesktop.org/wlroots/wlr-clients/-/merge_requests/6