]> granicus.if.org Git - sudo/commitdiff
Document progname in settings
authorTodd C. Miller <Todd.Miller@courtesan.com>
Fri, 19 Mar 2010 11:56:06 +0000 (07:56 -0400)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Fri, 19 Mar 2010 11:56:06 +0000 (07:56 -0400)
doc/sudo_plugin.cat
doc/sudo_plugin.man.in
doc/sudo_plugin.pod

index 883257579c906293cb8586016e686851e7e06a00..a6dd702e40ae855e73841deee97aba65b3214052 100644 (file)
@@ -61,7 +61,7 @@ S\bSu\bud\bdo\bo P\bPl\blu\bug\bgi\bin\bn A\bAP\bPI\bI
 
 
 
-1.8.0a1                   March 17, 2010                        1
+1.8.0a1                   March 19, 2010                        1
 
 
 
@@ -127,7 +127,7 @@ SUDO_PLUGIN(1m)        MAINTENANCE COMMANDS       SUDO_PLUGIN(1m)
 
 
 
-1.8.0a1                   March 17, 2010                        2
+1.8.0a1                   March 19, 2010                        2
 
 
 
@@ -193,7 +193,7 @@ SUDO_PLUGIN(1m)        MAINTENANCE COMMANDS       SUDO_PLUGIN(1m)
 
 
 
-1.8.0a1                   March 17, 2010                        3
+1.8.0a1                   March 19, 2010                        3
 
 
 
@@ -210,6 +210,10 @@ SUDO_PLUGIN(1m)        MAINTENANCE COMMANDS       SUDO_PLUGIN(1m)
                    Authentication type, if specified by the -a flag, to use on
                    systems where BSD authentication is supported.
 
+               progname=string
+                   The command name that sudo was run as, typically "sudo" or
+                   "sudoedit".
+
                Additional settings may be added in the future so the plugin
                should silently ignore settings that it does not recognize.
 
@@ -252,14 +256,10 @@ SUDO_PLUGIN(1m)        MAINTENANCE COMMANDS       SUDO_PLUGIN(1m)
                    is no terminal device available, a default value of 24 is
                    used.
 
-               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 19, 2010                        4
 
 
 
@@ -268,6 +268,11 @@ SUDO_PLUGIN(1m)        MAINTENANCE COMMANDS       SUDO_PLUGIN(1m)
 SUDO_PLUGIN(1m)        MAINTENANCE COMMANDS       SUDO_PLUGIN(1m)
 
 
+               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.
+
            user_env
                The user's environment in the form of a NULL-terminated vector
                of "name=value" strings.
@@ -317,15 +322,10 @@ SUDO_PLUGIN(1m)        MAINTENANCE COMMANDS       SUDO_PLUGIN(1m)
            SUDO_CONF_ERROR_MSG to present additional error information to the
            user.
 
-           The function arguments are as follows:
-
-           argc
-               The number of elements in _\ba_\br_\bg_\bv, not counting the final NULL
-               pointer.
 
 
 
-1.8.0a1                   March 17, 2010                        5
+1.8.0a1                   March 19, 2010                        5
 
 
 
@@ -334,6 +334,12 @@ SUDO_PLUGIN(1m)        MAINTENANCE COMMANDS       SUDO_PLUGIN(1m)
 SUDO_PLUGIN(1m)        MAINTENANCE COMMANDS       SUDO_PLUGIN(1m)
 
 
+           The function arguments are as follows:
+
+           argc
+               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)
@@ -382,16 +388,10 @@ SUDO_PLUGIN(1m)        MAINTENANCE COMMANDS       SUDO_PLUGIN(1m)
 
                login_class=login_class
                    BSD login class to use when setting resource limits and
-                   nice value (optional).  This option is only set on systems
-                   that support login classes.
 
-               preserve_groups=bool
-                   If set, s\bsu\bud\bdo\bo will preserve the user's group vector instead
-                   of initializing the group vector based on runas_user.
 
 
-
-1.8.0a1                   March 17, 2010                        6
+1.8.0a1                   March 19, 2010                        6
 
 
 
