mirror of
https://github.com/sudo-project/sudo.git
synced 2025-08-31 14:25:15 +00:00
Add support for setting environment variables on the command line.
This is only allowed if the setenv sudoers options is enabled or if the command is prefixed with the SETENV tag.
This commit is contained in:
4
parse.h
4
parse.h
@@ -1,5 +1,6 @@
|
||||
/*
|
||||
* Copyright (c) 1996,1998-2000,2004 Todd C. Miller <Todd.Miller@courtesan.com>
|
||||
* Copyright (c) 1996, 1998-2000, 2004, 2007
|
||||
* Todd C. Miller <Todd.Miller@courtesan.com>
|
||||
*
|
||||
* Permission to use, copy, modify, and distribute this software for any
|
||||
* purpose with or without fee is hereby granted, provided that the above
|
||||
@@ -42,6 +43,7 @@ struct sudo_command {
|
||||
struct cmndtag {
|
||||
char nopasswd;
|
||||
char noexec;
|
||||
char setenv;
|
||||
char monitor;
|
||||
char extra;
|
||||
};
|
||||
|
Reference in New Issue
Block a user