Re: UART question

Alexander Schreiber <[email protected]>
Newsgroups gmane.os.netbsd.ports.arm
Message-ID <[email protected]>
On Fri, Jul 11, 2025 at 09:11:31AM +1200, Lloyd Parkes wrote:
> On Wed, 2025-07-09 at 06:30 +0000, Vincent DEFERT wrote:
> > What's the benefit of providing accurate information on the system?
> 
> I have used BSD, Linux and many other Unixes for some decades now and I
> have never used /dev to find out what devices are present on a system.
> 
> I suspect that this is behaviour that you have learned because Linux
> makes it hard to use dmesg. On (all?) other Unixes dmesg can be run by
> an unprivileged user.

Yes, dmesg has been restricted for non-privileged users for a while,
because it is considered an information leak that could provide
useful information for local privilege escalation attacks,
but that can be disabled via sysctl kernel.dmesg_restrict=0.

> Of course, Linux is also somewhat notorious for
> not putting useful information in dmesg to start with.

How you looked at typical dmesg on Linux? There is a _lot_ of
information in there. Of course it does help if one knows
what one is looking for (e.g. device names).

Kind regards,
          Alex.
-- 
"Opportunity is missed by most people because it is dressed in overalls and
 looks like work."                                      -- Thomas A. Edison
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.