00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef __PROBE_CHROOT__
00021 #define __PROBE_CHROOT__
00022
00023 #include "common/util.h"
00024
00025 OSCAP_HIDDEN_START;
00026
00027 struct probe_chroot {
00028 const char* scan_path;
00029 int root_fd;
00030
00031 };
00032
00039 void probe_chroot_init(struct probe_chroot *ch, const char *scan_path);
00040
00044 int probe_chroot_enter(const struct probe_chroot *ch);
00045
00049 int probe_chroot_leave(const struct probe_chroot *ch);
00050
00055 bool probe_chroot_is_set(const struct probe_chroot *ch);
00056
00061 const char *probe_chroot_get_path(const struct probe_chroot *ch);
00062
00067 void probe_chroot_free(struct probe_chroot *ch);
00068
00069 OSCAP_HIDDEN_END;
00070
00071 #endif