Skip to content

Commit

Permalink
feat: filesystem exception whitelist merging (WIP)
Browse files Browse the repository at this point in the history
  • Loading branch information
desbma committed Jan 17, 2025
1 parent 3c62e41 commit 481e5e0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/systemd/options.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1162,6 +1162,9 @@ pub(crate) fn build_options(
OptionWithValue {
name: "ReadWritePaths".to_owned(),
value: OptionValue::List {
// TODO merge exceptions by parent dir buckets if over a configurable length threshold?
// See:
// touch /tmp/test_{0..100}; cargo run -- run -w -- python3 -c 'import os; [os.open(f"/tmp/test_{i}", os.O_WRONLY) for i in range(101)]'
values: exceptions
.iter()
.filter_map(|p| p.to_str().map(ToOwned::to_owned))
Expand Down

0 comments on commit 481e5e0

Please sign in to comment.