Skip to content

Prevent dynamically linked executables from calling exec(3)

License

Notifications You must be signed in to change notification settings

msantos/libnoexec

Repository files navigation

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.

About

Prevent dynamically linked executables from calling exec(3)

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published