- 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'
No binary (build failed)
—
(log yok)
| @@ -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); | |