pam-1.5.3

This commit is contained in:
Rmys
2023-06-15 18:21:33 +00:00
committed by GitHub
parent b776c5c339
commit 8b8fde00d0
2 changed files with 45 additions and 5 deletions
@@ -0,0 +1,34 @@
Replace System V termio.h with POSIX termios.h for musl
Upstream: https://github.com/linux-pam/linux-pam/pull/576
Bug: https://bugs.gentoo.org/906137
From 5658105b04ad4df212baf302898ee2cca99516a6 Mon Sep 17 00:00:00 2001
From: Violet Purcell <vimproved@inventati.org>
Date: Thu, 11 May 2023 10:27:53 -0400
Subject: [PATCH] fix build on musl
--- a/examples/tty_conv.c
+++ b/examples/tty_conv.c
@@ -6,8 +6,9 @@
#include <string.h>
#include <errno.h>
#include <unistd.h>
-#include <termio.h>
+#include <termios.h>
#include <security/pam_appl.h>
+#include <sys/ioctl.h>
/***************************************
* @brief echo off/on
@@ -16,7 +17,7 @@
***************************************/
static void echoOff(int fd, int off)
{
- struct termio tty;
+ struct termios tty;
if (ioctl(fd, TCGETA, &tty) < 0)
{
fprintf(stderr, "TCGETA failed: %s\n", strerror(errno));
--
2.40.1
+11 -5
View File
@@ -12,7 +12,7 @@
<IsA>library</IsA>
<Summary>Pluggable Authentication Modules</Summary>
<Description>PAM (Pluggable Authentication Modules) is a system security tool that allows system administrators to set authentication policy without having to recompile programs that handle authentication.</Description>
<Archive sha1sum="789f16fe99edd3edc9af3a3c693339aea656023e" type="targz">https://github.com/linux-pam/linux-pam/archive/v1.5.2.tar.gz</Archive>
<Archive sha1sum="e61f6795ea81584917301d99c564d610e827295a" type="targz">https://github.com/linux-pam/linux-pam/archive/v1.5.3.tar.gz</Archive>
<AdditionalFiles>
<AdditionalFile target="pisi-pambase.sh" permission="0755">pisi-pambase.sh</AdditionalFile>
<!--AdditionalFile target="dlopen.sh" permission="0755">dlopen.sh</AdditionalFile>
@@ -23,10 +23,9 @@
<Dependency>audit-devel</Dependency>
<Dependency>libtirpc-devel</Dependency>
</BuildDependencies>
<!--Patches>
<Patch level="1">CVE-2020-27780.patch</Patch>
<Patch level="1">fedora/pam-1.4.0-full-relro.patch</Patch>
</Patches-->
<Patches>
<Patch level="1">gentoo/pam-1.5.3-termios.patch</Patch>
</Patches>
</Source>
<Package>
@@ -70,6 +69,13 @@
</Package>
<History>
<Update release="13">
<Date>2023-06-13</Date>
<Version>1.5.3</Version>
<Comment>Version bump.</Comment>
<Name>Mustafa Cinasal</Name>
<Email>muscnsl@gmail.com</Email>
</Update>
<Update release="12">
<Date>2022-12-31</Date>
<Version>1.5.2</Version>