@@ -400,6 +400,13 @@ SUDO_PLUGIN(1m)        MAINTENANCE COMMANDS       SUDO_PLUGIN(1m)
 SUDO_PLUGIN(1m)        MAINTENANCE COMMANDS       SUDO_PLUGIN(1m)
 
 
+                   nice value (optional).  This option is only set on systems
+                   that support login classes.
+
+               preserve_groups=bool
+                   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.
@@ -447,24 +454,25 @@ SUDO_PLUGIN(1m)        MAINTENANCE COMMANDS       SUDO_PLUGIN(1m)
            List available privileges for the invoking user.  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.
 
-           Privileges should be output via the conversation function using
-           SUDO_CONV_INFO_MSG.
 
-           verbose
-               Flag indicating whether to list in verbose mode or not.
 
+1.8.0a1                   March 19, 2010                        7
 
 
-1.8.0a1                   March 17, 2010                        7
 
 
 
+SUDO_PLUGIN(1m)        MAINTENANCE COMMANDS       SUDO_PLUGIN(1m)
 
 
-SUDO_PLUGIN(1m)        MAINTENANCE COMMANDS       SUDO_PLUGIN(1m)
+           to present additional error information to the user.
+
+           Privileges should be output via the conversation function using
+           SUDO_CONV_INFO_MSG.
 
+           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
@@ -512,18 +520,10 @@ SUDO_PLUGIN(1m)        MAINTENANCE COMMANDS       SUDO_PLUGIN(1m)
 
        _\bC_\bo_\bn_\bv_\be_\br_\bs_\ba_\bt_\bi_\bo_\bn _\bA_\bP_\bI
 
-       If the plugin needs to interact with the user or display informational
-       or error messages, it may do so via the conversation function.  A
-       plugin should not attempt to read directly from the standard input or
-       the user's tty (neither of which are guaranteed to exist).  The caller
-       must include a trailing newline in msg if they want one to be printed.
-
-
-
 
 
 
-1.8.0a1                   March 17, 2010                        8
+1.8.0a1                   March 19, 2010                        8
 
 
 
@@ -532,6 +532,12 @@ SUDO_PLUGIN(1m)        MAINTENANCE COMMANDS       SUDO_PLUGIN(1m)
 SUDO_PLUGIN(1m)        MAINTENANCE COMMANDS       SUDO_PLUGIN(1m)
 
 
+       If the plugin needs to interact with the user or display informational
+       or error messages, it may do so via the conversation function.  A
+       plugin should not attempt to read directly from the standard input or
+       the user's tty (neither of which are guaranteed to exist).  The caller
+       must include a trailing newline in msg if they want one to be printed.
+
         struct sudo_conv_message {
         #define SUDO_CONV_PROMPT_ECHO_OFF      1
         #define SUDO_CONV_PROMPT_ECHO_ON       2
@@ -580,23 +586,24 @@ SUDO_PLUGIN(1m)        MAINTENANCE COMMANDS       SUDO_PLUGIN(1m)
        disabled, such as passwords).  The log_output function receives output
        from the pseudo-tty that is suitable for replaying the user's session
        at a later time.  Either log_input or log_output may be NULL.  If the
-       open function returns 0, no I/O will be sent to the plugin.
 
-       The io_plugin struct has the following fields:
 
-       type
-           The type field should always be set to SUDO_IO_PLUGIN
 
+1.8.0a1                   March 19, 2010                        9
 
 
-1.8.0a1                   March 17, 2010                        9
 
 
 
+SUDO_PLUGIN(1m)        MAINTENANCE COMMANDS       SUDO_PLUGIN(1m)
 
 
-SUDO_PLUGIN(1m)        MAINTENANCE COMMANDS       SUDO_PLUGIN(1m)
+       open function returns 0, no I/O will be sent to the plugin.
+
+       The io_plugin struct has the following fields:
 
+       type
+           The type field should always be set to SUDO_IO_PLUGIN
 
        version
            The version field should be set to SUDO_API_VERSION.
