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

add missing syscalls for workers #2212

Merged
merged 3 commits into from
Mar 28, 2024
Merged

Conversation

tugytur
Copy link
Contributor

@tugytur tugytur commented Nov 7, 2023

Description

Since the binary split additional syscalls are getting blocked in relation to the workers.

With the hardened systemd file it shows the following warning:

Cannot fully enable landlock, a Linux kernel security feature. Running validation of malicious PVF code has a higher risk of compromising this machine. Consider upgrading the kernel version for maximum security. status=Ok(NotEnforced) abi=1

For it to work we need to allow additionally:

  • mount
  • umount2
  • pivot_root

and set RestrictNamespaces=false

Added new line SystemCallFilter=pivot_root because otherwise it would get blocked by ~@\privileged

@s0me0ne-unkn0wn
Copy link
Contributor

This one could partially resolve #2728, it's a shame it got lost. Let's merge it.

@s0me0ne-unkn0wn s0me0ne-unkn0wn added R0-silent Changes should not be mentioned in any release notes T0-node This PR/Issue is related to the topic “node”. labels Mar 28, 2024
@s0me0ne-unkn0wn
Copy link
Contributor

@lovelaced could you please have a look?

@s0me0ne-unkn0wn s0me0ne-unkn0wn removed the request for review from AndreiEres March 28, 2024 13:32
Copy link

@lovelaced lovelaced left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks sane to me, I would definitely prefer users do this rather than blanket-disable all systemd protections as was done in the other issue.

@paritytech paritytech deleted a comment from command-bot bot Mar 28, 2024
@bkchr bkchr enabled auto-merge March 28, 2024 13:42
@bkchr bkchr added this pull request to the merge queue Mar 28, 2024
Merged via the queue into paritytech:master with commit c106dbd Mar 28, 2024
129 of 133 checks passed
pgherveou pushed a commit that referenced this pull request Apr 2, 2024
# Description

Since the binary split additional syscalls are getting blocked in
relation to the workers.

With the hardened systemd file it shows the following warning:

```
Cannot fully enable landlock, a Linux kernel security feature. Running validation of malicious PVF code has a higher risk of compromising this machine. Consider upgrading the kernel version for maximum security. status=Ok(NotEnforced) abi=1
```

For it to work we need to allow additionally:
- mount
- umount2
- pivot_root

and set `RestrictNamespaces=false`

Added new line `SystemCallFilter=pivot_root` because otherwise it would
get blocked by ~\@\privileged

Co-authored-by: s0me0ne-unkn0wn <[email protected]>
Co-authored-by: Bastian Köcher <[email protected]>
dharjeezy pushed a commit to dharjeezy/polkadot-sdk that referenced this pull request Apr 9, 2024
# Description

Since the binary split additional syscalls are getting blocked in
relation to the workers.

With the hardened systemd file it shows the following warning:

```
Cannot fully enable landlock, a Linux kernel security feature. Running validation of malicious PVF code has a higher risk of compromising this machine. Consider upgrading the kernel version for maximum security. status=Ok(NotEnforced) abi=1
```

For it to work we need to allow additionally:
- mount
- umount2
- pivot_root

and set `RestrictNamespaces=false`

Added new line `SystemCallFilter=pivot_root` because otherwise it would
get blocked by ~\@\privileged

Co-authored-by: s0me0ne-unkn0wn <[email protected]>
Co-authored-by: Bastian Köcher <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
R0-silent Changes should not be mentioned in any release notes T0-node This PR/Issue is related to the topic “node”.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants