Closed nivkner closed 7 years ago
Hm, yes, sorry for not giving a feedback. I've decided that to_clone_flags is easy enough to do in vagga itself, and from_raw_fd
is easy to do by using File::into_raw_fd()
and passing file to the unshare.
Thank for your help, anyway!
Hi @tailhook, While you did remove the implementation leak from
to_clone_flags
and the unsafefrom_raw_fd
, there wasn't anything left in unshare to allow the library's users to pass theCloneFlags
to syscalls from aNamespace
or create aStdio
object directly from aRawFd
respectively. This PR attempts to fix that.