diff options
author | Ricardo Ribalda <ribalda@chromium.org> | 2023-01-04 15:38:47 +0100 |
---|---|---|
committer | Andrew Morton <akpm@linux-foundation.org> | 2023-02-03 07:50:04 +0100 |
commit | 7e99f8b69c11c104933b9bc8fda226ebfb8aaaa5 (patch) | |
tree | f6d0c0a96b7af09eea2f86d5d7bd1bb42f2ec7b9 /init/version-timestamp.c | |
parent | Documentation: sysctl: correct kexec_load_disabled (diff) | |
download | linux-7e99f8b69c11c104933b9bc8fda226ebfb8aaaa5.tar.xz linux-7e99f8b69c11c104933b9bc8fda226ebfb8aaaa5.zip |
kexec: factor out kexec_load_permitted
Both syscalls (kexec and kexec_file) do the same check, let's factor it
out.
Link: https://lkml.kernel.org/r/20221114-disable-kexec-reset-v6-2-6a8531a09b9a@chromium.org
Signed-off-by: Ricardo Ribalda <ribalda@chromium.org>
Reviewed-by: Steven Rostedt (Google) <rostedt@goodmis.org>
Acked-by: Baoquan He <bhe@redhat.com>
Cc: Bagas Sanjaya <bagasdotme@gmail.com>
Cc: "Eric W. Biederman" <ebiederm@xmission.com>
Cc: Guilherme G. Piccoli <gpiccoli@igalia.com>
Cc: Joel Fernandes (Google) <joel@joelfernandes.org>
Cc: Jonathan Corbet <corbet@lwn.net>
Cc: Philipp Rudo <prudo@redhat.com>
Cc: Ross Zwisler <zwisler@kernel.org>
Cc: Sergey Senozhatsky <senozhatsky@chromium.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'init/version-timestamp.c')
0 files changed, 0 insertions, 0 deletions