- 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'
This commit is contained in:
parent
15ce7f5b58
commit
c6191e9a0a
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user