mirror of
https://github.com/sudo-project/sudo.git
synced 2025-09-04 00:05:11 +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/");
|
"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. */
|
/* Override user's umask if configured to do so. */
|
||||||
if (def_umask != 0777)
|
if (def_umask != 0777)
|
||||||
(void) umask(def_umask);
|
(void) umask(def_umask);
|
||||||
|
3
sudo.h
3
sudo.h
@@ -239,6 +239,9 @@ int pam_prep_user __P((struct passwd *));
|
|||||||
void zero_bytes __P((volatile VOID *, size_t));
|
void zero_bytes __P((volatile VOID *, size_t));
|
||||||
int gettime __P((struct timespec *));
|
int gettime __P((struct timespec *));
|
||||||
YY_DECL;
|
YY_DECL;
|
||||||
|
#ifdef HAVE_SYSTRACE
|
||||||
|
void systrace_attach __P((pid_t));
|
||||||
|
#endif
|
||||||
|
|
||||||
/* Only provide extern declarations outside of sudo.c. */
|
/* Only provide extern declarations outside of sudo.c. */
|
||||||
#ifndef _SUDO_MAIN
|
#ifndef _SUDO_MAIN
|
||||||
|
Reference in New Issue
Block a user