]> asedeno.scripts.mit.edu Git - linux.git/commit
debugfs: Add read-only/write-only x64 file ops
authorStephen Boyd <sboyd@codeaurora.org>
Tue, 13 Oct 2015 01:09:10 +0000 (18:09 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 18 Oct 2015 05:09:03 +0000 (22:09 -0700)
commit82b7d4fb4e0bcb8fe0d49edea21f595664f83c2f
treecebd4d096eac9f6227049cde0ef2444cebe09409
parentb97f679954b7771183f3c0a6a47b17e185e64a8a
debugfs: Add read-only/write-only x64 file ops

There aren't any read-only or write-only x64 file ops, but there
is a caller of debugfs_create_x64() that calls it with mode equal
to S_IRUGO. 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>
fs/debugfs/file.c