lablup / lablup/backend.ai-jail
Audit ARM64 port
- Dominant language
- Rust
- Stars
- 8
- Forks
- 2
- PR merge metrics
- No merged PRs in 30d
Description
#29 did basic port to ARM64, but Linux on different architectures (like x86_64 and ARM64) can execute different syscalls for the same code, and Jail needs to take that into consideration.
At least one such case is known. For the following Python code:
```python
import os
os.access('/', os.F_OK)
```
x86_64 executes `access` but ARM64 executes `faccessat`. Currently, `access` is checked for path but `faccessat` is not.
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by tracing how Jail checks path-related syscalls on Linux, then compare the handling of access on x86_64 with faccessat on ARM64. Reproduce the behavior with the provided Python os.access('/', os.F_OK) example and verify that both syscall paths receive the intended path check.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- linux, python, rust
- Domain
- operating-systems, security
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100