Risk 0/5 · Safe
wechat-universal.sh
Result #2903
Comment
The change removes the previous conditional bwrap setup and now always appends `--unshare-user-try --unshare-pid --unshare-uts --unshare-cgroup-try`, while dropping `--share-net`. This is a packaging/runtime behavior change, but it does not introduce obvious supply-chain, persistence, privilege-escalation, or code-execution red flags. The new sandboxing is actually stricter in some respects (no shared network, PID namespace isolation), and there are no added downloads, scripts, or privileged operations in the reviewed hunk. Main risk is functional breakage for multi-instance behavior or networking, not a security issue.
@@ -151,22 +151,11 @@ try_start() {
mkdir -p "${WECHAT_FILES_DIR}" "${WECHAT_HOME_DIR}"
ln -snf "${WECHAT_FILES_DIR}" "${WECHAT_HOME_DIR}/xwechat_files"
- if [[ "${WECHAT_MULTIPLE_INSTANCE}" ]];then
- BWRAP_ARGS=(
- --unshare-user-try
- --unshare-ipc
- --unshare-uts
- --unshare-cgroup-try
- )
- else
- BWRAP_ARGS=(
- # Drop privileges
- --unshare-all
- )
- fi
-
BWRAP_ARGS+=(
- --share-net
+ --unshare-user-try
+ --unshare-pid
+ --unshare-uts
+ --unshare-cgroup-try
--cap-drop ALL
--die-with-parent