Skip to content

enable Kernel Lockdown Mode / lockdown=confidentiality / echo confidentiality > /sys/kernel/security/lockdown #328

Description

@adrelanos

Reason why the kernel parameter lockdown=confidentiality got disabled in the past:

@adrelanos

Have to disable kernel lockdown. Unfortunately. Because that enforces kernel module signature verification. Which we don’t have yet.

Should we be enabling kernel lockdown during the boot process? After the kernel modules (tirdad; VirtualBox guest additions, if applicable) have been load, we could enable lockdown mode.

Thanks to @ArrayBolt3 for suggesting this!


How to enable lockdown mode during the boot process?

Requires root.

echo confidentiality > /sys/kernel/security/lockdown

How does that work?

cat /sys/kernel/security/lockdown

[none] integrity confidentiality

Kernel boots with lockdown mode none. Let's enable lockdown=confidentiality.

echo confidentiality > /sys/kernel/security/lockdown

Done. Let's see if that worked.

cat /sys/kernel/security/lockdown

confidentiality

Yes, lockdown=confidentiality has been enabled.

Once enabled, it cannot be reset, see:

echo none > /sys/kernel/security/lockdown

echo: write error: operation not permitted
zsh: exit 1


older discussions:

related:


todo:

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions