File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -34,4 +34,15 @@ if (( (16#${CAP_EFF_HEX} & CAP_SYS_ADMIN_MASK) == 0 )); then
3434 exit 1
3535fi
3636
37+ echo " ==> [预检] 检查 buck2 ..."
38+ if ! command -v buck2 > /dev/null 2>&1 ; then
39+ echo " 错误:buck2 不在 PATH 中,请安装 buck2 到 /usr/local/bin/buck2。"
40+ exit 1
41+ fi
42+ if ! buck2 version > /dev/null 2>&1 ; then
43+ echo " 错误:buck2 已安装但无法执行(权限或依赖问题)。"
44+ exit 1
45+ fi
46+ echo " - buck2 就绪: $( which buck2) "
47+
3748echo " ==> [预检] 通过"
Original file line number Diff line number Diff line change @@ -35,14 +35,8 @@ KillSignal=SIGTERM
3535SendSIGKILL =yes
3636FinalKillSignal =SIGKILL
3737
38- # Grant capabilities for FUSE mounting and read-search bypass
39- AmbientCapabilities =CAP_SYS_ADMIN
40- CapabilityBoundingSet =CAP_SYS_ADMIN CAP_DAC_OVERRIDE CAP_DAC_READ_SEARCH
41-
42- # Basic hardening (relaxed for FUSE operations)
43- NoNewPrivileges =false
44- PrivateTmp =false
45- PrivateMounts =no
38+ LimitNOFILE =10485760
39+ LimitNPROC =1048576
4640
4741[Install]
4842WantedBy =multi-user.target
You can’t perform that action at this time.
0 commit comments