Skip to content

Helper function bpf_bprm_opts_set

v5.11

Definition

Copyright (c) 2015 The Libbpf Authors. All rights reserved.

Set or clear certain options on bprm:

BPF_F_BPRM_SECUREEXEC Set the secureexec bit which sets the AT_SECURE auxv for glibc. The bit is cleared if the flag is not specified.

Returns

-EINVAL if invalid flags are passed, zero otherwise.

static long (* const bpf_bprm_opts_set)(struct linux_binprm *bprm, __u64 flags) = (void *) 159;

Usage

Docs could be improved

This part of the docs is incomplete, contributions are very welcome

Program types

This helper call can be used in the following program types:

Example

Docs could be improved

This part of the docs is incomplete, contributions are very welcome