From f8752d2ca3bdaa3162f681b5c6f7973c3e171171 Mon Sep 17 00:00:00 2001 From: Panu Matilainen Date: Mon, 15 Nov 2010 09:36:17 +0200 Subject: Basic protection against Lua os.exit() and posix.exec() (ticket #167) - Track posix.fork() and only allow exit() and exec() if the script has forked. There are other questionable items in posix extensions too but these are the worst offenders. - Using Lua registry for tracking forked status might be more Lua-way option but this'll do for now. --- rpmio/rpmlua.c | 1 + 1 file changed, 1 insertion(+) (limited to 'rpmio') diff --git a/rpmio/rpmlua.c b/rpmio/rpmlua.c index 22a2fc027..a2f70bf82 100644 --- a/rpmio/rpmlua.c +++ b/rpmio/rpmlua.c @@ -53,6 +53,7 @@ rpmlua rpmluaNew() {"posix", luaopen_posix}, {"rex", luaopen_rex}, {"rpm", luaopen_rpm}, + {"os", luaopen_rpm_os}, {NULL, NULL}, }; -- cgit v1.2.3