diff --git a/man2/bpf.2 b/man2/bpf.2 index 5d583c7d4..c81b1d939 100644 --- a/man2/bpf.2 +++ b/man2/bpf.2 @@ -153,6 +153,9 @@ is one of the following: .TP .B BPF_MAP_CREATE Create a map and return a file descriptor that refers to the map. +The close-on-exec file descriptor flag (see +.BR fcntl (2)) +is automatically enabled for the new file descriptor. .TP .B BPF_MAP_LOOKUP_ELEM Look up an element by key in a specified map and return its value. @@ -170,6 +173,9 @@ of the next element. .B BPF_PROG_LOAD Verify and load an eBPF program, returning a new file descriptor associated with the program. +The close-on-exec file descriptor flag (see +.BR fcntl (2)) +is automatically enabled for the new file descriptor. .P The .I bpf_attr