about summary refs log tree commit diff stats
path: root/src/lfs.c
Commit message (Collapse)AuthorAgeFilesLines
* some dead codeKartik K. Agaram2022-03-051-59/+0
|
* stop letting apps change directoryKartik K. Agaram2022-02-201-2/+2
| | | | | | | | | | | | | | I introduced this ability when I packaged up the lfs directory, but it can enable apps to circumvent sandboxing rules in some situations. If you can socially engineer someone to allow reading a file called 'passwd' in the current directory, you can now change directory to /etc and read something sensitive. Protecting against stuff like this gets subtle. It's easy for people to create policies that aren't robust to changing directories. Requiring absolute paths is also pretty unfriendly. So the whole notion of current directory is perhaps implicit state that is confusing to manage. Fix it in the context of a single session.
* new library: luafilesystem (lfs)Kartik K. Agaram2022-01-291-0/+1183
https://github.com/keplerproject/luafilesystem The new commander.tlv app demonstrates it working.