syd 3.52.0

rock-solid application kernel
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
//
// syd: seccomp and landlock based application sandbox
// src/unshare/seccomp.rs: Seccomp support for unshare::Command
//
// Copyright (c) 2023, 2025 Ali Polatel <alip@chesswob.org>
//
// SPDX-License-Identifier: GPL-3.0

use libseccomp::ScmpFilterContext;

use crate::unshare::Command;

impl Command {
    /// Set up a `ScmpFilterContext` for the `Command`.
    pub fn seccomp_filter(&mut self, filter_context: ScmpFilterContext) {
        self.seccomp_filter = Some(filter_context)
    }
}