summaryrefslogtreecommitdiffstats
path: root/security
diff options
context:
space:
mode:
authorStephen Boyd <sboyd@codeaurora.org>2015-10-13 03:09:12 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-10-18 07:09:03 +0200
commit6713e8fb541656d00249dca6627395b461c39ece (patch)
treedeb11dca54f169a638e03dfa9c95b5de9bf32a6d /security
parentdebugfs: Add read-only/write-only size_t file ops (diff)
downloadlinux-6713e8fb541656d00249dca6627395b461c39ece.tar.xz
linux-6713e8fb541656d00249dca6627395b461c39ece.zip
debugfs: Add read-only/write-only bool file ops
There aren't any read-only or write-only bool file ops, but there is a caller of debugfs_create_bool() that calls it with mode equal to 0400. This leads to the possibility of userspace modifying the file, so let's use the newly created debugfs_create_mode() helper here to fix this. Signed-off-by: Stephen Boyd <sboyd@codeaurora.org> Reviewed-by: Viresh Kumar <viresh.kumar@linaro.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'security')
0 files changed, 0 insertions, 0 deletions