This code was just recently added (by me) and didn't account for the
fact that stdin_path is sometimes NULL. If it's NULL, and
SetSecurityAllLabel fails, a segfault would result.
if (driver->securityDriver &&
driver->securityDriver->domainSetSecurityAllLabel &&
driver->securityDriver->domainSetSecurityAllLabel(vm, stdin_path) < 0) {
- if (virStorageFileIsSharedFS(stdin_path) != 1)
+ if (stdin_path && virStorageFileIsSharedFS(stdin_path) != 1)
goto cleanup;
}