mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-31 22:25:38 -04:00
module-access: handle -EACCES as non-flatpak
If we can't access the root filesystem, grant access to the app. This should not happen but for now it is a workaround for selinux where we can't access the gnome-shell root when it connects for screen sharing.
This commit is contained in:
parent
1f03d26e53
commit
4169d9196d
1 changed files with 2 additions and 0 deletions
|
|
@ -164,6 +164,8 @@ context_check_access(void *data, struct pw_impl_client *client)
|
|||
if (res < 0) {
|
||||
pw_log_warn("module %p: client %p sandbox check failed: %s",
|
||||
impl, client, spa_strerror(res));
|
||||
if (res == -EACCES)
|
||||
goto granted;
|
||||
}
|
||||
else if (res > 0) {
|
||||
pw_log_debug("module %p: sandboxed client %p added", impl, client);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue