Package: pam-python / 1.1.0~git20220701.1d4e111-2

Metadata

Package Version Patches format
pam-python 1.1.0~git20220701.1d4e111-2 3.0 (quilt)

Patch series

view the series file
Patch File delta Description
0002_Use Python3 s PyUnicode_GET_LENGTH as Py23_String_Si.patch | (download)

src/pam_python.c | 2 1 + 1 - 0 !
1 file changed, 1 insertion(+), 1 deletion(-)

 [patch 2/8] use python3's pyunicode_get_length as py23_string_size,
 not PyBytes_Size.

 This resolves a segmentation fault during pam_putenv() based
 environment variable assignments.

Signed-off-by: Mike Gabriel <mike.gabriel@das-netzwerkteam.de>

0003_src test.py Adjust test pam_python 3 .pam test modul.patch | (download)

src/test.py | 4 2 + 2 - 0 !
1 file changed, 2 insertions(+), 2 deletions(-)

 [patch 3/8] src/test.py: adjust test-pam_python{,3}.pam test module
 name according to what Python version runs the unit test.

Signed-off-by: Mike Gabriel <mike.gabriel@das-netzwerkteam.de>

0004_src test.py StringType in Python3 is str whereas str.patch | (download)

src/test.py | 12 8 + 4 - 0 !
1 file changed, 8 insertions(+), 4 deletions(-)

 [patch 4/8] src/test.py: stringtype in python3 is 'str', whereas
 'string' in Python2. Adjust test result check to that.

Signed-off-by: Mike Gabriel <mike.gabriel@das-netzwerkteam.de>

0005_src Makefile Also clean up src __pycache__ if it exi.patch | (download)

src/Makefile | 2 1 + 1 - 0 !
1 file changed, 1 insertion(+), 1 deletion(-)

 [patch 5/8] src/makefile: also clean-up src/__pycache__/ if it
 exists.

Signed-off-by: Mike Gabriel <mike.gabriel@das-netzwerkteam.de>

0006_src Makefile Use Python3 compliant way of finding th.patch | (download)

src/Makefile | 2 1 + 1 - 0 !
1 file changed, 1 insertion(+), 1 deletion(-)

 [patch 6/8] src/makefile: use python3 compliant way of finding the
 correct symlink target for pam_python.so.

Signed-off-by: Mike Gabriel <mike.gabriel@das-netzwerkteam.de>

0007_src Makefile Use python3 as PYTHON by default.patch | (download)

src/Makefile | 2 1 + 1 - 0 !
1 file changed, 1 insertion(+), 1 deletion(-)

 [patch 7/8] src/makefile: use python3 as $(python) by default.

Signed-off-by: Mike Gabriel <mike.gabriel@das-netzwerkteam.de>

0008_Bump upstream version to 1.1.0. Now with complete Py.patch | (download)

ChangeLog.txt | 10 9 + 1 - 0 !
doc/conf.py | 4 2 + 2 - 0 !
src/setup.py | 2 1 + 1 - 0 !
3 files changed, 12 insertions(+), 4 deletions(-)

 [patch 8/8] bump upstream version to 1.1.0. now with complete python3
 support (also in unit tests).

Signed-off-by: Mike Gabriel <mike.gabriel@das-netzwerkteam.de>

2001_intersphinx localmapping.patch | (download)

doc/conf.py | 4 3 + 1 - 0 !
1 file changed, 3 insertions(+), 1 deletion(-)

 do not require internet access during building.
 intersphinx want to fetch some mapping data, and was set up to use
 the Internet to find it.  Use a local file from python-doc instead to
 avoid violating Debian policy 4.9.
0009_src test pam_python.pam.in Use more tabs make file m.patch | (download)

src/test-pam_python.pam.in | 8 4 + 4 - 0 !
1 file changed, 4 insertions(+), 4 deletions(-)

 [patch 1/3] src/test-pam_python.pam.in: use more tabs, make file more
 readable by the human eye.

Signed-off-by: Mike Gabriel <mike.gabriel@das-netzwerkteam.de>

0010_src Makefile When creating symlink test pam_ PYTHON .patch | (download)

src/Makefile | 2 1 + 1 - 0 !
1 file changed, 1 insertion(+), 1 deletion(-)

 [patch 2/3] src/makefile: when creating symlink
 test-pam_$(PYTHON)-installed.pam, also duplicate that symlink as
 test-pam_$(PYTHON).pam (used by src/test.py).

Signed-off-by: Mike Gabriel <mike.gabriel@das-netzwerkteam.de>

0011_src Makefile Fix sed expression pam_python.so is spe.patch | (download)

src/Makefile | 2 1 + 1 - 0 !
1 file changed, 1 insertion(+), 1 deletion(-)

 [patch 3/3] src/makefile: fix sed expression (pam_python.so is
 spelled with underscore, not with dash).

Signed-off-by: Mike Gabriel <mike.gabriel@das-netzwerkteam.de>

1001_Py_DontWriteBytecodeFlag deprecation in py312.patch | (download)

src/Makefile | 2 1 + 1 - 0 !
src/pam_python.c | 8 7 + 1 - 0 !
2 files changed, 8 insertions(+), 2 deletions(-)

 use new pyconfig api starting with python 3.12.
1010_test_cve_2019 16729.patch | (download)

src/ctest.c | 5 3 + 2 - 0 !
src/test.py | 54 46 + 8 - 0 !
2 files changed, 49 insertions(+), 10 deletions(-)

 fix cve-2019-16729, add unit test so it doesn't get unfixed again.