minor improvements

This commit is contained in:
valoq 2019-12-01 20:35:22 +01:00
parent a9b1057f97
commit 24f691ba9c
No known key found for this signature in database
GPG Key ID: 19F09A0FB865CBD8
4 changed files with 5 additions and 2 deletions

View File

@ -60,7 +60,7 @@ int main(int argc, char *argv[])
DENY_RULE (acct);
DENY_RULE (add_key);
DENY_RULE (adjtimex);
DENY_RULE (chroot);
/* DENY_RULE (chroot); required by firefox */
DENY_RULE (clock_adjtime);
DENY_RULE (create_module);
DENY_RULE (delete_module);
@ -112,7 +112,7 @@ int main(int argc, char *argv[])
/* end of syscall filter list */
filter_fd = open("/tmp/seccomp_filter.bpf", O_CREAT | O_WRONLY, 0644);
filter_fd = open("seccomp_filter.bpf", O_CREAT | O_WRONLY, 0644);
if (filter_fd == -1) {
rc = -errno;
goto out;

View File

@ -32,6 +32,7 @@ set -euo pipefail
--ro-bind /etc/fonts /etc/fonts \
--ro-bind /etc/mime.types /etc/mime.types \
--ro-bind /etc/pulse /etc/pulse \
--ro-bind /etc/asound.conf /etc/asound.conf \
--tmpfs /run \
--ro-bind ~/.Xauthority /home/jail/.Xauthority \
--bind ~/.mozilla /home/jail/.mozilla \

View File

@ -30,6 +30,7 @@ set -euo pipefail
--ro-bind /etc/fonts /etc/fonts \
--ro-bind /etc/mime.types /etc/mime.types \
--ro-bind /etc/pulse /etc/pulse \
--ro-bind /etc/asound.conf /etc/asound.conf \
--tmpfs /run \
--ro-bind /run/user/"$(id -u)"/wayland-0 /run/user/"$(id -u)"/wayland-0 \
--bind ~/.mozilla /home/jail/.mozilla \
@ -41,6 +42,7 @@ set -euo pipefail
--setenv HOME /home/jail \
--setenv USER nobody \
--setenv LOGNAME nobody \
--setenv MOZ_ENABLE_WAYLAND 1 \
--unshare-user-try \
--unshare-pid \
--unshare-uts \

Binary file not shown.