Skip to content

Commit 11e4873

Browse files
committed
Fix #1173, RHBZ#1603347: Double chdir/chroot in probe rpmverifypackage
The probe is using chroot in the init function, where all the packages information is being collected. So, the comment is actually misleading everybody and the probe should be switched to the custom offline mode right away.
1 parent 71d7034 commit 11e4873

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/OVAL/probes/unix/linux/rpmverifypackage_probe.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -314,8 +314,7 @@ static int rpmverify_collect(probe_ctx *ctx,
314314

315315
int rpmverifypackage_probe_offline_mode_supported()
316316
{
317-
// TODO: Switch this to OFFLINE_MODE_OWN once rpmtsSetRootDir is fully supported by librpm
318-
return PROBE_OFFLINE_CHROOT;
317+
return PROBE_OFFLINE_OWN;
319318
}
320319

321320
void *rpmverifypackage_probe_init(void)

0 commit comments

Comments
 (0)