Commit b571a2f
committed
feat: update git feature for pacman master API changes
Regenerated ffi_git.rs bindings from current pacman git master and
added support for new sandbox options. The pacman-git API has split
the old disable_sandbox option into separate filesystem and syscalls
controls.
Changes:
- Regenerated ffi_git.rs from current pacman git master source
- Added sandbox_filesystem_disabled() and sandbox_syscalls_disabled()
getters for git feature
- Added set_disable_sandbox_filesystem() and set_disable_sandbox_syscalls()
setters for git feature
- Updated alpm-utils to handle both old (stable) and new (git) sandbox APIs
- Kept stable set_disable_sandbox() for non-git feature
- Updated sandbox test to handle cases where set_sandbox_user may fail
The git feature now properly tracks the current pacman master API with:
- alpm_option_get/set_disable_sandbox_filesystem
- alpm_option_get/set_disable_sandbox_syscalls
- alpm_sandbox_setup_child with 4 parameters (including restrict_syscalls)
Signed-off-by: Josephine Pfeiffer <[email protected]>1 parent cddd02a commit b571a2f
File tree
4 files changed
+296
-256
lines changed- alpm-sys/src
- alpm-utils/src
- alpm/src
4 files changed
+296
-256
lines changed
0 commit comments