You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'd planned to just make a PR, but the syscalls required seem to change each time and I'd like to test further. For example, the moderation bot sometimes requires mkdirat, I assume this related to the database but need to confirm with strace.
I wish Linux had a higher-level API like OpenBSD's pledge and unveil. Unfortunately, SECCOMP forces whack-a-mole with syscalls, which leads me to this question:
The current layout of syscalls in the filter is like this, with each line being less than 100 chars and sorted alphabetically. Given that syscalls would have to be added for this PR and potentially in the future, might it be preferable to list them on their own lines to preserve git blames?
Yes, the functionality introduced with 0ad/lobby-bots#45 does need additional syscalls. I have a branch with the necessary changes prepared already and plan to create a PR from it once I merged 0ad/lobby-bots#45. I plan to do it after the merge, as the branch refers to the changes in the lobby-bots repository and not only add the new syscalls, but enables the profanity monitoring as well.
So you don't have to create a PR for that. Good one noticing and being able to debug that though. 👍
Given that syscalls would have to be added for this PR and potentially in the future, might it be preferable to list them on their own lines to preserve git blames?
I'm not sure if the syntax you propose would work with systemd, however as the necessary syscalls shouldn't change frequently, I believe the current notation is fine. There is a trade-off between the readability of the systemd unit files and how granular being able to use git blame and I believe the current notation strikes a good balance between them.
And thanks for all the work on the lobby, I know I just came out of nowhere 😅 I'm __najimakimoda in game.
If you have questions or would like to discuss ideas with me, I'm available on IRC in #0ad-dev. 🙂
On
Debian 12
arm64
, the lobby bots' Python processes are killed without the following in theirSystemCallFilter
lists:epoll_pwait
faccessat
fchown
readlinkat
rt_sigprocmask
unlinkat
Tested with Dunedan/lobby-bots@79f52f5.
I'd planned to just make a PR, but the syscalls required seem to change each time and I'd like to test further. For example, the moderation bot sometimes requires
mkdirat
, I assume this related to the database but need to confirm withstrace
.I wish Linux had a higher-level API like OpenBSD's
pledge
andunveil
. Unfortunately,SECCOMP
forces whack-a-mole with syscalls, which leads me to this question:The current layout of syscalls in the filter is like this, with each line being less than 100 chars and sorted alphabetically. Given that syscalls would have to be added for this PR and potentially in the future, might it be preferable to list them on their own lines to preserve git blames?
I would defer to you on the formatting, @Dunedan.
And thanks for all the work on the lobby, I know I just came out of nowhere 😅 I'm
__najimakimoda
in game.The text was updated successfully, but these errors were encountered: