mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 06:06:02 -06:00
add support for seccomp to sort.py [skip ci]
This commit is contained in:
parent
22878449ae
commit
17827a5b7f
1 changed files with 2 additions and 0 deletions
|
|
@ -78,6 +78,8 @@ def fix_profile(filename):
|
|||
fixed_line = f"{line[:10]}{sort_alphabetical(line[10:])}"
|
||||
elif line[:8] == "protocol":
|
||||
fixed_line = f"protocol {sort_protocol(line[9:])}"
|
||||
elif line[:8] == "seccomp ":
|
||||
fixed_line = f"{line[:8]}{sort_alphabetical(line[8:])}"
|
||||
else:
|
||||
fixed_line = line
|
||||
if fixed_line != line:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue