NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
misc/61123: MAKEDEV: minimal target for low-risk device nodes only
>Number: 61123
>Category: misc
>Synopsis: MAKEDEV: minimal target for low-risk device nodes only
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: misc-bug-people
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Fri Dec 04 03:50:00 +0000 2026
>Originator: Taylor R Campbell
>Release: current, 11, 10, ...
>Organization:
cd /dev && sh ./NETBSD foundation
>Environment:
>Description:
The target `sh ./MAKEDEV std' creates a subset of device nodes,
excluding interfaces for most physical devices and including
interfaces often required by programs like /dev/null,
/dev/urandom, and /dev/tty.
However, it also includes some higher-risk device nodes that
could grant access to systemwide kernel state -- potentially
leaking secrets or enabling tampering by privileged chrooted
processes -- which are not generally needed for ordinary
programs:
/dev/console
/dev/constty
/dev/drum
/dev/klog
/dev/kmem
/dev/ksyms
/dev/mem
There should be a MAKEDEV target for just those remaining nodes
that non-system programs expect without granting access to
systemwide kernel state, say `minimal':
/dev/full
/dev/null
/dev/random (debatable, really)
/dev/stderr
/dev/stdin
/dev/stdout
/dev/tty
/dev/urandom
/dev/zero
>How-To-Repeat:
set up restricted chroots and ponder /dev
>Fix:
Yes, please!
Home |
Main Index |
Thread Index |
Old Index