libjail is pretty small, so it makes for a good proof of concept demonstrating how a system library can be wrapped to create a loadable Lua module for flua.
Details
Details
Diff Detail
Diff Detail
- Repository
- rS FreeBSD src repository - subversion
- Lint
Lint Skipped - Unit
Tests Skipped
Event Timeline
Comment Actions
I plan to add documentation and Lua code examples. And I should add $FreeBSD$ and unshebangify lib/flua/libjail/Makefile
| lib/Makefile | ||
|---|---|---|
| 145 | Does this really work? This should be controlled with a MK_ variables... | |
| lib/Makefile | ||
|---|---|---|
| 145 | I took it from about 13 lines down where clang does something similar. The goal is to not build a lib32 compat version of the Lua modules. It does seem to be working. | |
Comment Actions
- Add an example for the jail module
- Add a 3lua manpage section, with intro(3lua) and jail(3lua)
- Add __FBSDID to the jail module
- Unshebangify lib/flua/libjail/Makefile
Comment Actions
I'd eventually like to be able to iterate over running jails, but this isn't necessary for a first pass.
| lib/flua/libjail/jail.3lua | ||
|---|---|---|
| 2 | Needs a SPDX tag | |
| lib/flua/libjail/lua_jail.c | ||
|---|---|---|
| 210 | You'll want to deconst this, as it needs to be free()d after it's pushed to the stack. | |
| lib/flua/libjail/lua_jail.c | ||
|---|---|---|
| 236 | make analyze points out that this is a dead store, due to reassignment in the impending loop. | |