diff options
author | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2008-04-24 10:44:31 +0000 |
---|---|---|
committer | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2008-04-24 10:44:31 +0000 |
commit | c6191e9a0ab4c05040d246760a619be7c62f84b2 (patch) | |
tree | 1734831bab3066b33659b3fb56a0fc974e05dbdd | |
parent | 15ce7f5b58563c6b8183da9b5404e5b5d9ba8507 (diff) | |
download | busybox-w32-c6191e9a0ab4c05040d246760a619be7c62f84b2.tar.gz busybox-w32-c6191e9a0ab4c05040d246760a619be7c62f84b2.tar.bz2 busybox-w32-c6191e9a0ab4c05040d246760a619be7c62f84b2.zip |
- 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'
-rw-r--r-- | util-linux/mkswap.c | 3 |
1 files changed, 2 insertions, 1 deletions
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) | |||
35 | newcon = context_str(context); | 35 | newcon = context_str(context); |
36 | if (!newcon) | 36 | if (!newcon) |
37 | goto error; | 37 | goto error; |
38 | if (strcmp(oldcon, newcon) != 0 && fsetfilecon_raw(fd, newcon) < 0) | 38 | /* fsetfilecon_raw is hidden */ |
39 | if (strcmp(oldcon, newcon) != 0 && fsetfilecon(fd, newcon) < 0) | ||
39 | goto error; | 40 | goto error; |
40 | if (ENABLE_FEATURE_CLEAN_UP) { | 41 | if (ENABLE_FEATURE_CLEAN_UP) { |
41 | context_free(context); | 42 | context_free(context); |