]> granicus.if.org Git - sudo/commitdiff
Add missing __dso_public to plugin structs so they are exported.
authorTodd C. Miller <Todd.Miller@courtesan.com>
Wed, 6 Feb 2013 18:08:48 +0000 (13:08 -0500)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Wed, 6 Feb 2013 18:08:48 +0000 (13:08 -0500)
plugins/sample/sample_plugin.c
plugins/sample_group/sample_group.c
plugins/system_group/system_group.c

index 23043d09578ee6114fde11050889c9230fc9079a..6a0b8aab0b8518a280bad2ebfd7a8b05234b391b 100644 (file)
@@ -502,7 +502,7 @@ struct policy_plugin sample_policy = {
  * Note: This plugin does not differentiate between tty and pipe I/O.
  *       It all gets logged to the same file.
  */
-struct io_plugin sample_io = {
+__dso_public struct io_plugin sample_io = {
     SUDO_IO_PLUGIN,
     SUDO_API_VERSION,
     io_open,
index 1cd238c75adf1f2d140755546418c014cb02fefe..2d46693d6123a7d4ca5ea7a57745e54a0503a0d3 100644 (file)
@@ -131,7 +131,7 @@ sample_query(const char *user, const char *group, const struct passwd *pwd)
     return false;
 }
 
-struct sudoers_group_plugin group_plugin = {
+__dso_public struct sudoers_group_plugin group_plugin = {
     GROUP_API_VERSION,
     sample_init,
     sample_cleanup,
index d6567dbd3956d3ca20e9557cb5af4a39c38d45b1..242805b2c866dfcd5ca938d2ad510bb3d2f405ba 100644 (file)
@@ -162,7 +162,7 @@ sysgroup_query(const char *user, const char *group, const struct passwd *pwd)
     return false;
 }
 
-struct sudoers_group_plugin group_plugin = {
+__dso_public struct sudoers_group_plugin group_plugin = {
     GROUP_API_VERSION,
     sysgroup_init,
     sysgroup_cleanup,