I gotta confess I liked better the implementation of enter_target_ns() function with the referred system call than by manipulating the /proc/#/ns/* paths.
About the possible buffer overruns with readlink() and leaking file descriptors when fd=0, we should be fine now.
I gotta confess I liked better the implementation of enter_target_ns() function with the referred system call than by manipulating the
/proc/#/ns/*
paths.About the possible buffer overruns with readlink() and leaking file descriptors when fd=0, we should be fine now.