wil6210: send uevent when creating sysfs files

Send a KOBJ_CHANGE uevent when creating the wil6210 sysfs directory.
This is mainly needed so selinux policy rules will be applied when
the wil6210 module is dynamically loaded.

Change-Id: I4220c551b8792d419db7a380b16f3c87204be22a
Signed-off-by: Lior David <liord@codeaurora.org>
Signed-off-by: Alexei Avshalom Lazar <ailizaro@codeaurora.org>
This commit is contained in:
Lior David 2017-11-13 09:56:11 +02:00 • committed by Alexei Avshalom Lazar
commit cf3b97fa9b

View file

@ -276,6 +276,8 @@ int wil6210_sysfs_init(struct wil6210_priv *wil)
return err;
}
kobject_uevent(&dev->kobj, KOBJ_CHANGE);
return 0;
}
@ -284,4 +286,5 @@ void wil6210_sysfs_remove(struct wil6210_priv *wil)
struct device *dev = wil_to_dev(wil);
sysfs_remove_group(&dev->kobj, &wil6210_attribute_group);
kobject_uevent(&dev->kobj, KOBJ_CHANGE);
}