| /* SPDX-License-Identifier: GPL-2.0-only */ | |
| // Copyright (c) 2026 Jarkko Sakkinen | |
| #ifndef UCELLS_RUNFD_H | |
| #define UCELLS_RUNFD_H | |
| #include <stdint.h> | |
| struct mount_tree; | |
| struct spawn_plan; | |
| struct userns_idmap_extent; | |
| int runfd_probe(void); | |
| int runfd_create(uint32_t *userns_inum); | |
| int runfd_get_ns_fd(int runfd, uint64_t type); | |
| int runfd_share_ns_fd(int runfd, int nsfd); | |
| int runfd_set_idmap(int runfd, const struct userns_idmap_extent *uid, | |
| const struct userns_idmap_extent *gid, uint32_t flags); | |
| int runfd_bind_fsconfig(int runfd, int fsfd); | |
| int runfd_seal_root(int runfd, const struct mount_tree *tree); | |
| int runfd_send_signal(int runfd, int sig); | |
| int runfd_poll_exit(int runfd, int *status); | |
| int runfd_spawn(int runfd, const struct spawn_plan *plan); | |
| #endif |