NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

kern/44946: some sysctl nodes are writable as an user



>Number:         44946
>Category:       kern
>Synopsis:       some sysctl nodes are writable as an user
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon May 09 13:20:00 +0000 2011
>Originator:     Jukka Ruohonen
>Release:        5.99.51
>Organization:
-
>Environment:

>Description:

Some sysctl nodes that supposedly should not be writable by an user do not
error out with sysctl(8). This applies at least to the following:

        kern.consdev
        kern.drivers
        kern.boottime

>How-To-Repeat:

For instance

        $ sysctl -w kern.consdev=foobar
        $ sysctl -w kern.drivers=foobar
        $ sysctl -w kern.boottime=0

do not fail with EPERM or EINVAL unlike rest of the nodes. Some of these may
be debatable, but I think these should still fail properly.

>Fix:

Error out properly?

>Unformatted:
 


Home | Main Index | Thread Index | Old Index