aboutsummaryrefslogtreecommitdiffstats
path: root/security/selinux/hooks.c
diff options
context:
space:
mode:
authorThomas Weißschuh <[email protected]>2024-07-09 20:37:26 +0000
committerRafael J. Wysocki <[email protected]>2024-08-02 14:44:22 +0000
commitf6bae04a40f4441c62f4f8cd3bbe0ecf8b54033e (patch)
tree2c174d1c7cb2d6c08df2b713fdc7a55c1cdeece4 /security/selinux/hooks.c
parentACPI: sysfs: evaluate _STR on each sysfs access (diff)
downloadkernel-f6bae04a40f4441c62f4f8cd3bbe0ecf8b54033e.tar.gz
kernel-f6bae04a40f4441c62f4f8cd3bbe0ecf8b54033e.zip
ACPI: sysfs: manage attributes as attribute_group
The current manual attribute management is inconsistent and brittle. Not all return values of device_create_file() are checked and the cleanup logic needs to be kept up to date manually. Moving all attributes into an attribute_group and using the is_visible() callback allows the management of all attributes as a single unit. Signed-off-by: Thomas Weißschuh <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Rafael J. Wysocki <[email protected]>
Diffstat (limited to 'security/selinux/hooks.c')
0 files changed, 0 insertions, 0 deletions