0

I see the following error running dmesg in my Linux running on a embedded board.

/ # dmesg
dmesg: klogctl: Operation not permitted

As you see, I'm running as root. I am also aware of the question here. But when I issue the solution given there I get the following error:

/ # echo 0 > /proc/sys/kernel/dmesg_restrict
sh: write error: Operation not permitted

Any idea how should I get around with it?

Da Teng
  • 111
  • Welcome to the site. Can you specify the Linux distribution and hardware type used? – AdminBee Jul 01 '21 at 16:37
  • The Linux image is built using Yocto/OpenEmbedded. The hardware is Qualcomm RB5. It's really new hardware but I thought this issue is unrelated to the hardware I'm using. – Da Teng Jul 01 '21 at 17:11
  • klogctl(3)/syslog(2) documents the error. Maybe you are root with some privileges removed?. You can check with grep ^Cap /proc/$$/status. If you don't get 3 lines (out of 5) that have a lot of ffff at the end, then you should add the results in the question. – A.B Jul 02 '21 at 20:23
  • Or with embedded who knows: https://cateee.net/lkddb/web-lkddb/EMBEDDED.html (but usually unavailable features are ENOSYS, not EPERM) – A.B Jul 02 '21 at 20:30

0 Answers0