mirror of
https://github.com/systemd/systemd.git
synced 2025-01-25 10:04:04 +03:00
udev-ctrl: drop workaround for old kernel bug
It's been 7 years. That should be long enough :-) This reverts commit b97caef538ae37bd2dc04fc15b448c12a2c9422b.
This commit is contained in:
parent
84fc961082
commit
3b57baff7e
@ -58,7 +58,6 @@ struct udev_ctrl {
|
|||||||
int udev_ctrl_new_from_fd(struct udev_ctrl **ret, int fd) {
|
int udev_ctrl_new_from_fd(struct udev_ctrl **ret, int fd) {
|
||||||
_cleanup_close_ int sock = -1;
|
_cleanup_close_ int sock = -1;
|
||||||
struct udev_ctrl *uctrl;
|
struct udev_ctrl *uctrl;
|
||||||
int r;
|
|
||||||
|
|
||||||
assert(ret);
|
assert(ret);
|
||||||
|
|
||||||
@ -79,14 +78,6 @@ int udev_ctrl_new_from_fd(struct udev_ctrl **ret, int fd) {
|
|||||||
.bound = fd >= 0,
|
.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) {
|
uctrl->saddr.un = (struct sockaddr_un) {
|
||||||
.sun_family = AF_UNIX,
|
.sun_family = AF_UNIX,
|
||||||
.sun_path = "/run/udev/control",
|
.sun_path = "/run/udev/control",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user