Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix sorting private-etc in i2prouter.profile
@rusty-snake For now I've fixed the sorting to let it pass CI. Do you think sort.py should put java-{8,9}-openjdk before java-10-openjdk?
- Loading branch information
74e33f0
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sounds reasonable, however
private-etc
would need a own sort-function with hardcoded specials for java-*-openjdk. If anyone has the time …74e33f0
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@rusty-snake Thanks for your input. As this seems to be the only profile showing this 'exotic' private-etc sorting issue, IMHO it's not a high priority issue. If we had
globbing support for private-etc
we could simplify and avoid things like this by using java-*. @smitsohu: would that be doable/too much hassle?74e33f0
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@glitsj16 It should be quite straightforward, mostly copy/paste from other places (like
private-bin
)74e33f0
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@smitsohu Thanks for your response. I have some time next week to take a stab at it.
74e33f0
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@smitsohu Going over the code more closely to implement globbing support for private-etc I noticed 2 occasions where asprinf is used instead of asprintf: https://github.com/netblue30/firejail/blob/master/src/firejail/fs_bin.c#L188 and https://github.com/netblue30/firejail/blob/master/src/firejail/fs_bin.c#L193. I'm assuming these are just typos and have a fix in #3168. If you find some time, could you take a look and merge if you're OK with it please?