All new accounts created on Gitlab now require administrator approval. If you invite any collaborators, please let Flux staff know so they can approve the accounts.

  • Luis R. Rodriguez's avatar
    kernel/module.c: avoid ifdefs for sig_enforce declaration · 6727bb9c
    Luis R. Rodriguez authored
    There's no need to require an ifdef over the declaration
    of sig_enforce as IS_ENABLED() can be used. While at it,
    there's no harm in exposing this kernel parameter outside of
    CONFIG_MODULE_SIG as it'd be a no-op on non module sig
    Now, technically we should in theory be able to remove
    the #ifdef'ery over the declaration of the module parameter
    as we are also trusting the bool_enable_only code for
    CONFIG_MODULE_SIG kernels but for now remain paranoid
    and keep it.
    With time if no one can put a bullet through bool_enable_only
    and if there are no technical requirements over not exposing
    CONFIG_MODULE_SIG_FORCE with the measures in place by
    bool_enable_only we could remove this last ifdef.
    Cc: Rusty Russell <>
    Cc: Andrew Morton <>
    Cc: Kees Cook <>
    Cc: Tejun Heo <>
    Cc: Ingo Molnar <>
    Signed-off-by: default avatarLuis R. Rodriguez <>
    Signed-off-by: default avatarRusty Russell <>
module.c 102 KB