Blame SOURCES/0001-Enable-PAM-support.patch

5766b0
From 62b9fa5973d71f3525af29f04f03e05bbaf196e6 Mon Sep 17 00:00:00 2001
5766b0
From: Adam Jackson <ajax@redhat.com>
5766b0
Date: Mon, 27 Jun 2011 12:42:28 -0400
5766b0
Subject: [PATCH 05/15] Enable PAM support
5766b0
5766b0
Signed-off-by: Adam Jackson <ajax@redhat.com>
5766b0
---
5766b0
 configure.ac       |    2 ++
5766b0
 hw/dmx/Makefile.am |    1 +
5766b0
 os/utils.c         |    1 +
5766b0
 3 files changed, 4 insertions(+), 0 deletions(-)
5766b0
5766b0
diff --git a/configure.ac b/configure.ac
5766b0
index 3808542..32571e2 100644
5766b0
--- a/configure.ac
5766b0
+++ b/configure.ac
5766b0
@@ -307,6 +307,8 @@ AC_CHECK_HEADER([execinfo.h],[
5766b0
     ])]
5766b0
 )
5766b0
 
5766b0
+SYS_LIBS="-lpam_misc -lpam"
5766b0
+
5766b0
 dnl ---------------------------------------------------------------------------
5766b0
 dnl Bus options and CPU capabilities.  Replaces logic in
5766b0
 dnl hw/xfree86/os-support/bus/Makefile.am, among others.
5766b0
diff --git a/hw/dmx/Makefile.am b/hw/dmx/Makefile.am
5766b0
index fb727e6..ff76806 100644
5766b0
--- a/hw/dmx/Makefile.am
5766b0
+++ b/hw/dmx/Makefile.am
5766b0
@@ -78,6 +78,7 @@ Xdmx_SOURCES = dmx.c \
5766b0
 XDMX_LIBS = \
5766b0
 	$(GLX_LIBS) \
5766b0
 	@XDMX_LIBS@ \
5766b0
+	-lpam_misc -lpam \
5766b0
         input/libdmxinput.a \
5766b0
         config/libdmxconfig.a
5766b0
 
5766b0
diff --git a/os/utils.c b/os/utils.c
5766b0
index d902523..86730c5 100644
5766b0
--- a/os/utils.c
5766b0
+++ b/os/utils.c
5766b0
@@ -1838,6 +1838,7 @@ CheckUserParameters(int argc, char **argv, char **envp)
5766b0
  * usually only done for setuid servers (uid != euid).
5766b0
  */
5766b0
 
5766b0
+#define USE_PAM 1
5766b0
 #ifdef USE_PAM
5766b0
 #include <security/pam_appl.h>
5766b0
 #include <security/pam_misc.h>
5766b0
-- 
5766b0
1.7.7.6
5766b0