Repository navigation
Commit d6d73d2
refactor(linux): extract landlock restrict_self into a standalone function
Move the closure that calls `restrict_self` into a named function to improve readability and reduce nesting inside the `pre_exec` call.
Auto-committed-on: dragonfly
Co-authored-by: Medulla <medulla@tinyhumans.ai>1 parent 9006c64 commit d6d73d2
1 file changed
Lines changed: 9 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
91 | 91 | | |
92 | 92 | | |
93 | 93 | | |
94 | | - | |
95 | | - | |
96 | | - | |
97 | | - | |
98 | | - | |
99 | | - | |
100 | | - | |
101 | | - | |
| 94 | + | |
102 | 95 | | |
103 | 96 | | |
104 | 97 | | |
| |||
122 | 115 | | |
123 | 116 | | |
124 | 117 | | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
125 | 126 | | |
126 | 127 | | |
127 | 128 | | |
0 commit comments