s390/hypfs: Avoid unnecessary ioctl registration in debugfs
Currently, hypfs registers ioctl callbacks for all debugfs files, despite only one file requiring them. This leads to unintended exposure of unused interfaces to user space and can trigger side effects such as restricted access when kernel lockdown is enabled. Restrict ioctl registration to only those files that implement ioctl functionality to avoid interface clutter and unnecessary access restrictions. Tested-by:Mete Durlu <meted@linux.ibm.com> Reviewed-by:
Vasily Gorbik <gor@linux.ibm.com> Fixes: 5496197f ("debugfs: Restrict debugfs when the kernel is locked down") Signed-off-by:
Peter Oberparleiter <oberpar@linux.ibm.com> Signed-off-by:
Alexander Gordeev <agordeev@linux.ibm.com>
Loading
Please register or sign in to comment