crash.software
Projects
Pull Requests
Issues
Builds
criu
Code
Files
Commits
Branches
Tags
Pull Requests
Code Comments
Code Compare
Issues
List
Boards
Milestones
Builds
Statistics
Contributions
Source Lines
Child Projects
Projects
STRLCPY
criu
Files
🤬
Sign In
wip/check-only
ROOT
/
criu
/
namespaces.c
Search
History
2841 lines
|
ISO-8859-1
|
58 KB
Blame
Outline
2
4
8
No wrap
Soft wrap
Outline
__sys
(
foo
)
__sys_err
(
ret
)
COPY_MAP
(
map,n_map
)
FREE_MAP
(
map,n_map
)
MARK_ROOT_NS
(
ids,name,ns
)
ns_desc_array
:
struct ns_desc*[]
join_ns_flags
:
unsigned int
check_namespace_opts
(
void
)
{...}
:
int
check_int_str
(
char*
)
{...}
:
int
check_ns_file
(
char*
)
{...}
:
int
set_user_extra_opts
(
struct join_ns*,char*
)
{...}
:
int
join_ns_add
(
const char*,char*,char*
)
{...}
:
int
parse_ns_link
(
char*,size_t,struct ns_desc*
)
{...}
:
unsigned int
check_ns_proc
(
struct fd_link*
)
{...}
:
bool
switch_ns
(
int,struct ns_desc*,int*
)
{...}
:
int
switch_ns_by_fd
(
int,struct ns_desc*,int*
)
{...}
:
int
restore_ns
(
int,struct ns_desc*
)
{...}
:
int
ns_ids
:
struct ns_id*
ns_next_id
:
unsigned int
root_ns_mask
:
unsigned long
nsid_add
(
struct ns_id*,struct ns_desc*,unsigned int,pid_t
)
{...}
:
void
rst_new_ns_id
(
unsigned int,pid_t,struct ns_desc*,enum ns_type
)
{...}
:
struct ns_id*
rst_add_ns_id
(
unsigned int,pid_t,struct ns_desc*
)
{...}
:
int
lookup_ns_by_kid
(
unsigned int,struct ns_desc*
)
{...}
:
struct ns_id*
lookup_ns_by_id
(
unsigned int,struct ns_desc*
)
{...}
:
struct ns_id*
walk_namespaces
(
struct ns_desc*,int,void*
)
{...}
:
int
generate_ns_id
(
int,unsigned int,struct ns_desc*,struct ns_id**,bool
)
{...}
:
unsigned int
__get_ns_id
(
int,struct ns_desc*,bool,protobuf_c_boolean*,struct ns_id**
)
{...}
:
unsigned int
get_ns_id
(
int,struct ns_desc*,protobuf_c_boolean*
)
{...}
:
unsigned int
dump_one_ns_file
(
int,u32,const struct fd_parms*
)
{...}
:
int
dup_userns_entry
(
UsernsEntry*
)
{...}
:
UsernsEntry*
ns_file_info
d
:
struct file_desc
nfe
:
NsFileEntry*
open_ns_fd
(
struct file_desc*,int*
)
{...}
:
int
collect_one_nsfile
(
void*,ProtobufCMessage*,struct cr_img*
)
{...}
:
int
get_pid_for_children_ns_id
(
pid_t,TaskKobjIdsEntry*
)
{...}
:
int
predump_task_ns_ids
(
struct pstree_item*
)
{...}
:
int
dump_task_ns_ids
(
struct pstree_item*
)
{...}
:
int
dump_thread_ids
(
pid_t,TaskKobjIdsEntry*
)
{...}
:
int
set_ns_opt
(
int,unsigned,struct ns_id**,struct ns_desc*
)
{...}
:
int
set_ns_hookups
(
struct ns_id*
)
{...}
:
int
top_pid_ns
:
struct ns_id*
top_user_ns
:
struct ns_id*
top_net_ns
:
struct ns_id*
userns_entry
:
UsernsEntry*
is_subns
(
struct ns_id*,struct ns_id*
)
{...}
:
bool
can_access_userns
(
struct ns_id*
)
{...}
:
bool
child_userns_xid
(
unsigned int,UidGidExtent**,int
)
{...}
:
unsigned int
parent_userns_id
(
unsigned int,UidGidExtent**,int
)
{...}
:
unsigned int
parent_userns_uid
(
UsernsEntry*,uid_t
)
{...}
:
uid_t
parent_userns_gid
(
UsernsEntry*,gid_t
)
{...}
:
gid_t
userns_uid
(
uid_t
)
{...}
:
uid_t
userns_gid
(
gid_t
)
{...}
:
gid_t
target_userns_uid
(
struct ns_id*,unsigned int
)
{...}
:
unsigned int
target_userns_gid
(
struct ns_id*,unsigned int
)
{...}
:
unsigned int
root_userns_uid
(
struct ns_id*,unsigned int
)
{...}
:
unsigned int
root_userns_gid
(
struct ns_id*,unsigned int
)
{...}
:
unsigned int
parse_id_map
(
pid_t,char*,UidGidExtent***
)
{...}
:
int
__dump_user_ns
(
struct ns_id*
)
:
int
dump_user_ns
(
void*
)
{...}
:
int
collect_user_ns
(
struct ns_id*,void*
)
{...}
:
int
collect_user_namespaces
(
bool
)
{...}
:
int
collect_ns_hierarhy
(
bool
)
{...}
:
int
check_user_ns
(
struct ns_id*
)
{...}
:
int
__dump_user_ns
(
struct ns_id*
)
{...}
:
int
do_free_userns_map
(
struct ns_id*,void*
)
{...}
:
int
free_userns_maps
(
)
{...}
:
void
do_dump_namespaces
(
struct ns_id*
)
{...}
:
int
dump_namespaces
(
struct pstree_item*,unsigned int
)
{...}
:
int
write_id_map
(
pid_t,UidGidExtent**,int,char*
)
{...}
:
int
unsc_msg
h
:
struct msghdr
iov
:
struct iovec[3]
c
:
char[CMSG_SPACE(sizeof(struct ucred)) + CMSG_SPACE(sizeof(int))]
usernsd_pid
:
int
unsc_msg_init
(
struct unsc_msg*,uns_call_t*,int*,void*,size_t,int
)
{...}
:
void
unsc_msg_pid_fd
(
struct unsc_msg*,pid_t*,int*
)
{...}
:
void
warn_if_pid_ns_helper_exited
(
pid_t
)
{...}
:
void
usernsd_recv_transport
(
void*,int,pid_t
)
{...}
:
int
prep_usernsd_transport
(
)
{...}
:
int
usernsd
(
int
)
{...}
:
int
__userns_call
(
const char*,uns_call_t,int,void*,size_t,int
)
{...}
:
int
start_usernsd
(
void
)
{...}
:
int
exit_usernsd
(
void*,int,pid_t
)
{...}
:
int
stop_usernsd
(
void
)
{...}
:
int
do_read_old_user_ns_img
(
struct ns_id*
)
{...}
:
int
read_old_user_ns_img
(
void
)
{...}
:
int
dump_ns_with_hookups
(
int
)
{...}
:
int
delayed_ns
ns
:
struct ns_id*
userns_id
:
u32
parent_id
:
u32
read_ns_with_hookups
(
void
)
{...}
:
int
mark_root_ns
(
uint32_t,struct ns_desc*,struct ns_id**
)
{...}
:
int
set_ns_roots
(
void
)
{...}
:
int
prepare_userns
(
pid_t,UsernsEntry*
)
{...}
:
int
collect_namespaces
(
bool
)
{...}
:
int
prepare_userns_creds
(
void
)
{...}
:
int
get_join_ns_fd
(
struct join_ns*
)
{...}
:
int
switch_join_ns
(
struct join_ns*
)
{...}
:
int
switch_user_join_ns
(
struct join_ns*
)
{...}
:
int
join_namespaces
(
void
)
{...}
:
int
store_self_ns
(
struct ns_id*
)
{...}
:
int
(anonymous)
NS__CREATED
NS__MAPS_POPULATED
NS__RESTORED
NS__EXIT_HELPER
NS__ERROR
ns_arg
me
:
struct ns_id*
futex
:
futex_t
pid
:
pid_t
create_user_ns_hierarhy_fn
(
void*
)
{...}
:
int
create_user_ns_hierarhy
(
void
)
{...}
:
int
prepare_namespace
(
struct pstree_item*,unsigned long
)
{...}
:
int
prepare_namespace_before_tasks
(
void
)
{...}
:
int
__set_user_ns
(
struct ns_id*
)
{...}
:
int
set_user_ns
(
u32
)
{...}
:
int
do_reserve_pid_ns_helpers
(
struct ns_id*,void*
)
{...}
:
int
reserve_pid_ns_helpers
(
void
)
{...}
:
int
pid_ns_helper_sock
(
struct ns_id*
)
{...}
:
int
pid_ns_helper
(
struct ns_id*,int
)
{...}
:
int
do_create_pid_ns_helper
(
void*,int,pid_t
)
{...}
:
int
create_pid_ns_helper
(
struct ns_id*
)
{...}
:
int
do_destroy_pid_ns_helpers
(
void
)
{...}
:
int
destroy_pid_ns_helpers
(
void
)
{...}
:
int
__setns_from_fdstore
(
int,int,const char*,int
)
{...}
:
int
pid_ns_desc
:
struct ns_desc
user_ns_desc
:
struct ns_desc
All occurrences
Please wait...
Page is in error, reload to recover