Zig 0.17.0-dev (Split by item)

Shortcut keys
?
Show these tips
S
Focus search field
Esc
Clear focus & close tips
U
Jump to source code
↑
Move up in search results
↓
Move down in search results
↵
Go to active search result
This is an example of documentation generated by ZigDoc, an alternative to Zig's built-in Auto Doc feature. See also examples in other modes/formats. The project being documented here (as the example) is the Zig standard library. Public Namespace

RET

Public Namespace
std.os.linux.seccomp.RET
pub const RET = struct

Action values for seccomp BPF programs. The lower 16-bits are for optional return data. The upper 16-bits are ordered from least permissive values to most.

Values

  • pub const KILL_PROCESS

    Kill the process.

  • pub const KILL_THREAD

    Kill the thread.

  • pub const KILL

    Kill the thread.

  • pub const TRAP

    Disallow and force a SIGSYS.

  • pub const ERRNO

    Return an errno.

  • pub const USER_NOTIF

    Forward the syscall to a userspace supervisor to make a decision.

  • pub const TRACE

    Pass to a tracer or disallow.

  • pub const LOG

    Allow after logging.

  • pub const ALLOW

    Allow.

  • pub const ACTION_FULL
  • pub const ACTION
  • pub const DATA

File

os/linux/seccomp.zig:112
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
pub const RET = struct {
    /// Kill the process.
    pub const KILL_PROCESS = 0x80000000;
    /// Kill the thread.
    pub const KILL_THREAD = 0x00000000;
    pub const KILL = KILL_THREAD;
    /// Disallow and force a SIGSYS.
    pub const TRAP = 0x00030000;
    /// Return an errno.
    pub const ERRNO = 0x00050000;
    /// Forward the syscall to a userspace supervisor to make a decision.
    pub const USER_NOTIF = 0x7fc00000;
    /// Pass to a tracer or disallow.
    pub const TRACE = 0x7ff00000;
    /// Allow after logging.
    pub const LOG = 0x7ffc0000;
    /// Allow.
    pub const ALLOW = 0x7fff0000;

    // Masks for the return value sections.
    pub const ACTION_FULL = 0xffff0000;
    pub const ACTION = 0x7fff0000;
    pub const DATA = 0x0000ffff;
}