mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-06-05 15:08:53 +00:00
shm: Change permissions on old shm areas too
Change the permissions on old shm areas
This commit is contained in:
parent
0b99919c55
commit
de9905db03
1 changed files with 7 additions and 1 deletions
|
@ -396,8 +396,14 @@ sp_close (ShmPipe * self)
|
||||||
int
|
int
|
||||||
sp_writer_setperms_shm (ShmPipe * self, mode_t perms)
|
sp_writer_setperms_shm (ShmPipe * self, mode_t perms)
|
||||||
{
|
{
|
||||||
|
int ret = 0;
|
||||||
|
ShmArea *area;
|
||||||
|
|
||||||
self->perms = perms;
|
self->perms = perms;
|
||||||
return fchmod (self->shm_area->shm_fd, perms);
|
for (area = self->shm_area; area; area = area->next)
|
||||||
|
ret |= fchmod (area->shm_fd, perms);
|
||||||
|
|
||||||
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int
|
static int
|
||||||
|
|
Loading…
Reference in a new issue