wakeup_stats: Don't export device info to sysfs

wakeup_source_device_create creates a symlink to the directory of the
device associated with the wakelock. Not only is this unnecessary, this
also results in selinux denials and the following errors in logcat if
the directory isn't whitelisted in sepolicy:

"Error opening kernel wakelock stats for:
 wakeup[n]: Permission denied"

Stop creating the symlink to silence the errors as it's useless anyway.

Signed-off-by: Kazuki Hashimoto <kaz205@tuta.io>
Signed-off-by: K A R T H I K <karthik.lal558@gmail.com>
Signed-off-by: azrim <mirzaspc@gmail.com>
This commit is contained in:
Kazuki Hashimoto 2021-05-11 22:05:16 +05:30 committed by azrim
parent 415363aa10
commit 23ab36fd8a
No known key found for this signature in database
GPG Key ID: 497F8FB059B45D1C

View File

@ -145,7 +145,6 @@ static struct device *wakeup_source_device_create(struct device *parent,
device_initialize(dev);
dev->devt = MKDEV(0, 0);
dev->class = wakeup_class;
dev->parent = parent;
dev->groups = wakeup_source_groups;
dev->release = device_create_release;
dev_set_drvdata(dev, ws);