summaryrefslogtreecommitdiff
path: root/src/udev/udev-ctrl.c
diff options
context:
space:
mode:
authorKay Sievers <kay@vrfy.org>2015-08-27 12:57:17 +0200
committerKay Sievers <kay@vrfy.org>2015-08-27 12:57:17 +0200
commit25568304d2cbe95720a336acfee2c7bc0e945a35 (patch)
tree64b03587fc1e4b63a92f4171eb08cd3d0a5a71a8 /src/udev/udev-ctrl.c
parentfd5a461316d34d3070d599f4be74bd8ae4b3d00f (diff)
udev: control - add FIXME comment to remove work-around
Diffstat (limited to 'src/udev/udev-ctrl.c')
-rw-r--r--src/udev/udev-ctrl.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/udev/udev-ctrl.c b/src/udev/udev-ctrl.c
index b4ae0944eb..ead7c92b27 100644
--- a/src/udev/udev-ctrl.c
+++ b/src/udev/udev-ctrl.c
@@ -92,6 +92,11 @@ struct udev_ctrl *udev_ctrl_new_from_fd(struct udev *udev, int fd) {
uctrl->bound = true;
uctrl->sock = fd;
}
+
+ /*
+ * FIXME: remove it as soon as we can depend on this:
+ * http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=90c6bd34f884cd9cee21f1d152baf6c18bcac949
+ */
r = setsockopt(uctrl->sock, SOL_SOCKET, SO_PASSCRED, &on, sizeof(on));
if (r < 0)
log_warning_errno(errno, "could not set SO_PASSCRED: %m");