]> git.corax.cc Git - toolbox/commit
include/ipc: Adjust permissions to allow inter-user IPC
authorMatthias Kruk <m@m10k.eu>
Sat, 19 Nov 2022 11:49:03 +0000 (20:49 +0900)
committerMatthias Kruk <m@m10k.eu>
Sat, 19 Nov 2022 11:49:03 +0000 (20:49 +0900)
commitc39f4e99805b3d8973911f9f7f68283313ce4b69
treec82a4dffdb9e0a596aa1121679d7b5e5b78fe1fa
parentcf045a4227241b7cca2caa940bb048243bc5e704
include/ipc: Adjust permissions to allow inter-user IPC

Because the sgid bit is not set on the IPC directory, endpoints do
not inherit the group ownership from the parent directory. Thus,
endpoints are created with a user's primary group instead of the IPC
group, making inter-user IPC communication impossible.

This commit modifies the IPC module and the post-install script of
the debian package so that the sgid bit is set on the IPC directory
and endpoints are created with the correct permissions for IPC
communication between users.
debian/postinst
include/ipc.sh