summaryrefslogtreecommitdiff
path: root/security/selinux/hooks.c
diff options
context:
space:
mode:
authorStephen Smalley <stephen.smalley.work@gmail.com>2025-09-02 16:11:08 +0300
committerPaul Moore <paul@paul-moore.com>2025-09-04 00:34:32 +0300
commit59ffc9beeb8b332940d36f4b9803352b7f893f5a (patch)
tree59ed4045c16c480b83bca9035c59172e882c8bba /security/selinux/hooks.c
parentf20e70a341dd67ac4aca23f93b6acdca6779e69d (diff)
downloadlinux-59ffc9beeb8b332940d36f4b9803352b7f893f5a.tar.xz
selinux: fix sel_read_bool() allocation and error handling
Switch sel_read_bool() from using get_zeroed_page() and free_page() to a stack-allocated buffer. This also fixes a memory leak in the error path when security_get_bool_value() returns an error. Reported-by: Matthew Wilcox <willy@infradead.org> Signed-off-by: Stephen Smalley <stephen.smalley.work@gmail.com> Signed-off-by: Paul Moore <paul@paul-moore.com>
Diffstat (limited to 'security/selinux/hooks.c')
0 files changed, 0 insertions, 0 deletions