about summary refs log tree commit diff stats
path: root/src/liolib.c
Commit message (Collapse)AuthorAgeFilesLines
* file permissions: decide based on calling functionKartik K. Agaram2022-02-011-2/+2
|
* instrument some obvious syscallsKartik K. Agaram2022-01-021-1/+5
|
* start on a view of audit eventsKartik K. Agaram2022-01-021-0/+4
|
* editable file permissionsKartik K. Agaram2022-01-021-2/+2
| | | | | | | | | | | | | | | | | | | | | Extremely cruddy implementation: - I'm still unclear on how to represent the advice function: - How to handle errors when loading user configuration? Currently I refuse to start. - Whole function? More errors to handle in header and so on. What if the function is renamed? - Just body? Needs more structured editing support. - Lots of duplication, particularly between the permissions in the menu and the permissions screen. I don't know how to show the hostname at the time of connect() or bind(), so networking is going to remain a boolean for now. It's also unclear what effective constraints we can impose on what gets discussed with a specific hostname. Everything outside the computer is out of one's control. One trick I learned is for consistently grabbing ASan logs on abort: It's always safe to redirect stderr with ncurses!
* renameKartik K. Agaram2022-01-021-2/+2
|
* file open() is now sandboxedKartik K. Agaram2021-12-251-3/+14
| | | | | | | In the process we now also have a mechanism for Teliva to overlay errors while apps run. Might make sense to make that available to apps as well. But I'm starting to realize that any app access to the Teliva areas of the screen is fraught with risk.
* drop stdin/stdout/stderr and Lua default filesKartik K. Agaram2021-12-251-115/+13
| | | | | | | This isn't necessarily for sandboxing, but they don't really work right now in the presence of ncurses, and it seems better to not include broken stuff. Maybe we can get them to coexist with ncurses down the road.
* sandbox: no popenKartik K. Agaram2021-12-251-29/+1
| | | | Again, too difficult to sandbox for now.
* new fork of Lua 5.1Kartik K. Agaram2021-10-221-0/+556
https://www.lua.org