diff options
| author | Sukrut Heroorkar <[email protected]> | 2025-07-16 12:35:43 +0000 |
|---|---|---|
| committer | Rafael J. Wysocki <[email protected]> | 2025-07-16 19:14:00 +0000 |
| commit | cf115ebad30f08c96f59a39e6a96ef26a146d900 (patch) | |
| tree | 4e5afe1469c8831ed4eaa4e889bcbdb11c7571e9 /security/selinux/include/objsec.h | |
| parent | Linux 6.16-rc6 (diff) | |
| download | kernel-cf115ebad30f08c96f59a39e6a96ef26a146d900.tar.gz kernel-cf115ebad30f08c96f59a39e6a96ef26a146d900.zip | |
ACPI: TAD: Replace sprintf() with sysfs_emit()
Replace sprintf() in *_show() callbacks of sysfs attributes with
sysfs_emit().
While the current implementation works, sysfs_emit() helps to prevent
potential buffer overflows and aligns with kernel documentation
Documentation/filesystems/sysfs.rst.
Tested on an x86_64 system with acpi_tad built as a module:
- Inserted patched acpi_tad.ko successfully
- Verified /sys/devices/platform/ACPI000E:00/time and /caps are
accessible
- Confirmed correct output from 'cat' with no dmesg errors
Signed-off-by: Sukrut Heroorkar <[email protected]>
Link: https://patch.msgid.link/[email protected]
[ rjw: Changelog edits ]
Signed-off-by: Rafael J. Wysocki <[email protected]>
Diffstat (limited to 'security/selinux/include/objsec.h')
0 files changed, 0 insertions, 0 deletions
