summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--udevd.c2
-rw-r--r--udevmonitor.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/udevd.c b/udevd.c
index 02c4887f54..751231ee41 100644
--- a/udevd.c
+++ b/udevd.c
@@ -789,7 +789,7 @@ static int init_uevent_netlink_sock(void)
memset(&snl, 0x00, sizeof(struct sockaddr_nl));
snl.nl_family = AF_NETLINK;
snl.nl_pid = getpid();
- snl.nl_groups = 0xffffffff;
+ snl.nl_groups = 1;
uevent_netlink_sock = socket(PF_NETLINK, SOCK_DGRAM, NETLINK_KOBJECT_UEVENT);
if (uevent_netlink_sock == -1) {
diff --git a/udevmonitor.c b/udevmonitor.c
index fb1f42cc01..61901accad 100644
--- a/udevmonitor.c
+++ b/udevmonitor.c
@@ -82,7 +82,7 @@ static int init_uevent_netlink_sock(void)
memset(&snl, 0x00, sizeof(struct sockaddr_nl));
snl.nl_family = AF_NETLINK;
snl.nl_pid = getpid();
- snl.nl_groups = 0xffffffff;
+ snl.nl_groups = 1;
uevent_netlink_sock = socket(PF_NETLINK, SOCK_DGRAM, NETLINK_KOBJECT_UEVENT);
if (uevent_netlink_sock == -1) {