util: introduce {send,receive}_one_fd()
Introduce two new helpers that send/receive a single fd via a unix transport. Also make nspawn use them instead of hard-coding it. Based on a patch by Krzesimir Nowak.
This commit is contained in:
@@ -938,3 +938,6 @@ int reset_uid_gid(void);
|
||||
|
||||
int getxattr_malloc(const char *path, const char *name, char **value, bool allow_symlink);
|
||||
int fgetxattr_malloc(int fd, const char *name, char **value);
|
||||
|
||||
int send_one_fd(int transport_fd, int fd);
|
||||
int receive_one_fd(int transport_fd);
|
||||
|
||||
Reference in New Issue
Block a user