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


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:



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.


Error out properly?


Home | Main Index | Thread Index | Old Index