• Brenden Blanco's avatar
    Move ProcMountNSGuard to separate file · cb7855bb
    Brenden Blanco authored
    This moves ProcMountNS[Guard] classes to a separate header file and
    implementation. The goal will be to use these more directly in libbpf.c
    without creating a circular dependency.
    Removed the friend class statements and exposed a few public getters instead.
    Slightly changed the implementation in ProcMountNS constructor to avoid
    a few error cases and the use of snprintf.
    Signed-off-by: default avatarBrenden Blanco <bblanco@gmail.com>
    cb7855bb
ns_guard.h 1.52 KB