aboutsummaryrefslogtreecommitdiff
path: root/debian/patches/pam-limits-nofile-fd-setsize-cap
diff options
context:
space:
mode:
authorSam Hartman <hartmans@debian.org>2025-01-14 15:52:15 -0700
committerSam Hartman <hartmans@debian.org>2025-01-14 15:52:15 -0700
commit4b5550d19d33e748a144700bb7f105e588bae29c (patch)
treea97cea59e7487d46e5e9beab6f9f616dc2b4853c /debian/patches/pam-limits-nofile-fd-setsize-cap
parent4ff277973391ae6879656bb534665e3a4f1f1a1a (diff)
downloadpam-4b5550d19d33e748a144700bb7f105e588bae29c.tar.gz
pam-4b5550d19d33e748a144700bb7f105e588bae29c.tar.bz2
pam-4b5550d19d33e748a144700bb7f105e588bae29c.zip
Rebuild patches
Diffstat (limited to 'debian/patches/pam-limits-nofile-fd-setsize-cap')
-rw-r--r--debian/patches/pam-limits-nofile-fd-setsize-cap8
1 files changed, 4 insertions, 4 deletions
diff --git a/debian/patches/pam-limits-nofile-fd-setsize-cap b/debian/patches/pam-limits-nofile-fd-setsize-cap
index 866ff1e3..d75fec95 100644
--- a/debian/patches/pam-limits-nofile-fd-setsize-cap
+++ b/debian/patches/pam-limits-nofile-fd-setsize-cap
@@ -45,12 +45,12 @@ Last-Update: 2015-04-22
1 file changed, 8 insertions(+)
diff --git a/modules/pam_limits/pam_limits.c b/modules/pam_limits/pam_limits.c
-index adda08b..a58d424 100644
+index 7e2d93d..2603028 100644
--- a/modules/pam_limits/pam_limits.c
+++ b/modules/pam_limits/pam_limits.c
-@@ -459,6 +459,14 @@ static void parse_kernel_limits(pam_handle_t *pamh, struct pam_limit_s *pl, int
- pl->limits[i].src_hard = LIMITS_DEF_KERNEL;
+@@ -539,6 +539,14 @@ static void parse_kernel_limits(pam_handle_t *pamh, struct pam_limit_s *pl, int
}
+ free(line);
fclose(limitsfile);
+
+ /* Cap the default soft nofile limit read from pid 1 to FD_SETSIZE
@@ -61,5 +61,5 @@ index adda08b..a58d424 100644
+ pl->limits[RLIMIT_NOFILE].limit.rlim_cur = FD_SETSIZE;
+ }
}
+ #endif
- static int init_limits(pam_handle_t *pamh, struct pam_limit_s *pl, int ctrl)