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:
Colin Walters 2017-11-06 15:43:27 -05:00 committed by Atomic Bot
parent 5ca9c731d7
commit 1857a6a1ef

View File

@ -95,8 +95,8 @@ rpmostree_ex_builtin_unpack (int argc,
glnx_autofd int rootfs_dfd = -1;
if (!glnx_opendirat (AT_FDCWD, "/", TRUE, &rootfs_dfd, error))
goto out;
if (!rpmostree_prepare_rootfs_get_sepolicy (rootfs_dfd, &sepolicy,
cancellable, error))
sepolicy = ostree_sepolicy_new_at (rootfs_dfd, cancellable, error);
if (!sepolicy)
goto out;
}