doc/sudo_plugin_python: update doc about the multiple I/O plugin loading

This commit is contained in:
Robert Manner
2020-01-23 15:28:13 +01:00
committed by Todd C. Miller
parent d3d3a59e08
commit 9294108cd6
2 changed files with 10 additions and 18 deletions

View File

@@ -539,8 +539,7 @@ Plugin python_io python_plugin.so ModulePath=<path> ClassName=<class>
.RE .RE
.fi .fi
.PP .PP
Sudo supports loading multiple I/O plugins, but currently only one Sudo supports loading multiple I/O plugins. Currently only 8 python I/O plugins can be loaded at once.
of them can be written in Python.
.PP .PP
An I/O plugin may have the following member functions: An I/O plugin may have the following member functions:
.TP 6n .TP 6n
@@ -1298,14 +1297,11 @@ This is how the plugin API accepts options and settings.
.SH "PLUGIN API CHANGELOG (Python)" .SH "PLUGIN API CHANGELOG (Python)"
None yet None yet
.SH "LIMITATIONS" .SH "LIMITATIONS"
Sudo supports using multiple I/O plugins, but currently only one I/O Only a maximum number of 8 python I/O plugins can be loaded at once. If
plugin can be written in Python. \fI@sysconfdir@/sudo.conf\fR
contains more, those will be rejected with a warning message.
.PP .PP
The hook function API is currently not accessible for Python plugins. The Event API and 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.
.SH "SEE ALSO" .SH "SEE ALSO"
sudo.conf(@mansectform@), sudo.conf(@mansectform@),
sudo_plugin(@mansectform@), sudo_plugin(@mansectform@),

View File

@@ -436,8 +436,7 @@ For example:
Plugin python_io python_plugin.so ModulePath=<path> ClassName=<class> Plugin python_io python_plugin.so ModulePath=<path> ClassName=<class>
.Ed .Ed
.Pp .Pp
Sudo supports loading multiple I/O plugins, but currently only one Sudo supports loading multiple I/O plugins. Currently only 8 python I/O plugins can be loaded at once.
of them can be written in Python.
.Pp .Pp
An I/O plugin may have the following member functions: An I/O plugin may have the following member functions:
.Bl -tag -width 4n .Bl -tag -width 4n
@@ -1061,14 +1060,11 @@ This is how the plugin API accepts options and settings.
.Sh PLUGIN API CHANGELOG (Python) .Sh PLUGIN API CHANGELOG (Python)
None yet None yet
.Sh LIMITATIONS .Sh LIMITATIONS
Sudo supports using multiple I/O plugins, but currently only one I/O Only a maximum number of 8 python I/O plugins can be loaded at once. If
plugin can be written in Python. .Pa @sysconfdir@/sudo.conf
contains more, those will be rejected with a warning message.
.Pp .Pp
The hook function API is currently not accessible for Python plugins. The Event API and 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.
.Sh SEE ALSO .Sh SEE ALSO
.Xr sudo.conf @mansectform@ , .Xr sudo.conf @mansectform@ ,
.Xr sudo_plugin @mansectform@ , .Xr sudo_plugin @mansectform@ ,