Bug 194233

Summary: sysctl -a shouldn't be listing kern.msgbuf
Product: Base System Reporter: wkoszek
Component: binAssignee: Fernando ApesteguĂ­a <fernape>
Status: Closed Not A Bug    
Severity: Affects Only Me CC: fernape
Priority: ---    
Version: 10.0-RELEASE   
Hardware: Any   
OS: Any   

Description wkoszek 2014-10-07 20:55:23 UTC
I use FreeBSD 10.0 release. For reviewing sysctl settings I typically use:

sysctl -a

It always showed the presence of ``kern.msgbuf'', but it never listed its content. I verified with 9.1-STABLE.

In FreeBSD 10 kern.msgbuf's content is shown. As a result of showing some garbage from prior invocations of ncurses-based programs sysctl -a causes my console to get stuck.

I must do 'reset' to unstuck it.

I think kern.msgbuf should be hidden from sysctl -a.
Comment 1 Fernando ApesteguĂ­a freebsd_committer freebsd_triage 2023-01-24 13:24:44 UTC
sysctl -a always shows both variable names and values. It might or might not show garbage depending on many factors and it might or might not affect the console depending on many factors too.

The value can be omitted using -N when doing sysctl -a