PAM: Delete old lib and symlinks

Message ID 1521377731-4322-1-git-send-email-erik.kapfer@ipfire.org
State Accepted
Commit e779b6bc7aa470289bde0bf99aa7051dffc4384b
Headers
Series PAM: Delete old lib and symlinks |

Commit Message

Erik Kapfer March 18, 2018, 11:55 p.m. UTC
  Core 119 update delivers an updated PAM whereby the libdir has been changed from /lib to /usr/lib
but the old libraries and symlinks are still presant. Since the system searches /lib before
/usr/lib , the old libs and symlinks are used which ends up in an `LIBPAM_EXTENSION_1.1' not found.

Signed-off-by: Erik Kapfer <erik.kapfer@ipfire.org>
---
 config/rootfiles/core/120/update.sh | 5 +++++
 1 file changed, 5 insertions(+)
  

Comments

ummeegge March 19, 2018, midnight UTC | #1
Hi,
problem on Core 119 with a not working PAM has been reported in the forum 
which we could solve like described in here 
https://forum.ipfire.org/viewtopic.php?f=22&t=20480

Best,

Erik

Am Sonntag, den 18.03.2018, 13:55 +0100 schrieb Erik Kapfer:
> Core 119 update delivers an updated PAM whereby the libdir has been
> changed from /lib to /usr/lib
> but the old libraries and symlinks are still presant. Since the
> system searches /lib before
> /usr/lib , the old libs and symlinks are used which ends up in an
> `LIBPAM_EXTENSION_1.1' not found.
> 
> Signed-off-by: Erik Kapfer <erik.kapfer@ipfire.org>
> ---
>  config/rootfiles/core/120/update.sh | 5 +++++
>  1 file changed, 5 insertions(+)
> 
> diff --git a/config/rootfiles/core/120/update.sh
> b/config/rootfiles/core/120/update.sh
> index 2f1bca0..02f2ad0 100644
> --- a/config/rootfiles/core/120/update.sh
> +++ b/config/rootfiles/core/120/update.sh
> @@ -34,6 +34,11 @@ done
>  # Remove forgotten PHP file
>  rm -f /etc/httpd/conf/conf.d/php5.conf
>  
> +# Delete old PAM libs and symlinks if presant
> +if ls /lib | grep -q 'libpam.*'; then
> +    rm -f /lib/libpam*
> +fi
> +
>  # Stop services
>  
>  # Extract files
  
Michael Tremer March 19, 2018, 12:43 a.m. UTC | #2
Hello,

we need to encourage people more to file tickets on BZ so that these
things don't go unmissed.

I barely read anything on the forum and even if I had seen something,
it is really hard to find the post again where something has been
reported.

-Michael

On Sun, 2018-03-18 at 14:00 +0100, ummeegge wrote:
> Hi,
> problem on Core 119 with a not working PAM has been reported in the forum 
> which we could solve like described in here 
> https://forum.ipfire.org/viewtopic.php?f=22&t=20480
> 
> Best,
> 
> Erik
> 
> Am Sonntag, den 18.03.2018, 13:55 +0100 schrieb Erik Kapfer:
> > Core 119 update delivers an updated PAM whereby the libdir has been
> > changed from /lib to /usr/lib
> > but the old libraries and symlinks are still presant. Since the
> > system searches /lib before
> > /usr/lib , the old libs and symlinks are used which ends up in an
> > `LIBPAM_EXTENSION_1.1' not found.
> > 
> > Signed-off-by: Erik Kapfer <erik.kapfer@ipfire.org>
> > ---
> >  config/rootfiles/core/120/update.sh | 5 +++++
> >  1 file changed, 5 insertions(+)
> > 
> > diff --git a/config/rootfiles/core/120/update.sh
> > b/config/rootfiles/core/120/update.sh
> > index 2f1bca0..02f2ad0 100644
> > --- a/config/rootfiles/core/120/update.sh
> > +++ b/config/rootfiles/core/120/update.sh
> > @@ -34,6 +34,11 @@ done
> >  # Remove forgotten PHP file
> >  rm -f /etc/httpd/conf/conf.d/php5.conf
> >  
> > +# Delete old PAM libs and symlinks if presant
> > +if ls /lib | grep -q 'libpam.*'; then
> > +    rm -f /lib/libpam*
> > +fi
> > +
> >  # Stop services
> >  
> >  # Extract files
  
ummeegge March 19, 2018, 2:13 a.m. UTC | #3
Hi Michael,

Am Sonntag, den 18.03.2018, 13:43 +0000 schrieb Michael Tremer:
> Hello,
> 
> we need to encourage people more to file tickets on BZ so that these
> things don't go unmissed.
important point but in that case problem has been seen, fixed, double
checked and pushed.

> 
> I barely read anything on the forum and even if I had seen something,
> it is really hard to find the post again where something has been
> reported.
> 
> -Michael

Best,

Erik
  

Patch

diff --git a/config/rootfiles/core/120/update.sh b/config/rootfiles/core/120/update.sh
index 2f1bca0..02f2ad0 100644
--- a/config/rootfiles/core/120/update.sh
+++ b/config/rootfiles/core/120/update.sh
@@ -34,6 +34,11 @@  done
 # Remove forgotten PHP file
 rm -f /etc/httpd/conf/conf.d/php5.conf
 
+# Delete old PAM libs and symlinks if presant
+if ls /lib | grep -q 'libpam.*'; then
+    rm -f /lib/libpam*
+fi
+
 # Stop services
 
 # Extract files