-
Notifications
You must be signed in to change notification settings - Fork 589
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
New profile: luarocks #4596
base: master
Are you sure you want to change the base?
New profile: luarocks #4596
Changes from all commits
990ffbb
eb7dab0
4e670d2
5df4c63
f6f0021
65242d9
4c5ca65
161df63
29ef011
e610d2e
f3e9ea0
ce1b231
1d1f524
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
# Firejail profile for luarocks | ||
# Description: LuaRocks is the package manager for the Lua programming language. | ||
# This file is overwritten after every install/update | ||
quiet | ||
# Persistent local customizations | ||
include luarocks.local | ||
# Persistent global definitions | ||
include globals.local | ||
|
||
# Disallow blocking access to Lua header files. | ||
noblacklist /usr/include/lua* | ||
Comment on lines
+10
to
+11
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. When is Currently this is how we handle
|
||
# Allow lua (blacklisted by disable-interpreters.inc) | ||
include allow-lua.inc | ||
|
||
matu3ba marked this conversation as resolved.
Show resolved
Hide resolved
|
||
blacklist ${RUNUSER} | ||
|
||
include disable-common.inc | ||
# luarocks can invoke compilers | ||
#include disable-devel.inc | ||
include disable-exec.inc | ||
include disable-interpreters.inc | ||
include disable-programs.inc | ||
# luarocks is hacky and needs shell access | ||
#include disable-shell.inc | ||
matu3ba marked this conversation as resolved.
Show resolved
Hide resolved
|
||
include disable-X11.inc | ||
include disable-xdg.inc | ||
|
||
whitelist ${HOME}/.netrc | ||
whitelist ${HOME}/.config/pkcs11 | ||
whitelist ${HOME}/.wget-hsts | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is this necessary? edit: this line: |
||
whitelist ${HOME}/.cache/luarocks | ||
whitelist ${HOME}/luarocks/cmd/external | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Nothing else from There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The answer to this question depends on "Needs discussion: Do we want to firecfg build-systems/package-managers by default? (related: #4519)". |
||
whitelist ${HOME}/.nix-profile/bin | ||
whitelist ${HOME}/.luarocks | ||
whitelist ${HOME}/.config/luarocks | ||
Comment on lines
+28
to
+35
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Missing There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Missing
Comment on lines
+28
to
+35
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Needs discussion: Missing wc.
Comment on lines
+28
to
+35
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Needs discussion: Do we want to use whitelisting for package-managers/build-systems by default. |
||
|
||
whitelist /usr/share/lua | ||
matu3ba marked this conversation as resolved.
Show resolved
Hide resolved
|
||
include whitelist-run-common.inc | ||
include whitelist-usr-share-common.inc | ||
include whitelist-var-common.inc | ||
|
||
# apparmor | ||
caps.drop all | ||
ipc-namespace | ||
machine-id | ||
netfilter | ||
no3d | ||
nodvd | ||
nogroups | ||
noinput | ||
nonewprivs | ||
noroot | ||
nosound | ||
notv | ||
nou2f | ||
novideo | ||
protocol unix,inet,inet6 | ||
seccomp | ||
matu3ba marked this conversation as resolved.
Show resolved
Hide resolved
|
||
seccomp.block-secondary | ||
shell none | ||
tracelog | ||
|
||
disable-mnt | ||
private-cache | ||
private-dev | ||
#private-etc alternatives,ca-certificates,crypto-policies,luarocks,pki,ssl | ||
private-tmp | ||
|
||
dbus-user none | ||
dbus-system none | ||
|
||
read-write ${HOME}/.luarocks |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -481,6 +481,7 @@ lowriter | |
# lrzip - disable until we fix CLI archivers for makepkg on Arch (see discussion in #3095) | ||
# lrztar - disable until we fix CLI archivers for makepkg on Arch (see discussion in #3095) | ||
# lrzuntar - disable until we fix CLI archivers for makepkg on Arch (see discussion in #3095) | ||
luarocks | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Needs discussion: Do we want to firecfg build-systems/package-managers by default? (related: #4519) There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Status quo of the default profile is very undesirable, because
|
||
luminance-hdr | ||
lximage-qt | ||
lxmusic | ||
|
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.
I need to check why there was these two.