Skip to content

Commit

Permalink
seccomp: Add panic message
Browse files Browse the repository at this point in the history
  • Loading branch information
mbuesch committed Jan 25, 2025
1 parent 6706fac commit 4d65470
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion letmein-seccomp/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ fn seccomp_cond(idx: u8, value: u64, bit_width: u8) -> ah::Result<seccompiler::S
SeccompCmpArgLen::Dword
}
64 => SeccompCmpArgLen::Qword,
_ => unreachable!(),
bit_width => panic!("seccomp_cond: Invalid bit_width: {bit_width}"),
};

Ok(SeccompCondition::new(idx, arglen, SeccompCmpOp::Eq, value)?)
Expand Down

0 comments on commit 4d65470

Please sign in to comment.