Skip to contentSkip to conversation

setterm -msg off broken in 2.6.9

DISCUSSION Seth Arnold 2 participants 2 messages Oct 19, 2004 – Oct 22, 2004

lore
Share & tools
lore
#0 lore raw

Hello, I'm using 2.6.9 on my ibook g3 700mhz, debian unstable.

I use setterm -msg off to turn off kernel log buffer to console from time to time. It now reports an error:

$ setterm -msg off
klogctl error: Unknown error 4294967295

kernel log messages are still printed to the console.

Thanks

#1 lore raw
Quoted 10 lines · Seth Arnold

Hello, I'm using 2.6.9 on my ibook g3 700mhz, debian unstable.

I use setterm -msg off to turn off kernel log buffer to console from time to time. It now reports an error:

$ setterm -msg off
klogctl error: Unknown error 4294967295

kernel log messages are still printed to the console.

I assume that's because:

2643 syslog(0x6, 0, 0) = -1 EPERM (Operation not permitted)

but cap_syslog() has disallowed command 6 for a long time.

It seems reasonable to be able to kill console messages if the user is using the console, but from my reading current 2.4 kernels will fail this if you're not root as well.

With what kernel were you able to run `setterm -msg' without being root?