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
Fix: Address multiple critical vulnerabilities and bugs
This commit addresses a wide range of issues identified in a comprehensive code review, including critical security vulnerabilities, build system failures, and logic errors.
Key changes include:
- **Security:**
- Patched a path traversal vulnerability in the Flask download endpoint.
- Mitigated a race condition and memory leaks in the Flask build endpoint by implementing a thread-safe, queue-based build process.
- Replaced the use of the `--privileged` Docker flag with more granular capabilities (`--cap-add=SYS_ADMIN --cap-add=MKNOD`) to reduce container security risks.
- Implemented atomic file writes in `entrypoint.sh` to prevent configuration file corruption.
- Added input validation for directory paths and package list syntax.
- **Build System:**
- Corrected the XZ compression options in `profiledef.sh` for `mksquashfs`.
- Improved the `select-mirrors.sh` script to handle failures in `reflector` gracefully.
- Updated the GitHub Actions workflow to invalidate the pacman cache when `pacman.conf` changes.
- Fixed an issue in the `no-beep.service` file where it would try to write to a non-existent sysfs path.
- **Logic and Reliability:**
- Enhanced the `validate` function in `entrypoint.sh` to perform more comprehensive checks on configuration files.
- Corrected a typo in a variable name within the build script.
- Updated the `bootmodes` array in `profiledef.sh` to use simplified, general options.
0 commit comments