version 1.1.1.2, 2012/10/09 09:29:52
|
version 1.1.1.3, 2013/07/22 10:46:13
|
Line 1
|
Line 1
|
/* |
/* |
* Copyright (c) 2009-2012 Todd C. Miller <Todd.Miller@courtesan.com> | * Copyright (c) 2009-2013 Todd C. Miller <Todd.Miller@courtesan.com> |
* |
* |
* Permission to use, copy, modify, and distribute this software for any |
* Permission to use, copy, modify, and distribute this software for any |
* purpose with or without fee is hereby granted, provided that the above |
* purpose with or without fee is hereby granted, provided that the above |
Line 17
|
Line 17
|
#include <config.h> |
#include <config.h> |
|
|
#include <sys/types.h> |
#include <sys/types.h> |
#include <sys/param.h> |
|
#include <stdio.h> |
#include <stdio.h> |
#ifdef STDC_HEADERS |
#ifdef STDC_HEADERS |
# include <stdlib.h> |
# include <stdlib.h> |
Line 40
|
Line 39
|
# include <priv.h> |
# include <priv.h> |
#endif |
#endif |
#include <errno.h> |
#include <errno.h> |
|
#include <fcntl.h> |
#include <signal.h> |
#include <signal.h> |
|
|
#include "sudo.h" |
#include "sudo.h" |
Line 109 disable_execute(char *const envp[])
|
Line 109 disable_execute(char *const envp[])
|
preload = fmt_string(RTLD_PRELOAD_VAR, sudo_conf_noexec_path()); |
preload = fmt_string(RTLD_PRELOAD_VAR, sudo_conf_noexec_path()); |
# endif |
# endif |
if (preload == NULL) |
if (preload == NULL) |
errorx(1, _("unable to allocate memory")); | fatalx(NULL); |
nenvp[env_len++] = preload; |
nenvp[env_len++] = preload; |
nenvp[env_len] = NULL; |
nenvp[env_len] = NULL; |
} else { |
} else { |