mirror of
https://github.com/adulau/aha.git
synced 2024-12-26 10:46:11 +00:00
driver core: allow non-root users to listen to uevents
Users can read sysfs files, there is no reason they should not be allowed to listen to uevents. This lets xorg and other userspace programs properly get these messages without having to be root. Signed-off-by: Kay Sievers <kay.sievers@vrfy.org> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
parent
5247aecfe6
commit
d094cbe998
1 changed files with 1 additions and 1 deletions
|
@ -328,7 +328,7 @@ static int __init kobject_uevent_init(void)
|
|||
"kobject_uevent: unable to create netlink socket!\n");
|
||||
return -ENODEV;
|
||||
}
|
||||
|
||||
netlink_set_nonroot(NETLINK_KOBJECT_UEVENT, NL_NONROOT_RECV);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue