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:
Wim Taymans 2020-01-15 17:17:56 +01:00
parent 1f03d26e53
commit 4169d9196d

View file

@ -164,6 +164,8 @@ context_check_access(void *data, struct pw_impl_client *client)
if (res < 0) { if (res < 0) {
pw_log_warn("module %p: client %p sandbox check failed: %s", pw_log_warn("module %p: client %p sandbox check failed: %s",
impl, client, spa_strerror(res)); impl, client, spa_strerror(res));
if (res == -EACCES)
goto granted;
} }
else if (res > 0) { else if (res > 0) {
pw_log_debug("module %p: sandboxed client %p added", impl, client); pw_log_debug("module %p: sandboxed client %p added", impl, client);