tools/testing/selftests/bpf/cap_helpers.h

Source file repositories/reference/linux-study-clean/tools/testing/selftests/bpf/cap_helpers.h

File Facts

System
Linux kernel
Corpus path
tools/testing/selftests/bpf/cap_helpers.h
Extension
.h
Size
379 bytes
Lines
21
Domain
Support Tooling And Documentation
Bucket
tools
Inferred role
Support Tooling And Documentation: implementation source
Status
source implementation candidate

Why This File Exists

Repository support layer: documentation, build tooling, samples, user-space helper tools, generated initramfs support, licenses, and validation utilities.

Dependency Surface

Detected Declarations

Annotated Snippet

#ifndef __CAP_HELPERS_H
#define __CAP_HELPERS_H

#include <linux/types.h>
#include <linux/capability.h>
#include <errno.h>

#ifndef CAP_PERFMON
#define CAP_PERFMON		38
#endif

#ifndef CAP_BPF
#define CAP_BPF			39
#endif

int cap_enable_effective(__u64 caps, __u64 *old_caps);
int cap_disable_effective(__u64 caps, __u64 *old_caps);

#endif

Annotation

Implementation Notes