[PATCH] Change default for STRICT_DEVMEM - Kernel

This is a discussion on [PATCH] Change default for STRICT_DEVMEM - Kernel ; The recommendation for STRICT_DEVMEM is to select Y, however the option currently defaults to N. Have the option default to Y since it is recommended. --- arch/x86/Kconfig.debug | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/arch/x86/Kconfig.debug ...

+ Reply to Thread
Results 1 to 5 of 5

Thread: [PATCH] Change default for STRICT_DEVMEM

  1. [PATCH] Change default for STRICT_DEVMEM

    The recommendation for STRICT_DEVMEM is to select Y,
    however the option currently defaults to N. Have the option
    default to Y since it is recommended.

    ---
    arch/x86/Kconfig.debug | 1 +
    1 files changed, 1 insertions(+), 0 deletions(-)

    diff --git a/arch/x86/Kconfig.debug b/arch/x86/Kconfig.debug
    index 2a3dfbd..a03597c 100644
    --- a/arch/x86/Kconfig.debug
    +++ b/arch/x86/Kconfig.debug
    @@ -7,6 +7,7 @@ source "lib/Kconfig.debug"

    config STRICT_DEVMEM
    bool "Filter access to /dev/mem"
    + default y
    help
    If this option is disabled, you allow userspace (root) access to all
    of memory, including kernel and userspace memory. Accidental
    --
    1.5.6.3

    --
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/

  2. Re: [PATCH] Change default for STRICT_DEVMEM

    On Fri, 7 Nov 2008 14:18:36 -0600
    Matt LaPlante wrote:

    > The recommendation for STRICT_DEVMEM is to select Y,
    > however the option currently defaults to N. Have the option
    > default to Y since it is recommended.


    The recommendation is extremely dubious as it breaks a lot of back
    compatibility.

    --
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/

  3. Re: [PATCH] Change default for STRICT_DEVMEM

    On Fri, 7 Nov 2008 22:00:38 +0000
    Alan Cox wrote:

    > On Fri, 7 Nov 2008 14:18:36 -0600
    > Matt LaPlante wrote:
    >
    > > The recommendation for STRICT_DEVMEM is to select Y,
    > > however the option currently defaults to N. Have the option
    > > default to Y since it is recommended.

    >
    > The recommendation is extremely dubious as it breaks a lot of back
    > compatibility.
    >

    Revert the default and toggle the recommendation then?

    --
    Matt LaPlante
    --
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/

  4. Re: [PATCH] Change default for STRICT_DEVMEM

    On Fri, 7 Nov 2008 22:00:38 +0000
    Alan Cox wrote:

    > On Fri, 7 Nov 2008 14:18:36 -0600
    > Matt LaPlante wrote:
    >
    > > The recommendation for STRICT_DEVMEM is to select Y,
    > > however the option currently defaults to N. Have the option
    > > default to Y since it is recommended.

    >
    > The recommendation is extremely dubious as it breaks a lot of back
    > compatibility.
    >


    the default recommendatiom is a typo. It used to be an "other way
    around" config option, and it got flipped into a "positive" option
    rather than a tripple negative, but the help text didn't get fixed
    properly.



    --
    Arjan van de Ven Intel Open Source Technology Centre
    For development, discussion and tips for power savings,
    visit http://www.lesswatts.org
    --
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/

  5. Re: [PATCH] Change default for STRICT_DEVMEM


    * Matt LaPlante wrote:

    > The recommendation for STRICT_DEVMEM is to select Y,
    > however the option currently defaults to N. Have the option
    > default to Y since it is recommended.
    >
    > ---
    > arch/x86/Kconfig.debug | 1 +
    > 1 files changed, 1 insertions(+), 0 deletions(-)


    no. This is a special case: due to compatibility we default to N, but
    still we recommend people/distros to enable it. Eventually we can
    switch around the default in the future, but not yet.

    Ingo
    --
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/

+ Reply to Thread