diff options
author | David Tardon <dtardon@redhat.com> | 2020-09-10 15:50:15 +0200 |
---|---|---|
committer | David Tardon <dtardon@redhat.com> | 2020-10-14 19:31:30 +0200 |
commit | 3b57baff7ec25e21e50311a4098d0b97f583408a (patch) | |
tree | 293b7c12dcd5c7afa3c7550e10b180f43cc018c7 | |
parent | Merge pull request #17270 from keszybz/less-secure-mode (diff) | |
download | systemd-3b57baff7ec25e21e50311a4098d0b97f583408a.tar.xz systemd-3b57baff7ec25e21e50311a4098d0b97f583408a.zip |
udev-ctrl: drop workaround for old kernel bug
It's been 7 years. That should be long enough :-)
This reverts commit b97caef538ae37bd2dc04fc15b448c12a2c9422b.
-rw-r--r-- | src/udev/udev-ctrl.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/src/udev/udev-ctrl.c b/src/udev/udev-ctrl.c index 9deb3864b5..8401691659 100644 --- a/src/udev/udev-ctrl.c +++ b/src/udev/udev-ctrl.c @@ -58,7 +58,6 @@ struct udev_ctrl { int udev_ctrl_new_from_fd(struct udev_ctrl **ret, int fd) { _cleanup_close_ int sock = -1; struct udev_ctrl *uctrl; - int r; assert(ret); @@ -79,14 +78,6 @@ int udev_ctrl_new_from_fd(struct udev_ctrl **ret, int fd) { .bound = fd >= 0, }; - /* - * 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_int(uctrl->sock, SOL_SOCKET, SO_PASSCRED, true); - if (r < 0) - log_warning_errno(r, "Failed to set SO_PASSCRED: %m"); - uctrl->saddr.un = (struct sockaddr_un) { .sun_family = AF_UNIX, .sun_path = "/run/udev/control", |