Avoid a -Wshadow warning on Solaris 9.
This commit is contained in:
@@ -16,7 +16,7 @@
|
||||
.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
|
||||
.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||
.\"
|
||||
.TH "SUDO_PLUGIN" "5" "September 11, 2022" "Sudo @PACKAGE_VERSION@" "File Formats Manual"
|
||||
.TH "SUDO_PLUGIN" "5" "October 7, 2022" "Sudo @PACKAGE_VERSION@" "File Formats Manual"
|
||||
.nh
|
||||
.if n .ad l
|
||||
.SH "NAME"
|
||||
@@ -70,7 +70,7 @@ struct policy_plugin {
|
||||
unsigned int type; /* always SUDO_POLICY_PLUGIN */
|
||||
unsigned int version; /* always SUDO_API_VERSION */
|
||||
int (*open)(unsigned int version, sudo_conv_t conversation,
|
||||
sudo_printf_t plugin_printf, char * const settings[],
|
||||
sudo_printf_t sudo_plugin_printf, char * const settings[],
|
||||
char * const user_info[], char * const user_env[],
|
||||
char * const plugin_options[], const char **errstr);
|
||||
void (*close)(int exit_status, int error);
|
||||
@@ -79,9 +79,9 @@ struct policy_plugin {
|
||||
char *env_add[], char **command_info[],
|
||||
char **argv_out[], char **user_env_out[], const char **errstr);
|
||||
int (*list)(int argc, char * const argv[], int verbose,
|
||||
const char *list_user, const char **errstr);
|
||||
const char *user, const char **errstr);
|
||||
int (*validate)(const char **errstr);
|
||||
void (*invalidate)(int remove);
|
||||
void (*invalidate)(int rmcred);
|
||||
int (*init_session)(struct passwd *pwd, char **user_env[],
|
||||
const char **errstr);
|
||||
void (*register_hooks)(int version,
|
||||
@@ -117,7 +117,7 @@ built against.
|
||||
.nf
|
||||
.RS 6n
|
||||
int (*open)(unsigned int version, sudo_conv_t conversation,
|
||||
sudo_printf_t plugin_printf, char * const settings[],
|
||||
sudo_printf_t sudo_plugin_printf, char * const settings[],
|
||||
char * const user_info[], char * const user_env[],
|
||||
char * const plugin_options[], const char **errstr);
|
||||
.RE
|
||||
@@ -132,7 +132,7 @@ will print a usage message before it exits.
|
||||
If an error occurs, the plugin may optionally call the
|
||||
\fBconversation\fR()
|
||||
or
|
||||
\fBplugin_printf\fR()
|
||||
\fBsudo_plugin_printf\fR()
|
||||
function with
|
||||
\fRSUDO_CONF_ERROR_MSG\fR
|
||||
to present additional error information to the user.
|
||||
@@ -154,7 +154,7 @@ function that can be used by the plugin to interact with the user (see
|
||||
for details).
|
||||
Returns 0 on success and \-1 on failure.
|
||||
.TP 6n
|
||||
\fIplugin_printf\fR
|
||||
\fIsudo_plugin_printf\fR
|
||||
A pointer to a
|
||||
\fBprintf\fR()-style
|
||||
function that may be used to display informational or error messages (see
|
||||
@@ -822,7 +822,7 @@ system call.
|
||||
The plugin is responsible for displaying error information via the
|
||||
\fBconversation\fR()
|
||||
or
|
||||
\fBplugin_printf\fR()
|
||||
\fBsudo_plugin_printf\fR()
|
||||
function.
|
||||
If the command was successfully executed, the value of
|
||||
\fIerror\fR
|
||||
@@ -861,7 +861,7 @@ option.
|
||||
The plugin may display its version information to the user via the
|
||||
\fBconversation\fR()
|
||||
or
|
||||
\fBplugin_printf\fR()
|
||||
\fBsudo_plugin_printf\fR()
|
||||
function using
|
||||
\fRSUDO_CONV_INFO_MSG\fR.
|
||||
If the user requests detailed version information, the
|
||||
@@ -948,7 +948,7 @@ exits.
|
||||
If an error occurs, the plugin may optionally call the
|
||||
\fBconversation\fR()
|
||||
or
|
||||
\fBplugin_printf\fR()
|
||||
\fBsudo_plugin_printf\fR()
|
||||
function with
|
||||
\fRSUDO_CONF_ERROR_MSG\fR
|
||||
to present additional error information to the user.
|
||||
@@ -1634,7 +1634,7 @@ Failure to do so may result in a crash.
|
||||
.nf
|
||||
.RS 6n
|
||||
int (*list)(int argc, char * const argv[], int verbose,
|
||||
const char *list_user, const char **errstr);
|
||||
const char *user, const char **errstr);
|
||||
.RE
|
||||
.fi
|
||||
.RS 6n
|
||||
@@ -1644,7 +1644,7 @@ Returns 1 on success, 0 on failure, and \-1 on error.
|
||||
On error, the plugin may optionally call the
|
||||
\fBconversation\fR()
|
||||
or
|
||||
\fBplugin_printf\fR()
|
||||
\fBsudo_plugin_printf\fR()
|
||||
function with
|
||||
\fRSUDO_CONF_ERROR_MSG\fR
|
||||
to present additional error information to
|
||||
@@ -1653,7 +1653,7 @@ the user.
|
||||
Privileges should be output via the
|
||||
\fBconversation\fR()
|
||||
or
|
||||
\fBplugin_printf\fR()
|
||||
\fBsudo_plugin_printf\fR()
|
||||
function using
|
||||
\fRSUDO_CONV_INFO_MSG\fR.
|
||||
.sp
|
||||
@@ -1680,7 +1680,7 @@ to the command should be displayed along with any command line arguments.
|
||||
\fIverbose\fR
|
||||
Flag indicating whether to list in verbose mode or not.
|
||||
.TP 6n
|
||||
\fIlist_user\fR
|
||||
\fIuser\fR
|
||||
The name of a different user to list privileges for if the policy
|
||||
allows it.
|
||||
If
|
||||
@@ -1749,7 +1749,7 @@ Returns 1 on success, 0 on failure, and \-1 on error.
|
||||
On error, the plugin may optionally call the
|
||||
\fBconversation\fR()
|
||||
or
|
||||
\fBplugin_printf\fR()
|
||||
\fBsudo_plugin_printf\fR()
|
||||
function with
|
||||
\fRSUDO_CONF_ERROR_MSG\fR
|
||||
to present additional
|
||||
@@ -1791,7 +1791,7 @@ Failure to do so may result in a crash.
|
||||
\fIinvalidate\fR
|
||||
.nf
|
||||
.RS 6n
|
||||
void (*invalidate)(int remove);
|
||||
void (*invalidate)(int rmcred);
|
||||
.RE
|
||||
.fi
|
||||
.RS 6n
|
||||
@@ -1811,7 +1811,7 @@ that
|
||||
cache authentication credentials, this function will invalidate the
|
||||
credentials.
|
||||
If the
|
||||
\fIremove\fR
|
||||
\fIrmcred\fR
|
||||
flag is non-zero, the plugin may remove
|
||||
the credentials instead of simply invalidating them.
|
||||
.sp
|
||||
@@ -1853,7 +1853,7 @@ Returns 1 on success, 0 on failure, and \-1 on error.
|
||||
On error, the plugin may optionally call the
|
||||
\fBconversation\fR()
|
||||
or
|
||||
\fBplugin_printf\fR()
|
||||
\fBsudo_plugin_printf\fR()
|
||||
function with
|
||||
\fRSUDO_CONF_ERROR_MSG\fR
|
||||
to present additional
|
||||
@@ -2097,7 +2097,7 @@ struct io_plugin {
|
||||
unsigned int type; /* always SUDO_IO_PLUGIN */
|
||||
unsigned int version; /* always SUDO_API_VERSION */
|
||||
int (*open)(unsigned int version, sudo_conv_t conversation,
|
||||
sudo_printf_t plugin_printf, char * const settings[],
|
||||
sudo_printf_t sudo_plugin_printf, char * const settings[],
|
||||
char * const user_info[], char * const command_info[],
|
||||
int argc, char * const argv[], char * const user_env[],
|
||||
char * const plugin_options[], const char **errstr);
|
||||
@@ -2197,7 +2197,7 @@ built against.
|
||||
.nf
|
||||
.RS 6n
|
||||
int (*open)(unsigned int version, sudo_conv_t conversation,
|
||||
sudo_printf_t plugin_printf, char * const settings[],
|
||||
sudo_printf_t sudo_plugin_printf, char * const settings[],
|
||||
char * const user_info[], char * const command_info[],
|
||||
int argc, char * const argv[], char * const user_env[],
|
||||
char * const plugin_options[]);
|
||||
@@ -2230,7 +2230,7 @@ will print a usage message before it exits.
|
||||
If an error occurs, the plugin may optionally call the
|
||||
\fBconversation\fR()
|
||||
or
|
||||
\fBplugin_printf\fR()
|
||||
\fBsudo_plugin_printf\fR()
|
||||
function with
|
||||
\fRSUDO_CONF_ERROR_MSG\fR
|
||||
to present additional error information to the user.
|
||||
@@ -2259,7 +2259,7 @@ The
|
||||
\fBconversation\fR()
|
||||
function returns 0 on success and \-1 on failure.
|
||||
.TP 6n
|
||||
\fIplugin_printf\fR
|
||||
\fIsudo_plugin_printf\fR
|
||||
A pointer to a
|
||||
\fBprintf\fR()-style
|
||||
function that may be used by the
|
||||
@@ -2267,10 +2267,10 @@ function that may be used by the
|
||||
function to display version information (see
|
||||
show_version below).
|
||||
The
|
||||
\fBplugin_printf\fR()
|
||||
\fBsudo_plugin_printf\fR()
|
||||
function may also be used to display additional error message to the user.
|
||||
The
|
||||
\fBplugin_printf\fR()
|
||||
\fBsudo_plugin_printf\fR()
|
||||
function returns number of characters printed on success and \-1 on failure.
|
||||
.TP 6n
|
||||
\fIsettings\fR
|
||||
@@ -2511,7 +2511,7 @@ option.
|
||||
The plugin may display its version information to the user via the
|
||||
\fBconversation\fR()
|
||||
or
|
||||
\fBplugin_printf\fR()
|
||||
\fBsudo_plugin_printf\fR()
|
||||
function using
|
||||
\fRSUDO_CONV_INFO_MSG\fR.
|
||||
If the user requests detailed version information, the
|
||||
@@ -3008,7 +3008,7 @@ struct audit_plugin {
|
||||
unsigned int type; /* always SUDO_AUDIT_PLUGIN */
|
||||
unsigned int version; /* always SUDO_API_VERSION */
|
||||
int (*open)(unsigned int version, sudo_conv_t conversation,
|
||||
sudo_printf_t sudo_printf, char * const settings[],
|
||||
sudo_printf_t sudo_plugin_printf, char * const settings[],
|
||||
char * const user_info[], int submit_optind,
|
||||
char * const submit_argv[], char * const submit_envp[],
|
||||
char * const plugin_options[], const char **errstr);
|
||||
@@ -3065,7 +3065,7 @@ built against.
|
||||
.nf
|
||||
.RS 6n
|
||||
int (*open)(unsigned int version, sudo_conv_t conversation,
|
||||
sudo_printf_t sudo_printf, char * const settings[],
|
||||
sudo_printf_t sudo_plugin_printf, char * const settings[],
|
||||
char * const user_info[], int submit_optind,
|
||||
char * const submit_argv[], char * const submit_envp[],
|
||||
char * const plugin_options[], const char **errstr);
|
||||
@@ -3687,7 +3687,7 @@ struct approval_plugin {
|
||||
unsigned int type; /* always SUDO_APPROVAL_PLUGIN */
|
||||
unsigned int version; /* always SUDO_API_VERSION */
|
||||
int (*open)(unsigned int version, sudo_conv_t conversation,
|
||||
sudo_printf_t sudo_printf, char * const settings[],
|
||||
sudo_printf_t sudo_plugin_printf, char * const settings[],
|
||||
char * const user_info[], int submit_optind,
|
||||
char * const submit_argv[], char * const submit_envp[],
|
||||
char * const plugin_options[], const char **errstr);
|
||||
@@ -3737,7 +3737,7 @@ built against.
|
||||
.nf
|
||||
.RS 6n
|
||||
int (*open)(unsigned int version, sudo_conv_t conversation,
|
||||
sudo_printf_t sudo_printf, char * const settings[],
|
||||
sudo_printf_t sudo_plugin_printf, char * const settings[],
|
||||
char * const user_info[], int submit_optind,
|
||||
char * const submit_argv[], char * const submit_envp[],
|
||||
char * const plugin_options[], const char **errstr);
|
||||
@@ -5013,7 +5013,7 @@ initialization, cleanup, and group lookup.
|
||||
.RS 0n
|
||||
struct sudoers_group_plugin {
|
||||
unsigned int version;
|
||||
int (*init)(int version, sudo_printf_t sudo_printf,
|
||||
int (*init)(int version, sudo_printf_t sudo_plugin_printf,
|
||||
char *const argv[]);
|
||||
void (*cleanup)(void);
|
||||
int (*query)(const char *user, const char *group,
|
||||
@@ -5039,7 +5039,7 @@ was built against.
|
||||
\fIinit\fR
|
||||
.nf
|
||||
.RS 6n
|
||||
int (*init)(int version, sudo_printf_t plugin_printf,
|
||||
int (*init)(int version, sudo_printf_t sudo_plugin_printf,
|
||||
char *const argv[]);
|
||||
.RE
|
||||
.fi
|
||||
|
Reference in New Issue
Block a user