Lines Matching refs:old_caps
57 static int drop_priv_caps(__u64 *old_caps) in drop_priv_caps() argument
62 (1ULL << CAP_SYS_ADMIN), old_caps); in drop_priv_caps()
65 static int restore_priv_caps(__u64 old_caps) in restore_priv_caps() argument
67 return cap_enable_effective(old_caps, NULL); in restore_priv_caps()
502 __u64 old_caps = 0; in userns_map_create() local
515 err = drop_priv_caps(&old_caps); in userns_map_create()
538 err = restore_priv_caps(old_caps); in userns_map_create()
573 __u64 old_caps = 0; in userns_btf_load() local
586 err = drop_priv_caps(&old_caps); in userns_btf_load()
616 err = restore_priv_caps(old_caps); in userns_btf_load()
649 __u64 old_caps = 0; in userns_prog_load() local
683 err = drop_priv_caps(&old_caps); in userns_prog_load()