-
Notifications
You must be signed in to change notification settings - Fork 601
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for kernel != userland snapd in seccomp
The old C code supported the following cases for compat syscalls: 1. kernel and userspace are both 32 bit (no compat) 2. kernel and userspace are both 64 bit (need to load 32 bit arch for 32 bit compat) 3. kernel is 64 bit and userspace is 32 bit (need to load 64 bit arch for native syscalls) This commit ensures case (3) is now also supported with the new go based seccomp code. Note that (3) in the context of snaps is very strange. When snapd runs as a 32bit app it will only request 32bit snaps from the store. So there has to be 32bit snaps that contain 64bit code and logic that can auto-detect if 64 bit code can be run and that then makes use of this 64bit code.
- Loading branch information
Showing
2 changed files
with
84 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters