]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
selinux: revert use of __getname() in selinux_genfs_get_sid()
authorPaul Moore <paul@paul-moore.com>
Fri, 29 May 2026 15:24:37 +0000 (11:24 -0400)
committerPaul Moore <paul@paul-moore.com>
Fri, 29 May 2026 15:24:37 +0000 (11:24 -0400)
commit033182baeab63ce96a6eb8aef1a6cd444fcf9519
treebeaafe31367f6d973e93b9a68e01cfd062e8cb70
parent447e04178b776c82dad431f8af26086b5ce9a391
selinux: revert use of __getname() in selinux_genfs_get_sid()

Revert commit 54067bacb49c ("selinux: hooks: use __getname() to allocate
path buffer") as it improperly assumed that PATH_MAX == PAGE_SIZE
everywhere.  Moving away from __get_free_page() is still a good thing and
will be revisited in the future.

Cc: Mike Rapoport (Microsoft) <rppt@kernel.org>
Reported-by: Venkat Rao Bagalkote <venkat88@linux.ibm.com>
Signed-off-by: Paul Moore <paul@paul-moore.com>
security/selinux/hooks.c