-1.8.0a1 April 13, 2010 1
+1.8.0a1 April 14, 2010 1
-1.8.0a1 April 13, 2010 2
+1.8.0a1 April 14, 2010 2
-1.8.0a1 April 13, 2010 3
+1.8.0a1 April 14, 2010 3
command, indicating that the user wishes to ignore any
cached authentication credentials.
+ noninteractive=bool
+ Set to true if the user specified the -n flag, indicating
+ that s\bsu\bud\bdo\bo should operate in non-interactive mode. The
+ plugin may reject a command run in non-interactive mode if
+ user interaction is required.
+
login_class=string
BSD login class to use when setting resource limits and
nice value, if specified by the -c flag.
The user's supplementary group list formatted as a string
of comma-separated group IDs.
- cwd=string
- The user's current working directory.
-
- tty=string
- The path to the user's terminal device. If the user has no
- terminal device associated with the session, the value will
-1.8.0a1 April 13, 2010 4
+1.8.0a1 April 14, 2010 4
SUDO_PLUGIN(1m) MAINTENANCE COMMANDS SUDO_PLUGIN(1m)
+ cwd=string
+ The user's current working directory.
+
+ tty=string
+ The path to the user's terminal device. If the user has no
+ terminal device associated with the session, the value will
be empty, as in tty=.
host=string
int (*show_version)(int verbose);
The show_version function is called by s\bsu\bud\bdo\bo when the user specifies
- the -V option. The plugin may display its version information to
- the user via the conversation function using SUDO_CONV_INFO_MSG.
- If the user requests detailed version information, the verbose flag
- will be set.
-
-
-1.8.0a1 April 13, 2010 5
+1.8.0a1 April 14, 2010 5
SUDO_PLUGIN(1m) MAINTENANCE COMMANDS SUDO_PLUGIN(1m)
+ the -V option. The plugin may display its version information to
+ the user via the conversation function using SUDO_CONV_INFO_MSG.
+ If the user requests detailed version information, the verbose flag
+ will be set.
+
check_policy
int (*check_policy)(int argc, char * const argv[]
char *env_add[], char **command_info[],
runas_uid=uid
User ID to run the command as.
- runas_euid=uid
- Effective user ID to run the command as. If not specified,
- the value of _\br_\bu_\bn_\ba_\bs_\b__\bu_\bi_\bd is used.
-
-
-1.8.0a1 April 13, 2010 6
+1.8.0a1 April 14, 2010 6
SUDO_PLUGIN(1m) MAINTENANCE COMMANDS SUDO_PLUGIN(1m)
+ runas_euid=uid
+ Effective user ID to run the command as. If not specified,
+ the value of _\br_\bu_\bn_\ba_\bs_\b__\bu_\bi_\bd is used.
+
runas_gid=gid
Group ID to run the command as.
Unsupported values will be ignored.
- argv_out
- The NULL-terminated argument vector to pass to the _\be_\bx_\be_\bc_\bv_\be_\b(_\b)
- system call when executing the command. The plugin is
-
-1.8.0a1 April 13, 2010 7
+1.8.0a1 April 14, 2010 7
SUDO_PLUGIN(1m) MAINTENANCE COMMANDS SUDO_PLUGIN(1m)
+ argv_out
+ The NULL-terminated argument vector to pass to the _\be_\bx_\be_\bc_\bv_\be_\b(_\b)
+ system call when executing the command. The plugin is
responsible for allocating and populating the vector.
user_env_out
Returns 1 on success, 0 on failure and -1 on error. On error, the
plugin may optionally call the conversation function with
- SUDO_CONF_ERROR_MSG to present additional error information to the
- user.
-
-1.8.0a1 April 13, 2010 8
+1.8.0a1 April 14, 2010 8
SUDO_PLUGIN(1m) MAINTENANCE COMMANDS SUDO_PLUGIN(1m)
+ SUDO_CONF_ERROR_MSG to present additional error information to the
+ user.
+
invalidate
void (*invalidate)(int remove);
-
-
-
-1.8.0a1 April 13, 2010 9
+1.8.0a1 April 14, 2010 9
-1.8.0a1 April 13, 2010 10
+1.8.0a1 April 14, 2010 10
-1.8.0a1 April 13, 2010 11
+1.8.0a1 April 14, 2010 11
-1.8.0a1 April 13, 2010 12
+1.8.0a1 April 14, 2010 12
-1.8.0a1 April 13, 2010 13
+1.8.0a1 April 14, 2010 13
.\" ========================================================================
.\"
.IX Title "SUDO_PLUGIN @mansectsu@"
-.TH SUDO_PLUGIN @mansectsu@ "April 13, 2010" "1.8.0a1" "MAINTENANCE COMMANDS"
+.TH SUDO_PLUGIN @mansectsu@ "April 14, 2010" "1.8.0a1" "MAINTENANCE COMMANDS"
.\" For nroff, turn off justification. Always turn off hyphenation; it makes
.\" way too many mistakes in technical documents.
.if n .ad l
Set to true if the user specified the \f(CW\*(C`\-k\*(C'\fR flag along with a
command, indicating that the user wishes to ignore any cached
authentication credentials.
+.IP "noninteractive=bool" 4
+.IX Item "noninteractive=bool"
+Set to true if the user specified the \f(CW\*(C`\-n\*(C'\fR flag, indicating that
+\&\fBsudo\fR should operate in non-interactive mode. The plugin may
+reject a command run in non-interactive mode if user interaction
+is required.
.IP "login_class=string" 4
.IX Item "login_class=string"
\&\s-1BSD\s0 login class to use when setting resource limits and nice value,