Skip to content

OpenSCAP could possibly fail to write a verbose message when switching to offline mode #1191

Open
@jan-cerny

Description

@jan-cerny

We call dI after chroot() but before calling chdir("/").

 openscap-1.2.17/src/OVAL/probes/probe/main.c:253: chroot_call: Calling chroot: "chroot(rootdir)".
16. openscap-1.2.17/src/OVAL/probes/probe/main.c:263: chroot: Calling function "__oscap_dlprintf" after chroot() but before calling chdir("/").
#   261|   			 * mechanism to control this behaviour in the future.
#   262|   			 */
#   263|-> 			dI("Swiching probe to PROBE_OFFLINE_CHROOT mode.");
#   264|   			probe.selected_offline_mode = PROBE_OFFLINE_CHROOT;
#   265|   		}

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions