linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* setterm -msg off broken in 2.6.9
@ 2004-10-19  6:33 Seth Arnold
  2004-10-22 11:06 ` Andrew Morton
  0 siblings, 1 reply; 2+ messages in thread
From: Seth Arnold @ 2004-10-19  6:33 UTC (permalink / raw)
  To: linux-kernel

[-- Attachment #1: Type: text/plain, Size: 295 bytes --]

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


[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: setterm -msg off broken in 2.6.9
  2004-10-19  6:33 setterm -msg off broken in 2.6.9 Seth Arnold
@ 2004-10-22 11:06 ` Andrew Morton
  0 siblings, 0 replies; 2+ messages in thread
From: Andrew Morton @ 2004-10-22 11:06 UTC (permalink / raw)
  To: Seth Arnold; +Cc: linux-kernel

Seth Arnold <sarnold@immunix.com> wrote:
>
> 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?

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2004-10-22 11:08 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-10-19  6:33 setterm -msg off broken in 2.6.9 Seth Arnold
2004-10-22 11:06 ` Andrew Morton

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).