]> git.corax.cc Git - toolbox/commit
include/uipc: Adjust permissions to allow inter-user IPC
authorMatthias Kruk <m@m10k.eu>
Mon, 26 Dec 2022 05:10:04 +0000 (14:10 +0900)
committerMatthias Kruk <m@m10k.eu>
Mon, 26 Dec 2022 05:10:04 +0000 (14:10 +0900)
commit6f1d65f4adb711a03ba9acecee00ee44a09d98e7
treeb6f3c65c64543dc9cfa7bc739ba05e21ed99f9f2
parent0ead56ae2d2175c9ecad7cc5f8981c720e08e4e6
include/uipc: Adjust permissions to allow inter-user IPC

Because the sgid bit is not set on the uipc 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 uipc module and the post-install script of
the debian package so that the sgid bit is set on the uipc directory
and endpoints are created with the correct permissions for uipc
communication between users.
This commit also modifies the Makefile so that the uipc directory is
created during toolbox installation.
Makefile
debian/postinst
include/uipc.sh