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:
parent
7d5ccc0810
commit
733f070ddd
2
udevd.c
2
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) {
|
||||
|
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user