mirror of
https://github.com/sudo-project/sudo.git
synced 2025-08-31 06:15:37 +00:00
Call systrace_attach() if FLAG_TRACE is set.
This commit is contained in:
5
sudo.c
5
sudo.c
@@ -399,6 +399,11 @@ main(argc, argv, envp)
|
||||
"please report this error at http://courtesan.com/sudo/bugs/");
|
||||
}
|
||||
|
||||
#ifdef HAVE_SYSTRACE
|
||||
if (ISSET(validated, FLAG_TRACE))
|
||||
systrace_attach(getpid());
|
||||
#endif
|
||||
|
||||
/* Override user's umask if configured to do so. */
|
||||
if (def_umask != 0777)
|
||||
(void) umask(def_umask);
|
||||
|
Reference in New Issue
Block a user