Add support for the slic_table to the security drivers.
def->os.dtb, user, group) < 0)
return -1;
+ if (def->os.slic_table &&
+ virSecurityDACSetOwnership(priv, NULL,
+ def->os.slic_table, user, group) < 0)
+ return -1;
+
return 0;
}
data->content_context) < 0)
return -1;
+ if (def->os.slic_table &&
+ virSecuritySELinuxSetFilecon(mgr, def->os.slic_table,
+ data->content_context) < 0)
+ return -1;
+
if (stdin_path &&
virSecuritySELinuxSetFilecon(mgr, stdin_path,
data->content_context) < 0)
if (vah_add_file(&buf, ctl->def->os.dtb, "r") != 0)
goto cleanup;
+ if (ctl->def->os.slic_table)
+ if (vah_add_file(&buf, ctl->def->os.slic_table, "r") != 0)
+ goto cleanup;
+
if (ctl->def->os.loader && ctl->def->os.loader->path)
if (vah_add_file(&buf, ctl->def->os.loader->path, "r") != 0)
goto cleanup;