[linux-pam] New autotools do not create empty directories on install.
by Tomáš Mráz
commit 01e176ec352748487212e59723192d8dbdf53e29
Author: Tomas Mraz <tmraz(a)fedoraproject.org>
Date: Mon Jul 23 18:32:16 2012 +0200
New autotools do not create empty directories on install.
modules/pam_namespace/Makefile.am: Add install-data-local target to create
namespaceddir.
modules/pam_sepermit/Makefile.am: Add install-data-local target to create
sepermitlockdir.
modules/pam_namespace/Makefile.am | 4 +++-
modules/pam_sepermit/Makefile.am | 5 +++--
2 files changed, 6 insertions(+), 3 deletions(-)
---
diff --git a/modules/pam_namespace/Makefile.am b/modules/pam_namespace/Makefile.am
index 586a543..a28f196 100644
--- a/modules/pam_namespace/Makefile.am
+++ b/modules/pam_namespace/Makefile.am
@@ -38,7 +38,9 @@ if HAVE_UNSHARE
secureconf_DATA = namespace.conf
secureconf_SCRIPTS = namespace.init
- namespaced_DATA =
+
+install-data-local:
+ mkdir -p $(namespaceddir)
endif
diff --git a/modules/pam_sepermit/Makefile.am b/modules/pam_sepermit/Makefile.am
index d1a557f..cfc5594 100644
--- a/modules/pam_sepermit/Makefile.am
+++ b/modules/pam_sepermit/Makefile.am
@@ -32,9 +32,10 @@ endif
if HAVE_LIBSELINUX
secureconf_DATA = sepermit.conf
- sepermitlock_DATA =
-
securelib_LTLIBRARIES = pam_sepermit.la
+
+install-data-local:
+ mkdir -p $(sepermitlockdir)
endif
if ENABLE_REGENERATE_MAN
noinst_DATA = README pam_sepermit.8 sepermit.conf.5
11 years, 9 months
[linux-pam] RLIMIT_* variables are no longer defined unless you explicitly include sys/resource.h.
by Tomáš Mráz
commit 8e508f23bf5ed727649c99bbd540f7b1c2c2bd35
Author: Stevan Bajić <stevan(a)bajic.ch>
Date: Mon Jul 9 09:43:11 2012 +0200
RLIMIT_* variables are no longer defined unless you explicitly include
sys/resource.h.
Signed-off-by: Diego Elio Pettenò <flameeyes(a)flameeyes.eu>
modules/pam_unix/pam_unix_acct.c: Include sys/resource.h.
modules/pam_unix/pam_unix_acct.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/modules/pam_unix/pam_unix_acct.c b/modules/pam_unix/pam_unix_acct.c
index 8e90cc9..4a362f8 100644
--- a/modules/pam_unix/pam_unix_acct.c
+++ b/modules/pam_unix/pam_unix_acct.c
@@ -41,6 +41,7 @@
#include <string.h>
#include <unistd.h>
#include <sys/types.h>
+#include <sys/resource.h>
#include <syslog.h>
#include <pwd.h>
#include <shadow.h>
11 years, 9 months