mirror of
https://github.com/sudo-project/sudo.git
synced 2025-08-31 22:35:10 +00:00
Add intercept_allow_setid sudoers option, disabled by default.
With this change, a shell in intercept mode cannot run a setuid or setgid binary by default. On most systems, the dynamic loader will ignore LD_PRELOAD for setuid/setgid binaries such as sudo which would effectively disable intercept mode.
This commit is contained in:
@@ -302,6 +302,7 @@ struct cmnd_info {
|
||||
struct stat cmnd_stat;
|
||||
char *cmnd_path;
|
||||
int status;
|
||||
bool intercepted;
|
||||
};
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user