plugin was loaded from. It may be used by a plugin to
locate support files.
+ plugin_path=string
+ The path name of plugin loaded by the s\bsu\bud\bdo\bo front end.
+ The path name will be a fully-qualified unless the
+ plugin was statically compiled into s\bsu\bud\bdo\bo.
+
preserve_environment=bool
Set to true if the user specified the -\b-E\bE flag,
indicating that the user wishes to preserve the
Previously, output from the command would be displayed to the
terminal even if an output logging function returned 0.
+ Version 1.7 (sudo 1.8.12)
+ The _\bp_\bl_\bu_\bg_\bi_\bn_\b__\bp_\ba_\bt_\bh entry was added to the settings list.
+
S\bSE\bEE\bE A\bAL\bLS\bSO\bO
sudo.conf(4), sudoers(4), sudo(1m)
correspond to the directory the running plugin was loaded from.
It may be used by a plugin to locate support files.
.TP 6n
+plugin_path=string
+The path name of plugin loaded by the
+\fBsudo\fR
+front end.
+The path name will be a fully-qualified unless the plugin was
+statically compiled into
+\fBsudo\fR.
+.TP 6n
preserve_environment=bool
Set to true if the user specified the
\fB\-E\fR
The behavior when an I/O logging plugin returns 0 has changed.
Previously, output from the command would be displayed to the
terminal even if an output logging function returned 0.
+.TP 6n
+Version 1.7 (sudo 1.8.12)
+The
+\fIplugin_path\fR
+entry was added to the
+\fRsettings\fR
+list.
.SH "SEE ALSO"
sudo.conf(@mansectform@),
sudoers(@mansectform@),
This is the default directory set at compile time and may not
correspond to the directory the running plugin was loaded from.
It may be used by a plugin to locate support files.
+.It plugin_path=string
+The path name of plugin loaded by the
+.Nm sudo
+front end.
+The path name will be a fully-qualified unless the plugin was
+statically compiled into
+.Nm sudo .
.It preserve_environment=bool
Set to true if the user specified the
.Fl E
The behavior when an I/O logging plugin returns 0 has changed.
Previously, output from the command would be displayed to the
terminal even if an output logging function returned 0.
+.It Version 1.7 (sudo 1.8.12)
+The
+.Em plugin_path
+entry was added to the
+.Li settings
+list.
.El
.Sh SEE ALSO
.Xr sudo.conf @mansectform@ ,
/*
- * Copyright (c) 2009-2013 Todd C. Miller <Todd.Miller@courtesan.com>
+ * Copyright (c) 2009-2014 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
/* API version major/minor */
#define SUDO_API_VERSION_MAJOR 1
-#define SUDO_API_VERSION_MINOR 6
+#define SUDO_API_VERSION_MINOR 7
#define SUDO_API_MKVERSION(x, y) ((x << 16) | y)
#define SUDO_API_VERSION SUDO_API_MKVERSION(SUDO_API_VERSION_MAJOR, SUDO_API_VERSION_MINOR)
}
if (handle != NULL) {
policy_plugin->handle = handle;
+ policy_plugin->path = sudo_estrdup(path);
policy_plugin->name = info->symbol_name;
policy_plugin->options = info->options;
policy_plugin->u.generic = plugin;
if (handle != NULL) {
container = sudo_ecalloc(1, sizeof(*container));
container->handle = handle;
+ container->path = sudo_estrdup(path);
container->name = info->symbol_name;
container->options = info->options;
container->u.generic = plugin;
debug_decl(format_plugin_settings, SUDO_DEBUG_PCOMM)
plugin_settings = sudo_emallocarray(plugin_settings_size, sizeof(char *));
+ plugin_settings[num_plugin_settings++] =
+ sudo_new_key_val("plugin_path", plugin->path);
while (settings->name != NULL) {
if (settings->value != NULL) {
sudo_debug_printf(SUDO_DEBUG_INFO, "settings: %s=%s",
/*
- * Copyright (c) 2010-2013 Todd C. Miller <Todd.Miller@courtesan.com>
+ * Copyright (c) 2010-2014 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
struct plugin_container {
TAILQ_ENTRY(plugin_container) entries;
const char *name;
+ const char *path;
char * const *options;
void *handle;
union {