https://github.com/msantos/libnoexec
Prevent dynamically linked executables from calling exec(3)
https://github.com/msantos/libnoexec
exec ldpreload seccomp
Last synced: about 2 months ago
JSON representation
Prevent dynamically linked executables from calling exec(3)
- Host: GitHub
- URL: https://github.com/msantos/libnoexec
- Owner: msantos
- License: isc
- Created: 2022-04-25T12:58:28.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2023-05-17T10:44:17.000Z (about 2 years ago)
- Last Synced: 2025-02-13T05:30:10.632Z (4 months ago)
- Topics: exec, ldpreload, seccomp
- Language: C
- Size: 4.88 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# libnoexec
libnoexec: disable exec(3) for dynamically linked executables
# DESCRIPTION
libnoexec prevents dynamically linked executables from calling exec(3).
# EXAMPLES
```
$ LD_PRELOAD=libnoexec.so sh -c "ls"
sh: 1: ls: Permission denied# echo is a shell builtin
$ LD_PRELOAD=libnoexec.so sh -c "echo test"
test
```# ENVIRONMENT VARIABLES
None.