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>
This commit is contained in:
parent
859d453ac5
commit
f85109b59d
1 changed files with 3 additions and 0 deletions
|
@ -291,6 +291,8 @@ int wil6210_sysfs_init(struct wil6210_priv *wil)
|
|||
return err;
|
||||
}
|
||||
|
||||
kobject_uevent(&dev->kobj, KOBJ_CHANGE);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
@ -299,4 +301,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);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue