CVS commit: src

"Taylor R Campbell" <[email protected]>
Newsgroups gmane.os.netbsd.devel.cvs
Message-ID <[email protected]>
Module Name:	src
Committed By:	riastradh
Date:		Sat Jun 27 20:05:06 UTC 2026

Modified Files:
	src/distrib/sets/lists/debug: mi
	src/distrib/sets/lists/tests: mi
	src/sys/modules/lua: lua.c
	src/sys/sys: lua.h
	src/tests/kernel: Makefile
Added Files:
	src/tests/kernel: t_lua.c

Log Message:
lua(4): Fix and test some issues.

- Require read permission for LUAINFO.
- Require write permission for all others:
  . LUACREATE
  . LUADESTROY
  . LUALOAD
  . LUAREQUIRE
- Don't panic in LUAINFO if there's zero states.
- Add missing sys/stdbool.h in sys/lua.h.

This is not a real test suite for lua.kmod -- it doesn't verify the
module does anything useful; it just verifies that _if_ you go out of
your way to load the experimental kernel module, it doesn't enable
unprivileged users to wreak havoc with /dev/lua.

PR misc/60375: lua.kmod enables local privilege escalation


To generate a diff of this commit:
cvs rdiff -u -r1.513 -r1.514 src/distrib/sets/lists/debug/mi
cvs rdiff -u -r1.1421 -r1.1422 src/distrib/sets/lists/tests/mi
cvs rdiff -u -r1.28 -r1.29 src/sys/modules/lua/lua.c
cvs rdiff -u -r1.9 -r1.10 src/sys/sys/lua.h
cvs rdiff -u -r1.96 -r1.97 src/tests/kernel/Makefile
cvs rdiff -u -r0 -r1.1 src/tests/kernel/t_lua.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
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.