PolicyKit: Branch 'master'

Colin Walters walters at kemper.freedesktop.org
Thu Apr 11 10:21:19 PDT 2013


 configure.ac                |    5 +++++
 src/polkitagent/Makefile.am |    6 ++++++
 src/programs/Makefile.am    |    6 ++++++
 3 files changed, 17 insertions(+)

New commits:
commit e267e965ac30e29cb2de1e2ba668e7d00ab5b700
Author: Vincent Untz <vuntz at gnome.org>
Date:   Fri Feb 24 13:13:17 2012 +0100

    polkitagent, pkexec: Respect SUID_CFLAGS and SUID_LDFLAGS
    
    This is a good way for distributors to use -fPIE/-pie.
    
    https://bugs.freedesktop.org/attachment.cgi?id=57584

diff --git a/configure.ac b/configure.ac
index b1e478b..a9c24c4 100644
--- a/configure.ac
+++ b/configure.ac
@@ -479,6 +479,11 @@ AC_SUBST([GETTEXT_PACKAGE])
 AM_GLIB_GNU_GETTEXT
 AC_DEFINE_UNQUOTED([GETTEXT_PACKAGE],["$GETTEXT_PACKAGE"],[gettext domain])
 
+AC_ARG_VAR([SUID_CFLAGS],
+           [CFLAGS used for binaries which are usually with the suid bit])
+AC_ARG_VAR([SUID_LDFLAGS],
+           [LDFLAGS used for binaries which are usually with the suid bit])
+
 AC_OUTPUT([
 Makefile
 actions/Makefile
diff --git a/src/polkitagent/Makefile.am b/src/polkitagent/Makefile.am
index c8420fa..3bc364e 100644
--- a/src/polkitagent/Makefile.am
+++ b/src/polkitagent/Makefile.am
@@ -94,6 +94,7 @@ endif
 
 polkit_agent_helper_1_CFLAGS  = 					\
         -D_POLKIT_COMPILATION                                  		\
+	$(SUID_CFLAGS)							\
 	$(GLIB_CFLAGS)							\
 	$(NULL)
 
@@ -103,6 +104,11 @@ polkit_agent_helper_1_LDADD = 						\
 	$(top_builddir)/src/polkit/libpolkit-gobject-1.la		\
 	$(NULL)
 
+polkit_agent_helper_1_LDFLAGS = 					\
+	$(SUID_LDFLAGS)							\
+	$(AM_LDFLAGS)							\
+	$(NULL)
+
 if HAVE_INTROSPECTION
 
 girdir = $(INTROSPECTION_GIRDIR)
diff --git a/src/programs/Makefile.am b/src/programs/Makefile.am
index bc1b5a8..4e7273d 100644
--- a/src/programs/Makefile.am
+++ b/src/programs/Makefile.am
@@ -24,6 +24,7 @@ bin_PROGRAMS = pkexec pkcheck pkaction pkttyagent
 pkexec_SOURCES = pkexec.c
 
 pkexec_CFLAGS =                             				\
+	$(SUID_CFLAGS)							\
 	$(GLIB_CFLAGS)							\
 	$(AUTH_LIBS)							\
 	$(NULL)
@@ -34,6 +35,11 @@ pkexec_LDADD =  	                      				\
 	$(top_builddir)/src/polkitagent/libpolkit-agent-1.la		\
 	$(NULL)
 
+pkexec_LDFLAGS =  	                      				\
+	$(SUID_LDFLAGS)							\
+	$(AM_LDFLAGS)							\
+	$(NULL)
+
 # ----------------------------------------------------------------------------------------------------
 
 pkcheck_SOURCES = pkcheck.c


More information about the hal-commit mailing list