Announcement

Collapse
No announcement yet.

Linux 6.7 Introduces "make hardening.config" To Help Build A Hardened Kernel

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Linux 6.7 Introduces "make hardening.config" To Help Build A Hardened Kernel

    Phoronix: Linux 6.7 Introduces "make hardening.config" To Help Build A Hardened Kernel

    The hardening updates for the Linux 6.7 kernel bring a new hardening configuration profile to help in building a security hardened kernel with some sane defaults...

    Phoronix, Linux Hardware Reviews, Linux hardware benchmarks, Linux server benchmarks, Linux benchmarking, Desktop Linux, Linux performance, Open Source graphics, Linux How To, Ubuntu benchmarks, Ubuntu hardware, Phoronix Test Suite

  • #2
    Oooh, I would really like this back ported to 6.1, pretty please! It does look useful for sure.

    Comment


    • #3
      I guess it's a step in the right direction. However:
      * not only without backports (6.1 might be a long shot unless someone spends time also backporting the fixes it may depend on, but backporting to 6.6 should be doable), it won't be part of kernels used in the real world by a majority for years;
      * but also, it fails to disable known sources of streams of security vulnerabilities: the likes of eBPF JIT, io_uring, unprivileged user namespaces.​

      Comment


      • #4
        SO is $ make hardening.config used instead of e.g. $ make defconfig or after $ make oldconfig or what? Basically I guess I'm asking "I have my own .config, developed over time, and it works great for me.

        How can I use hardening.config to "suggest" tweaks to it that I can answer Y, N, or ? and get more hardening without sacrificing most previous choices?

        Comment


        • #5
          Originally posted by gavron View Post
          How can I use hardening.config to "suggest" tweaks to it that I can answer Y, N, or ? and get more hardening without sacrificing most previous choices?
          scripts/kconfig/merge_config.sh

          Configs are here:
          Linux kernel source tree. Contribute to torvalds/linux development by creating an account on GitHub.

          (note also architecture-specific arch/*/configs/hardening.config files)
          Last edited by Jakobson; 05 November 2023, 07:14 PM.

          Comment


          • #6
            Originally posted by Jakobson View Post

            scripts/kconfig/merge_config.sh

            Configs are here:
            Linux kernel source tree. Contribute to torvalds/linux development by creating an account on GitHub.

            (note also architecture-specific arch/*/configs/hardening.config files)
            @jakobson: Thank you!!
            Interestingly, $ make hardening.config requires an existing .config, which it merely modifies. This means that, to answer my own previous question another way, one can either have an old .config or use $ make defconfig && make hardening.config.

            Edit: Just finished booting linux-6.6.0-next-20231103 with the hardening script. It booted a bit faster than 6.6.0 and I'm too tired to figure out why. The metric is what the last timestamp is from a verbose boot before getting the LUKS prompt. Sample size of one is not yet science ... but also not a performance regression.
            Last edited by gavron; 05 November 2023, 08:28 PM.

            Comment


            • #7
              Uuuuh..... Hard.... Hhhuh huh hhhuh huh

              http://www.dirtcellar.net

              Comment


              • #8
                Originally posted by gavron View Post
                Interestingly, $ make hardening.config requires an existing .config, which it merely modifies.
                Yes, it is a kernel config fragment file. There purpose is to enable only particular indented feature and nothing more.

                Comment

                Working...
                X