Skip to content
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

Limit the syscalls available to the lobby bots #18

Merged
merged 1 commit into from
Mar 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions roles/lobby_bots/templates/echelon-systemd-service.j2
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,13 @@ ProtectKernelLogs=true
ProtectKernelModules=true
ProtectKernelTunables=true
ProtectSystem=full
SystemCallArchitectures=native
SystemCallFilter=access arch_prctl brk close connect epoll_create1 epoll_ctl epoll_wait fchmod
SystemCallFilter=fcntl fdatasync futex getcwd getdents64 geteuid getpeername getpid getrandom
SystemCallFilter=getsockname getsockopt gettid ioctl lseek mmap mprotect mremap munmap newfstatat
SystemCallFilter=openat pread64 prlimit64 pwrite64 read readlink recvfrom rseq rt_sigaction sendto
SystemCallFilter=set_robust_list setsockopt set_tid_address socket socketpair sysinfo uname unlink
SystemCallFilter=write

[Install]
WantedBy=multi-user.target
7 changes: 7 additions & 0 deletions roles/lobby_bots/templates/moderation-systemd-service.j2
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,13 @@ ProtectKernelLogs=true
ProtectKernelModules=true
ProtectKernelTunables=true
ProtectSystem=full
SystemCallArchitectures=native
SystemCallFilter=access arch_prctl brk close connect epoll_create1 epoll_ctl epoll_wait fchmod
SystemCallFilter=fcntl fdatasync futex getcwd getdents64 geteuid getpeername getpid getrandom
SystemCallFilter=getsockname getsockopt gettid ioctl lseek mmap mprotect mremap munmap newfstatat
SystemCallFilter=openat pread64 prlimit64 pwrite64 read readlink recvfrom rseq rt_sigaction sendto
SystemCallFilter=set_robust_list setsockopt set_tid_address socket socketpair sysinfo uname unlink
SystemCallFilter=write

[Install]
WantedBy=multi-user.target
7 changes: 7 additions & 0 deletions roles/lobby_bots/templates/xpartamupp-systemd-service.j2
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,13 @@ ProtectKernelLogs=true
ProtectKernelModules=true
ProtectKernelTunables=true
ProtectSystem=full
SystemCallArchitectures=native
SystemCallFilter=access arch_prctl brk close connect epoll_create1 epoll_ctl epoll_wait fchmod
SystemCallFilter=fcntl fdatasync futex getcwd getdents64 geteuid getpeername getpid getrandom
SystemCallFilter=getsockname getsockopt gettid ioctl lseek mmap mprotect mremap munmap newfstatat
SystemCallFilter=openat pread64 prlimit64 pwrite64 read readlink recvfrom rseq rt_sigaction sendto
SystemCallFilter=set_robust_list setsockopt set_tid_address socket socketpair sysinfo uname unlink
SystemCallFilter=write

[Install]
WantedBy=multi-user.target
Loading