Move ProcMountNSGuard to separate file
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: Brenden Blanco <bblanco@gmail.com>
Showing
src/cc/ns_guard.cc
0 → 100644
src/cc/ns_guard.h
0 → 100644
Please register or sign in to comment