Just ran into this on a Gentoo system.
Basically, util-linux/mkswap.c appears to be bugged. When compiled, I
get the error:
util-linux/mkswap.c: In function 'mkswap_selinux_setcontext':
util-linux/mkswap.c::18: error: 'argv' undeclared (first use in this
function)
This appears to be due to a change introduced in 1.18.0. I'm not
certain what the exact goal of the change was, but this patch seems to
make it happy on my system.
Later,
Chris
diff -urpN a/util-linux/mkswap.c b/util-linux/mkswap.c
--- a/util-linux/mkswap.c 2010-12-19 18:41:27.000000000 -0600
+++ b/util-linux/mkswap.c 2011-01-04 15:53:10.067005249 -0600
@@ -15,7 +15,7 @@ static void mkswap_selinux_setcontext(in
if (!is_selinux_enabled())
return;
- xfstat(fd, &stbuf, argv[0]);
+ xfstat(fd, &stbuf, path);
if (S_ISREG(stbuf.st_mode)) {
security_context_t newcon;
security_context_t oldcon = NULL;
_______________________________________________
busybox mailing list
[email protected]
http://lists.busybox.net/mailman/listinfo/busybox