[prev in list] [next in list] [prev in thread] [next in thread]
List: linux-pam-commits
Subject: [linux-pam] pam_unix: fix build in --enable-selinux mode
From: ldv () fedoraproject ! org (Dmitry V ! Levin)
Date: 2012-10-10 18:41:49
Message-ID: 20121010184149.DF80E1D87 () hosted02 ! fedoraproject ! org
[Download RAW message or body]
commit 0603b28023ebe44151466bfb33c60687922e0b0b
Author: Dmitry V. Levin <ldv at altlinux.org>
Date: Wed Oct 10 18:13:07 2012 +0000
pam_unix: fix build in --enable-selinux mode
glibc's <sys/wait.h> starting with commit
http://sourceware.org/git/?p=glibc.git;a=commitdiff;h=glibc-2.15-231-gd94a467
does not include <sys/resource.h> for POSIX 2008 conformance reasons, so
when pam is being built with SELinux support enabled, pam_unix_passwd.c
uses getrlimit(2) and therefore should include <sys/resource.h> without
relying on other headers.
* modules/pam_unix/pam_unix_passwd.c: Include <sys/resource.h>.
Reported-by: Guido Trentalancia <guido at trentalancia.com>
Reported-by: "Jory A. Pratt" <anarchy at gentoo.org>
Reported-by: Diego Elio Pettenò <flameeyes at flameeyes.eu>
modules/pam_unix/pam_unix_passwd.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/modules/pam_unix/pam_unix_passwd.c b/modules/pam_unix/pam_unix_passwd.c
index 9e1302d..94bc3ec 100644
--- a/modules/pam_unix/pam_unix_passwd.c
+++ b/modules/pam_unix/pam_unix_passwd.c
@@ -58,6 +58,7 @@
#include <signal.h>
#include <errno.h>
#include <sys/wait.h>
+#include <sys/resource.h>
#include <security/_pam_macros.h>
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic