2
0
mirror of https://github.com/sudo-project/sudo.git synced 2025-08-31 06:15:37 +00:00

Add missing python_plugin.exp.in file and remove unneeded __dso_public

This fixes building the python plugin on systems where the compiler
doesn't support symbol hiding (but wherethe linker does).
This commit is contained in:
Todd C. Miller
2020-08-03 09:53:12 -06:00
parent 974f833e17
commit 3b4d4ab8dd
6 changed files with 14 additions and 4 deletions

View File

@@ -0,0 +1,8 @@
group_plugin
python_approval
python_approval_clone
python_audit
python_audit_clone
python_io
python_io_clone
python_policy

View File

@@ -43,7 +43,7 @@ CALLBACK_CFUNC(show_version)(int verbose)
return python_plugin_approval_show_version(&PLUGIN_CTX, verbose);
}
__dso_public struct approval_plugin APPROVAL_SYMBOL_NAME(python_approval) = {
struct approval_plugin APPROVAL_SYMBOL_NAME(python_approval) = {
SUDO_APPROVAL_PLUGIN,
SUDO_API_VERSION,
CALLBACK_CFUNC(open),

View File

@@ -60,7 +60,7 @@ CALLBACK_CFUNC(show_version)(int verbose)
return python_plugin_audit_show_version(&PLUGIN_CTX, verbose);
}
__dso_public struct audit_plugin AUDIT_SYMBOL_NAME(python_audit) = {
struct audit_plugin AUDIT_SYMBOL_NAME(python_audit) = {
SUDO_AUDIT_PLUGIN,
SUDO_API_VERSION,
CALLBACK_CFUNC(open),