Skip to content

Latest commit

 

History

History
45 lines (29 loc) · 1.37 KB

bpf_bprm_opts_set.md

File metadata and controls

45 lines (29 loc) · 1.37 KB
title description
Helper Function 'bpf_bprm_opts_set'
This page documents the 'bpf_bprm_opts_set' eBPF helper function, including its defintion, usage, program types that can use it, and examples.

Helper function bpf_bprm_opts_set

:octicons-tag-24: 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.

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

Usage

!!! example "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

!!! example "Docs could be improved" This part of the docs is incomplete, contributions are very welcome