From c6191e9a0ab4c05040d246760a619be7c62f84b2 Mon Sep 17 00:00:00 2001 From: Bernhard Reutner-Fischer Date: Thu, 24 Apr 2008 10:44:31 +0000 Subject: - fsetfilecon_war is hidden so use fsetfilecon instead. Fixes dynamic linking-error: util-linux/lib.a(mkswap.o): In function `mkswap_selinux_setcontext': util-linux/mkswap.c:38: undefined reference to `fsetfilecon_raw' --- util-linux/mkswap.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'util-linux') diff --git a/util-linux/mkswap.c b/util-linux/mkswap.c index bf0d7b074..1c364efe9 100644 --- a/util-linux/mkswap.c +++ b/util-linux/mkswap.c @@ -35,7 +35,8 @@ static void mkswap_selinux_setcontext(int fd, const char *path) newcon = context_str(context); if (!newcon) goto error; - if (strcmp(oldcon, newcon) != 0 && fsetfilecon_raw(fd, newcon) < 0) + /* fsetfilecon_raw is hidden */ + if (strcmp(oldcon, newcon) != 0 && fsetfilecon(fd, newcon) < 0) goto error; if (ENABLE_FEATURE_CLEAN_UP) { context_free(context); -- cgit v1.2.3