Robert Manner 27de7dd24d plugins/python: only deinit interpreters when sudo unlinks the plugin
This only happens when sudo unloads the last python plugin.
The reason doing so is because there are some python modules which
does not support importing them again after destroying the interpreter
which has imported them previously.

Another solution would be to just leak the interpreters (let the kernel
free up), but then there might be some python resources like open files
would not get cleaned up correctly if the plugin is badly written.

Tests are meant to test the scenario sudo does, so I have modified them
to generally do not unlink but only a few times (~per plugin type) so it
does not use 48 interpreters (one gets started on every plugin->open) and
it is visible at least which type of plugin fails deinit if there is an
error.
2020-02-19 11:48:16 -07:00
2020-01-21 13:31:07 -07:00
2020-02-18 13:13:03 -07:00
2019-10-24 20:04:33 -06:00
2010-01-18 05:45:25 +00:00
2015-10-23 14:13:54 -06:00
2017-06-02 16:10:37 -06:00
2016-10-21 10:03:02 -06:00
2020-01-29 20:26:32 -07:00
2015-11-20 10:51:11 -07:00

The sudo philosophy
===================
Sudo is a program designed to allow a sysadmin to give limited root privileges
to users and log root activity.  The basic philosophy is to give as few
privileges as possible but still allow people to get their work done.

Where to find sudo
==================
Before you try and build sudo, *please* make sure you have the current
version.  The latest sudo may always be gotten via anonymous ftp from
ftp.sudo.ws in the directory /pub/sudo/ or from the sudo web site,
https://www.sudo.ws/

The distribution is sudo-M.m.tar.gz where `M' is the major version
number and `m' is the minor version number.  BETA versions of sudo may
also be available.  If you join the `sudo-workers' mailing list you
will get the BETA announcements (see the `Mailing lists' section below).

What's new
==========
See the NEWS file for a list of major changes in this release.
For a complete list of changes, see the ChangeLog file.  For a
summary of major changes to the current stable release, see the web
page, https://www.sudo.ws/stable.html.

If you are upgrading from an earlier version of Sudo, please see
the UPGRADE file in the doc directory.

For a history of sudo please see the HISTORY file in the doc directory.
You can find a list of contributors to sudo in the doc/CONTRIBUTORS file.

Building the release
====================
Please read the installation guide in the `INSTALL' file before trying to
build sudo.  Pay special attention to the "OS dependent notes" section.

Copyright
=========
Sudo is distributed under an ISC-style license.
Please refer to the `LICENSE' file included with the release for details.

Mailing lists
=============
sudo-announce	This list receives announcements whenever a new version
		of sudo is released.
		https://www.sudo.ws/mailman/listinfo/sudo-announce

sudo-users	This list is for questions and general discussion about sudo.
		https://www.sudo.ws/mailman/listinfo/sudo-users

sudo-workers	This list is for people working on and porting sudo.
		https://www.sudo.ws/mailman/listinfo/sudo-workers

sudo-commits	This list receives a message for each commit made to
		the sudo source repository.
		https://www.sudo.ws/mailman/listinfo/sudo-commits

To subscribe to a list, visit its url (as listed above) and enter
your email address to subscribe.  Digest versions are available but
these are fairly low traffic lists so the digest versions are not
a significant win.

Mailing list archives are also available.  See the mailing list web sites
for the appropriate links.

Web page
========
There is a sudo web page at https://www.sudo.ws/ that contains an
overview of sudo, documentation, downloads, a bug tracker, information
about beta versions and other useful info.

Bug reports
===========
If you have found what you believe to be a bug, you can file a bug
report in the sudo bug database, on the web at https://bugzilla.sudo.ws/.

Please read over the `TROUBLESHOOTING' file in the doc directory *before*
submitting a bug report.  When reporting bugs, please be sure to include
the version of sudo you are using as well as the platform you are running
it on.
Description
No description provided
Readme 166 MiB
Languages
C 72.1%
Shell 8.6%
Makefile 7.9%
Roff 5.3%
M4 3.1%
Other 2.9%