ex-unpack: Open OstreeSePolicy more directly
We should definitely not be calling the "postprocess" version here as that may *change* the source filesystem. Closes: #1082 Approved by: jlebon
This commit is contained in:
parent
5ca9c731d7
commit
1857a6a1ef
@ -95,8 +95,8 @@ rpmostree_ex_builtin_unpack (int argc,
|
|||||||
glnx_autofd int rootfs_dfd = -1;
|
glnx_autofd int rootfs_dfd = -1;
|
||||||
if (!glnx_opendirat (AT_FDCWD, "/", TRUE, &rootfs_dfd, error))
|
if (!glnx_opendirat (AT_FDCWD, "/", TRUE, &rootfs_dfd, error))
|
||||||
goto out;
|
goto out;
|
||||||
if (!rpmostree_prepare_rootfs_get_sepolicy (rootfs_dfd, &sepolicy,
|
sepolicy = ostree_sepolicy_new_at (rootfs_dfd, cancellable, error);
|
||||||
cancellable, error))
|
if (!sepolicy)
|
||||||
goto out;
|
goto out;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user