@@ -646,23 +653,23 @@ SUDO_PLUGIN(1m)        MAINTENANCE COMMANDS       SUDO_PLUGIN(1m)
                the form of "name=value" strings.  The vector is terminated by
                a NULL pointer.
 
-               When parsing _\bu_\bs_\be_\br_\b__\bi_\bn_\bf_\bo, 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.
 
-               See the "Policy Plugin API" section for a list of all possible
-               strings.
 
+1.8.0a1                   March 19, 2010                       10
 
 
-1.8.0a1                   March 17, 2010                       10
 
 
 
+SUDO_PLUGIN(1m)        MAINTENANCE COMMANDS       SUDO_PLUGIN(1m)
 
 
-SUDO_PLUGIN(1m)        MAINTENANCE COMMANDS       SUDO_PLUGIN(1m)
+               When parsing _\bu_\bs_\be_\br_\b__\bi_\bn_\bf_\bo, 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.
 
+               See the "Policy Plugin API" section for a list of all possible
+               strings.
 
            user_env
                The user's environment in the form of a NULL-terminated vector
@@ -711,24 +718,24 @@ SUDO_PLUGIN(1m)        MAINTENANCE COMMANDS       SUDO_PLUGIN(1m)
 
            The function arguments are as follows:
 
-           buf The buffer containing user input.
 
-           len The length of _\bb_\bu_\bf in bytes.
 
-       log_output
-            int (*log_output)(const char *buf, unsigned int len);
 
+1.8.0a1                   March 19, 2010                       11
 
 
 
-1.8.0a1                   March 17, 2010                       11
 
 
+SUDO_PLUGIN(1m)        MAINTENANCE COMMANDS       SUDO_PLUGIN(1m)
 
 
+           buf The buffer containing user input.
 
-SUDO_PLUGIN(1m)        MAINTENANCE COMMANDS       SUDO_PLUGIN(1m)
+           len The length of _\bb_\bu_\bf in bytes.
 
+       log_output
+            int (*log_output)(const char *buf, unsigned int len);
 
            The _\bl_\bo_\bg_\b__\bo_\bu_\bt_\bp_\bu_\bt function is called whenever data can be read from
            the command but before it is written to the user's terminal.  This
@@ -780,13 +787,6 @@ SUDO_PLUGIN(1m)        MAINTENANCE COMMANDS       SUDO_PLUGIN(1m)
 
 
 
-
-
-
-
-
-
-
-1.8.0a1                   March 17, 2010                       12
+1.8.0a1                   March 19, 2010                       12
 
 
index 4173e931b498a6d91f8fb344ad19cf93376114ac..8dd462c15b37891e741741059cf391d523705eeb 100644 (file)
 .\" ========================================================================
 .\"
 .IX Title "SUDO_PLUGIN @mansectsu@"
-.TH SUDO_PLUGIN @mansectsu@ "March 17, 2010" "1.8.0a1" "MAINTENANCE COMMANDS"
+.TH SUDO_PLUGIN @mansectsu@ "March 19, 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
@@ -321,6 +321,9 @@ the \f(CW\*(C`\-t\*(C'\fR flag.
 .IX Item "bsdauth_type=string"
 Authentication type, if specified by the \f(CW\*(C`\-a\*(C'\fR flag, to use on
 systems where \s-1BSD\s0 authentication is supported.
+.IP "progname=string" 4
+.IX Item "progname=string"
+The command name that sudo was run as, typically \*(L"sudo\*(R" or \*(L"sudoedit\*(R".
 .RE
 .RS 4
 .Sp
index 2cfe58cec50f1fc37ee432f7181f64d90b32d822..8f3dbb378f66796cd9a514274284879afad38e93 100644 (file)
@@ -212,6 +212,10 @@ the C<-t> flag.
 Authentication type, if specified by the C<-a> flag, to use on
 systems where BSD authentication is supported.
 
+=item progname=string
+
+The command name that sudo was run as, typically "sudo" or "sudoedit".
+
 =back
 
 Additional settings may be added in the future so the plugin should