Recent change in Tumbleweed that means can no longer run dmesg as non-root?

Up until a few days or weeks ago, I could run dmesg as a non-root user in Tumbleweed. Now if I try it I get dmesg: read kernel buffer failed: Operation not permitted.

Thanks to How to give non-root user permission to run dmesg without su or sudo? - #6 by kasi042 I can fix this with sysctl but I was just wondering:

Has this happened to anyone else?

Was it an intentional change in Tumbleweed?

EDIT: I swear I searched before, but Sod’s Law says I only now find Tumbleweed – Review of the week 2025/46 – Dominique a.k.a. DimStar (Dim*) which seems this was intentional.

You have already found it, it’s a feature, cf. https://lists.opensuse.org/archives/list/factory@lists.opensuse.org/thread/KF5B3ZT2KO5NQX6NIWVSKCOPYKYNA3J2/: “kernel hardening: prevent normal users from seeing dmesg”.

2 Likes

@JohnVeness Intentional AFAIK, I just add my user to systemd-journal and let the kernel security remain in place…

1 Like