Skip to contentSkip to conversation

policycoreutils -- fix ftbfs with hardening flags

PATCH In review Laurent Bigonville 1 participant 1 message Mar 26, 2012 SELinux security module

lore
Share & tools
lore
#0 lore raw

PATCH 3/4 policycoreutils -- fix ftbfs with hardening flags

Hi,

We are now building our packages with -Werror=format-security enabled. The attached patch fix the FTBFS. More patch related to this could follow.

Laurent

From: Laurent Bigonville <[email protected]>
Date: Mon, 5 Mar 2012 22:45:58 +0100
Subject: fix ftbfs with hardening flags

---
 sandbox/seunshare.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
policycoreutils/sandbox/seunshare.c +2 -2
index c493e98..d7eb0b9 100644
@@ -311,8 +311,8 @@ static int seunshare_mount(const char *src, const char *dst, struct stat *src_st
  */
 static int sandbox_error(const char *string)
 {
-	fprintf(stderr, string);
-	syslog(LOG_AUTHPRIV | LOG_ALERT, string);
+	fprintf(stderr, "%s", string);
+	syslog(LOG_AUTHPRIV | LOG_ALERT, "%s", string);
 	exit(-1);
 }
 

--
This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.