mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
[GH-ISSUE #2738] [Enhancement] syscall script #1721
Labels
No labels
LTS merge
LTS merge
bug
bug
converted-to-discussion
doc-todo
documentation
duplicate
enhancement
file-transfer
firecfg
firejail-in-firejail
firetools
graphics
help wanted
information_old
installation
invalid
modif
moved
needinfo
networking
notabug
notourbug
old-version
overlayfs
packaging
profile-request
pull-request
question
question_old
removal
runtime-permissions
sandbox-ipc
security
stale
wiki
wiki
wontfix
wordpress
workaround
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/firejail#1721
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @curiosity-seeker on GitHub (Jun 1, 2019).
Original GitHub issue: https://github.com/netblue30/firejail/issues/2738
There is a link on the homepage of this project to a script on https://github.com/avilum/syscalls to get a list a syscalls.
I suggest an improved and more useful script:
It produces a comma-delimited line with an alphabetized and deduplicated list of the necessary syscalls ready to be copied over to a profile. I suggest to add it as a helper script to this repo.
Feel free to modify it if necessary. I'm not a scripting expert so improvements are certainly possible.
@chiraag-nataraj commented on GitHub (Jun 1, 2019):
I used
shellcheckto clean it up a bit:(mostly just explicitly escaping backslashes, but quoting in a couple of places).
@curiosity-seeker commented on GitHub (Jun 1, 2019):
Thanks! I wasn't aware of
shellcheck.I also tried it and it only recommends "Double quote to prevent globbing and word splitting". Escaping the backslashes didn't make a difference for me.
@chiraag-nataraj commented on GitHub (Jun 1, 2019):
Hmm...interesting. Maybe a newer version then?
@curiosity-seeker commented on GitHub (Jun 1, 2019):
It's shellcheck 0.6.0-106 on Manjaro.
@chiraag-nataraj commented on GitHub (Jun 1, 2019):
Hmm, I have an older version (0.5.0 on Debian sid/experimental). That's probably it then.
[edit] Yup - it was retired after version 0.5 😂.
@curiosity-seeker commented on GitHub (Jun 2, 2019):
Here's an improved version which checks for an input argument:
@topimiettinen commented on GitHub (Jun 2, 2019):
Wouldn't it be more robust to use
strace -crather than parsing normal strace output? It produces this kind of summary:@curiosity-seeker commented on GitHub (Jun 2, 2019):
@topimiettinen : I guess, you're right. This could be done this way:
@curiosity-seeker commented on GitHub (Jun 2, 2019):
Actually this can be simplified:
@netblue30 commented on GitHub (Jun 8, 2019):
@curiosity-seeker - we can add the script in contrib directory, send a pull request! All the files there are installed in /usr/lib/firejail directory.
@curiosity-seeker commented on GitHub (Jun 9, 2019):
Thanks! Done!