Skip to content

Conversation

@csstaub
Copy link
Member

@csstaub csstaub commented Apr 8, 2024

Initial landlock implementation for Ghostunnel:

  • Adds ability to enable landlock via the --use-landlock flag. Landlock rules are generated based on flag values. The rule set is not as restrictive as it could be, I tried to strike a practical balance between security and maintainability.
  • Unfortunately this isn't compatible with PKCS#11, because a PKCS#11 module is an SO with arbitrary code and there's no way we can know what it does/what policies it needs. I tried making it work with SoftHSM2 but even that was an exercise in frustration.

@csstaub csstaub force-pushed the cs/landlock branch 8 times, most recently from 184ce72 to 2bcbd31 Compare April 12, 2024 23:20
@csstaub csstaub changed the title Work in Progress - Initial landlock implementation Initial landlock implementation Apr 13, 2024
@codecov
Copy link

codecov bot commented Apr 13, 2024

Codecov Report

Attention: Patch coverage is 85.24590% with 18 lines in your changes are missing coverage. Please review.

Project coverage is 81.36%. Comparing base (7c03fa3) to head (53917f4).

Files Patch % Lines
landlock_linux.go 86.48% 8 Missing and 7 partials ⚠️
landlock_other.go 33.33% 2 Missing ⚠️
main.go 87.50% 1 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##           master     #431       +/-   ##
===========================================
+ Coverage   71.17%   81.36%   +10.19%     
===========================================
  Files          38       35        -3     
  Lines        2213     1825      -388     
===========================================
- Hits         1575     1485       -90     
+ Misses        548      253      -295     
+ Partials       90       87        -3     
Flag Coverage Δ
darwin 79.41% <27.27%> (+9.48%) ⬆️
linux 85.70% <86.55%> (+13.22%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@csstaub csstaub merged commit defebe2 into master Apr 13, 2024
@csstaub csstaub deleted the cs/landlock branch April 13, 2024 20:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants