From 9294108cd6be28463c3116c2c247a8c46c77d941 Mon Sep 17 00:00:00 2001 From: Robert Manner Date: Thu, 23 Jan 2020 15:28:13 +0100 Subject: [PATCH] doc/sudo_plugin_python: update doc about the multiple I/O plugin loading --- doc/sudo_plugin_python.man.in | 14 +++++--------- doc/sudo_plugin_python.mdoc.in | 14 +++++--------- 2 files changed, 10 insertions(+), 18 deletions(-) diff --git a/doc/sudo_plugin_python.man.in b/doc/sudo_plugin_python.man.in index 3e0b3ed0c..8c4ff501b 100644 --- a/doc/sudo_plugin_python.man.in +++ b/doc/sudo_plugin_python.man.in @@ -539,8 +539,7 @@ Plugin python_io python_plugin.so ModulePath= ClassName= .RE .fi .PP -Sudo supports loading multiple I/O plugins, but currently only one -of them can be written in Python. +Sudo supports loading multiple I/O plugins. Currently only 8 python I/O plugins can be loaded at once. .PP An I/O plugin may have the following member functions: .TP 6n @@ -1298,14 +1297,11 @@ This is how the plugin API accepts options and settings. .SH "PLUGIN API CHANGELOG (Python)" None yet .SH "LIMITATIONS" -Sudo supports using multiple I/O plugins, but currently only one I/O -plugin can be written in Python. +Only a maximum number of 8 python I/O plugins can be loaded at once. If +\fI@sysconfdir@/sudo.conf\fR +contains more, those will be rejected with a warning message. .PP -The hook function API is currently not accessible for Python plugins. -.PP -I/O and Group plugins written in Python do not support the -\fBevent_alloc\fR() -callback. +The Event API and the hook function API is currently not accessible for Python plugins. .SH "SEE ALSO" sudo.conf(@mansectform@), sudo_plugin(@mansectform@), diff --git a/doc/sudo_plugin_python.mdoc.in b/doc/sudo_plugin_python.mdoc.in index 14b5f4973..b037d9b7f 100644 --- a/doc/sudo_plugin_python.mdoc.in +++ b/doc/sudo_plugin_python.mdoc.in @@ -436,8 +436,7 @@ For example: Plugin python_io python_plugin.so ModulePath= ClassName= .Ed .Pp -Sudo supports loading multiple I/O plugins, but currently only one -of them can be written in Python. +Sudo supports loading multiple I/O plugins. Currently only 8 python I/O plugins can be loaded at once. .Pp An I/O plugin may have the following member functions: .Bl -tag -width 4n @@ -1061,14 +1060,11 @@ This is how the plugin API accepts options and settings. .Sh PLUGIN API CHANGELOG (Python) None yet .Sh LIMITATIONS -Sudo supports using multiple I/O plugins, but currently only one I/O -plugin can be written in Python. +Only a maximum number of 8 python I/O plugins can be loaded at once. If +.Pa @sysconfdir@/sudo.conf +contains more, those will be rejected with a warning message. .Pp -The hook function API is currently not accessible for Python plugins. -.Pp -I/O and Group plugins written in Python do not support the -.Fn event_alloc -callback. +The Event API and the hook function API is currently not accessible for Python plugins. .Sh SEE ALSO .Xr sudo.conf @mansectform@ , .Xr sudo_plugin @mansectform@ ,