eis: our socket lockfile doesn't need group permissions

Assisted-by: Claude:claude-opus-4-6
Part-of: <https://gitlab.freedesktop.org/libinput/libei/-/merge_requests/388>
This commit is contained in:
Peter Hutterer 2026-04-17 15:42:47 +10:00 committed by Marge Bot
parent c436bd37ec
commit 2b9b001db9

View file

@ -147,7 +147,7 @@ eis_setup_backend_socket(struct eis *eis, const char *socketpath)
* socket file. */
_cleanup_free_ char *lockfile = xaprintf("%s.lock", path);
_cleanup_close_ int lockfd =
open(lockfile, O_CREAT | O_CLOEXEC | O_RDWR, S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP);
open(lockfile, O_CREAT | O_CLOEXEC | O_RDWR, S_IRUSR | S_IWUSR);
int rc = flock(lockfd, LOCK_EX | LOCK_NB);
if (rc < 0) {
log_error(eis, "Failed to create lockfile %s, is another EIS running?", lockfile);