Searched refs:old_caps (Results 1 – 9 of 9) sorted by relevance
/openbmc/linux/tools/testing/selftests/bpf/prog_tests/ |
H A D | deny_namespace.c | 52 __u64 old_caps = 0; in test_userns_create_bpf() local 54 cap_enable_effective(cap_mask, &old_caps); in test_userns_create_bpf() 58 cap_disable_effective(cap_mask, &old_caps); in test_userns_create_bpf() 62 if (cap_mask & old_caps) in test_userns_create_bpf() 69 __u64 old_caps = 0; in test_unpriv_userns_create_no_bpf() local 71 cap_disable_effective(cap_mask, &old_caps); in test_unpriv_userns_create_no_bpf() 75 if (cap_mask & old_caps) in test_unpriv_userns_create_no_bpf()
|
H A D | bind_perm.c | 56 __u64 old_caps = 0; in test_bind_perm() local 78 ASSERT_OK(cap_disable_effective(net_bind_svc_cap, &old_caps), in test_bind_perm() 87 if (old_caps & net_bind_svc_cap) in test_bind_perm()
|
H A D | verifier.c | 94 __u64 old_caps; in run_tests_aux() local 98 err = cap_disable_effective(1ULL << CAP_SYS_ADMIN, &old_caps); in run_tests_aux() 108 err = cap_enable_effective(old_caps, NULL); in run_tests_aux()
|
/openbmc/linux/tools/testing/selftests/bpf/ |
H A D | cap_helpers.c | 10 int cap_enable_effective(__u64 caps, __u64 *old_caps) in cap_enable_effective() argument 24 if (old_caps) in cap_enable_effective() 25 *old_caps = (__u64)(data[1].effective) << 32 | data[0].effective; in cap_enable_effective() 40 int cap_disable_effective(__u64 caps, __u64 *old_caps) in cap_disable_effective() argument 54 if (old_caps) in cap_disable_effective() 55 *old_caps = (__u64)(data[1].effective) << 32 | data[0].effective; in cap_disable_effective()
|
H A D | cap_helpers.h | 16 int cap_enable_effective(__u64 caps, __u64 *old_caps); 17 int cap_disable_effective(__u64 caps, __u64 *old_caps);
|
H A D | test_loader.c | 409 __u64 old_caps; member 419 err = cap_disable_effective(caps_to_drop, &caps->old_caps); in drop_capabilities() 436 err = cap_enable_effective(caps->old_caps, NULL); in restore_capabilities()
|
/openbmc/qemu/migration/ |
H A D | options.h | 59 bool migrate_caps_check(bool *old_caps, bool *new_caps, Error **errp);
|
H A D | options.c | 448 bool migrate_caps_check(bool *old_caps, bool *new_caps, Error **errp) in migrate_caps_check() argument 471 if (!old_caps[MIGRATION_CAPABILITY_POSTCOPY_RAM] && in migrate_caps_check()
|
H A D | migration.c | 3872 bool old_caps[MIGRATION_CAPABILITY__MAX] = { 0 }; in migration_object_check() local 3878 return migrate_caps_check(old_caps, ms->capabilities, errp); in migration_object_check()
|