mirror of
https://github.com/sheumann/hush.git
synced 2025-08-10 00:25:24 +00:00
mkswap: selinux build fix
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
This commit is contained in:
@@ -15,7 +15,7 @@ static void mkswap_selinux_setcontext(int fd, const char *path)
|
||||
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;
|
||||
|
Reference in New Issue
Block a user