From: Kay Sievers Date: Fri, 3 Apr 2009 17:04:15 +0000 (+0200) Subject: driver core: allow non-root users to listen to uevents X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=d094cbe998eb566d47552aa9d3c26c9123a7b858;p=linux-beck.git 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 Signed-off-by: Greg Kroah-Hartman --- diff --git a/lib/kobject_uevent.c b/lib/kobject_uevent.c index dafeecf5b143..920a3ca6e259 100644 --- a/lib/kobject_uevent.c +++ b/lib/kobject_uevent.c @@ -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; }