1
0
mirror of https://github.com/fspc/gbootroot.git synced 2025-02-23 09:03:23 -05:00

This returns the logic back to the original default for pam by not checking for lib deps

for pam service modules when PAM Config is off.
This commit is contained in:
freesource 2001-11-29 17:32:33 +00:00
parent b883f0e687
commit f32ff9594c

View File

@ -52,7 +52,7 @@ use BootRoot::Error;
my (%Included, %replaced_by, %links_to, %is_module, %hardlinked, my (%Included, %replaced_by, %links_to, %is_module, %hardlinked,
%strippable, %lib_needed_by, @Libs, %user_defined_link); %strippable, %lib_needed_by, @Libs, %user_defined_link);
my %pam_repeats; my (%pam_repeats, $find_pam);
my $cf_line = 0; my $cf_line = 0;
my $BLKGETSIZE_ioctl = 4704; my $BLKGETSIZE_ioctl = 4704;
my $BLKFLSBUF_ioctl = 4705; my $BLKFLSBUF_ioctl = 4705;
@ -494,7 +494,7 @@ sub extra_links {
# First we find nss and pam stuff if asked for. # First we find nss and pam stuff if asked for.
my $find_nss = $nss_pam->{60}{conf_nss}; my $find_nss = $nss_pam->{60}{conf_nss};
my $find_pam = $nss_pam->{61}{conf_pam}; $find_pam = $nss_pam->{61}{conf_pam};
if ( $find_nss == 1 || $find_pam == 1 ) { if ( $find_nss == 1 || $find_pam == 1 ) {
@ -600,6 +600,14 @@ sub library_dependencies {
( $file =~ m,/security/pam_\w+\.so, ) ( $file =~ m,/security/pam_\w+\.so, )
) { ) {
## Determine whether to continue with pam to keep original
## default behavior.
if ( $find_pam != 1 ) {
if ( $file =~ m,/security/pam_\w+\.so, ) {
next;
}
}
##### EXECUTABLE LOADABLE BINARY ##### EXECUTABLE LOADABLE BINARY
##### Run ldd to get library dependencies. ##### Run ldd to get library dependencies.
my $line; my $line;