1
0
mirror of https://github.com/systemd/systemd.git synced 2024-12-23 21:35:11 +03:00

switch uevent netlink socket to group 1 only

This commit is contained in:
Kay Sievers 2006-07-21 21:41:11 +02:00
parent 7d5ccc0810
commit 733f070ddd
2 changed files with 2 additions and 2 deletions

View File

@ -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) {

View File

@ -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) {