Skip to content

Commit

Permalink
${CAP_LAST_CAP_MOUNT_POINT}
Browse files Browse the repository at this point in the history
  • Loading branch information
2moe committed May 17, 2021
1 parent c4877a7 commit 84da5d3
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion share/old-version/share/app/manager
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ check_tmoe_command() {
else
TMOE_TIPS_01="tmoe"
fi
TMOE_TIPS_00="Welcome to tmoe linux manager v1.4729,type ${TMOE_TIPS_01} to start it."
TMOE_TIPS_00="Welcome to tmoe linux manager v1.4730,type ${TMOE_TIPS_01} to start it."
}
#########################
tmoe_manager_env() {
Expand Down
4 changes: 3 additions & 1 deletion share/old-version/share/container/proot/startup
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,8 @@ cat >${TMOE_STARTUP_SCRIPT} <<-ENDOFPROOT
# Default is true.
MOUNT_CAP_LAST_CAP=true
CAP_LAST_CAP_SOURCE="/dev/null"
CAP_LAST_CAP_MOUNT_POINT="/proc/sys/kernel/cap_last_cap"
# /dev/null:/proc/sys/kernel/cap_last_cap
#---
Expand Down Expand Up @@ -419,7 +421,7 @@ cat >${TMOE_STARTUP_SCRIPT} <<-ENDOFPROOT
fi
if [[ \${MOUNT_CAP_LAST_CAP} = true ]]; then
set -- "\${@}" "--mount=/dev/null:/proc/sys/kernel/cap_last_cap"
set -- "\${@}" "--mount=\${CAP_LAST_CAP_SOURCE}:\${CAP_LAST_CAP_MOUNT_POINT}"
fi
#############
unset QEMU_BIN
Expand Down
2 changes: 1 addition & 1 deletion share/old-version/tools/app/tool
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ check_tmoe_command() {
else
TMOE_TIPS_01="tmoe t"
fi
TMOE_TIPS_00="Welcome to tmoe linux tool v1.4729,type ${TMOE_TIPS_01} to start this tool."
TMOE_TIPS_00="Welcome to tmoe linux tool v1.4730,type ${TMOE_TIPS_01} to start this tool."
#勿改00变量
}
#########
Expand Down

0 comments on commit 84da5d3

Please sign in to comment.