blob: 55b49dd9fbac932ba510991eba39af3fc167d2c8 [file]
/* SPDX-License-Identifier: GPL-2.0-only */
// Copyright (c) 2026 Jarkko Sakkinen
#ifndef UCELLS_TREE_H
#define UCELLS_TREE_H
struct mount_tree {
int fd;
bool is_mntns;
};
/* Takes ownership of fd on success. */
int mount_tree_from_slot_fd(int fd, struct mount_tree *out);
void mount_tree_destroy(struct mount_tree *tree);
int mount_tree_seal_into(const struct mount_tree *tree, int mntns_fd);
#endif