idmapped-mounts: remove unused set_cloexec() helper

This function has never been used so remove it.

Cc: fstests@vger.kernel.org
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Reviewed-by: Eryu Guan <guaneryu@gmail.com>
Signed-off-by: Eryu Guan <guaneryu@gmail.com>
This commit is contained in:
Christian Brauner
2021-05-07 17:00:54 +02:00
committed by Eryu Guan
parent 8a9bc45111
commit 7fe01df0d6
-5
View File
@@ -369,11 +369,6 @@ static bool is_sticky(int dfd, const char *path, int flags)
return (st.st_mode & S_ISVTX) > 0;
}
static inline int set_cloexec(int fd)
{
return fcntl(fd, F_SETFD, FD_CLOEXEC);
}
static inline bool switch_fsids(uid_t fsuid, gid_t fsgid)
{
if (setfsgid(fsgid))