Skip to content

Commit

Permalink
Merge eb90d2a into a57028b
Browse files Browse the repository at this point in the history
  • Loading branch information
gotlougit committed Sep 25, 2023
2 parents a57028b + eb90d2a commit b58076f
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions src/builtins/danger_zone.rs
Original file line number Diff line number Diff line change
Expand Up @@ -125,3 +125,23 @@ impl RuleSet for ForkAndExec {
"ForkAndExec"
}
}

/// [`Pipes`] is in the danger zone because it can be used create a pipe for IPC.
///
/// # Security Considerations
/// The piped process will still be under seccomp's restrictions (see
/// `tests/inherit_filters.rs`) but depending on your filter it could still do bad things.
pub struct Pipes;
impl RuleSet for Pipes {
fn simple_rules(&self) -> Vec<Sysno> {
vec![Sysno::pipe, Sysno::pipe2]
}

fn conditional_rules(&self) -> HashMap<Sysno, Vec<SeccompRule>> {
HashMap::new()
}

fn name(&self) -> &'static str {
"Pipes"
}
}

0 comments on commit b58076f

Please sign in to comment.