diff options
| author | Mike Rapoport (Microsoft) <rppt@kernel.org> | 2026-05-31 19:58:52 +0300 |
|---|---|---|
| committer | Paul Moore <paul@paul-moore.com> | 2026-06-30 20:58:07 -0400 |
| commit | 5adb9195e091ee16617418123ce603cf38104acd (patch) | |
| tree | 03ad8e478c77b8b3c8310d2cc8ab0815f0755571 /tools/perf/scripts/python | |
| parent | dc59e4fea9d83f03bad6bddf3fa2e52491777482 (diff) | |
selinux: hooks: use kmalloc() to allocate path buffer
selinux_genfs_get_sid() allocates memory for a path with __get_free_page().
Such usage does not require a "page" and the size of the buffer should
actually be PATH_MAX which may be less than PAGE_SIZE on some
architectures.
Replace __get_free_page() for allocation of a path buffer with kmalloc()
and make it explicit that the buffer size is PATH_MAX.
Signed-off-by: Mike Rapoport (Microsoft) <rppt@kernel.org>
Acked-by: Stephen Smalley <stephen.smalley.work@gmail.com>
Signed-off-by: Paul Moore <paul@paul-moore.com>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
