-1.8.0a1 March 11, 2010 1
+1.8.0a1 March 17, 2010 1
-1.8.0a1 March 11, 2010 2
+1.8.0a1 March 17, 2010 2
-1.8.0a1 March 11, 2010 3
+1.8.0a1 March 17, 2010 3
The local machine's hostname as returned by the
gethostname() system call.
- user_env
- The user's environment in the form of a NULL-terminated vector
- of "name=value" strings.
+ lines=int
+ The number of lines the user's terminal supports. If there
+ is no terminal device available, a default value of 24 is
+ used.
- When parsing _\bu_\bs_\be_\br_\b__\be_\bn_\bv, the plugin should split on the f\bfi\bir\brs\bst\bt
- equal sign ('=') since the _\bn_\ba_\bm_\be field will never include one
- itself but the _\bv_\ba_\bl_\bu_\be might.
+ cols=int
+ The number of columns the user's terminal supports. If
+ there is no terminal device available, a default value of
+ 80 is used.
+1.8.0a1 March 17, 2010 4
-1.8.0a1 March 11, 2010 4
+SUDO_PLUGIN(1m) MAINTENANCE COMMANDS SUDO_PLUGIN(1m)
-SUDO_PLUGIN(1m) MAINTENANCE COMMANDS SUDO_PLUGIN(1m)
+ user_env
+ The user's environment in the form of a NULL-terminated vector
+ of "name=value" strings.
+ When parsing _\bu_\bs_\be_\br_\b__\be_\bn_\bv, the plugin should split on the f\bfi\bir\brs\bst\bt
+ equal sign ('=') since the _\bn_\ba_\bm_\be field will never include one
+ itself but the _\bv_\ba_\bl_\bu_\be might.
close
void (*close)(int exit_status, int error);
The number of elements in _\ba_\br_\bg_\bv, not counting the final NULL
pointer.
- argv
- The argument vector describing the command the user wishes to
- run, in the same form as what would be passed to the _\be_\bx_\be_\bc_\bv_\be_\b(_\b)
- system call. The vector is terminated by a NULL pointer.
-
- env_add
- Additional environment variables specified by the user on the
-
-1.8.0a1 March 11, 2010 5
+1.8.0a1 March 17, 2010 5
SUDO_PLUGIN(1m) MAINTENANCE COMMANDS SUDO_PLUGIN(1m)
+ argv
+ The argument vector describing the command the user wishes to
+ run, in the same form as what would be passed to the _\be_\bx_\be_\bc_\bv_\be_\b(_\b)
+ system call. The vector is terminated by a NULL pointer.
+
+ env_add
+ Additional environment variables specified by the user on the
command line in the form of a NULL-terminated vector of
"name=value" strings. The plugin may reject the command if one
or more variables are not allowed to be set, or it may silently
If set, s\bsu\bud\bdo\bo will preserve the user's group vector instead
of initializing the group vector based on runas_user.
- cwd=string
- The current working directory to change to when executing
- the command.
- noexec=bool
- If set, prevent the command from executing other programs.
+1.8.0a1 March 17, 2010 6
-1.8.0a1 March 11, 2010 6
+SUDO_PLUGIN(1m) MAINTENANCE COMMANDS SUDO_PLUGIN(1m)
-SUDO_PLUGIN(1m) MAINTENANCE COMMANDS SUDO_PLUGIN(1m)
+ cwd=string
+ The current working directory to change to when executing
+ the command.
+ noexec=bool
+ If set, prevent the command from executing other programs.
chroot=string
The root directory to use when running the command.
verbose
Flag indicating whether to list in verbose mode or not.
- list_user
- The name of a different user to list privileges for if the
- policy allows it. If NULL, the plugin should list the
- privileges of the invoking user.
-
-
-
-1.8.0a1 March 11, 2010 7
+1.8.0a1 March 17, 2010 7
SUDO_PLUGIN(1m) MAINTENANCE COMMANDS SUDO_PLUGIN(1m)
+ list_user
+ The name of a different user to list privileges for if the
+ policy allows it. If NULL, the plugin should list the
+ privileges of the invoking user.
+
argc
The number of elements in _\ba_\br_\bg_\bv, not counting the final NULL
pointer.
-
-
-
-
-
-1.8.0a1 March 11, 2010 8
+1.8.0a1 March 17, 2010 8
-1.8.0a1 March 11, 2010 9
+1.8.0a1 March 17, 2010 9
-1.8.0a1 March 11, 2010 10
+1.8.0a1 March 17, 2010 10
-1.8.0a1 March 11, 2010 11
+1.8.0a1 March 17, 2010 11
-1.8.0a1 March 11, 2010 12
+1.8.0a1 March 17, 2010 12