Skip to content

Commit

Permalink
MOUNT_CAP_LAST_CAP
Browse files Browse the repository at this point in the history
  • Loading branch information
2moe committed May 17, 2021
1 parent 2fdf488 commit c4877a7
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 27 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.4728,type ${TMOE_TIPS_01} to start it."
TMOE_TIPS_00="Welcome to tmoe linux manager v1.4729,type ${TMOE_TIPS_01} to start it."
}
#########################
tmoe_manager_env() {
Expand Down
57 changes: 32 additions & 25 deletions share/old-version/share/container/proot/startup
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,33 @@ cat >${TMOE_STARTUP_SCRIPT} <<-ENDOFPROOT
TMP_SOURCE_DIR="${TMPDIR}"
TMP_MOUNT_POINT="/tmp"
MOUNT_SYSTEM=true
SYSTEM_DIR="/system"
MOUNT_APEX=true
APEX_DIR="/apex"
MOUNT_SYS=false
SYS_DIR="/sys"
MOUNT_DEV=true
DEV_DIR="/dev"
MOUNT_SHM_TO_TMP=true
MOUNT_URANDOM_TO_RANDOM=true
MOUNT_DEV_FD=true
MOUNT_DEV_STDIN=true
MOUNT_DEV_STDOUT=true
MOUNT_DEV_STDERR=true
MOUNT_DEV_TTY=true
MOUNT_PROC=true
PROC_DIR="/proc"
FAKE_PROOT_PROC=true
# Default is true.
MOUNT_CAP_LAST_CAP=true
# /dev/null:/proc/sys/kernel/cap_last_cap
#---
NUM_OF_MOUNTS=12
# uint8
Expand Down Expand Up @@ -206,30 +233,6 @@ cat >${TMOE_STARTUP_SCRIPT} <<-ENDOFPROOT
MOUNT_SOURCE_12=""
MOUNT_POINT_12=""
#---
MOUNT_SYSTEM=true
SYSTEM_DIR="/system"
MOUNT_APEX=true
APEX_DIR="/apex"
MOUNT_SYS=false
SYS_DIR="/sys"
MOUNT_DEV=true
DEV_DIR="/dev"
MOUNT_SHM_TO_TMP=true
MOUNT_URANDOM_TO_RANDOM=true
MOUNT_DEV_FD=true
MOUNT_DEV_STDIN=true
MOUNT_DEV_STDOUT=true
MOUNT_DEV_STDERR=true
MOUNT_DEV_TTY=true
MOUNT_PROC=true
PROC_DIR="/proc"
FAKE_PROOT_PROC=true
# Default is true.
################
TMOE_LOCALE_FILE="${CONFIG_FOLDER}/locale.txt"
DEFAULT_SHELL_CONF="${CONFIG_FOLDER}/default_shell.conf"
Expand Down Expand Up @@ -414,6 +417,10 @@ cat >${TMOE_STARTUP_SCRIPT} <<-ENDOFPROOT
set -- "\${@}" "--mount=\${GITSTATUS_DIR}:\${GITSTATUS_MOUNT_POINT}"
fi
fi
if [[ \${MOUNT_CAP_LAST_CAP} = true ]]; then
set -- "\${@}" "--mount=/dev/null:/proc/sys/kernel/cap_last_cap"
fi
#############
unset QEMU_BIN
case \${SKIP_QEMU_DETECTION} in
Expand Down Expand Up @@ -598,7 +605,7 @@ cat >${TMOE_STARTUP_SCRIPT} <<-ENDOFPROOT
set -- "env" "PROOT_LOADER=\${PROOT_LOADER}" "\${@}"
elif [[ -z \${PROOT_LOADER} && -n \${LD_LIBRARY_PATH} ]]; then
set -- "env" "LD_LIBRARY_PATH=\${LD_LIBRARY_PATH}" "\${@}"
else
elif [[ -n \${PROOT_LOADER} && -n \${LD_LIBRARY_PATH} ]]; then
set -- "PROOT_LOADER=\${PROOT_LOADER}" "\${@}"
set -- "env" "LD_LIBRARY_PATH=\${LD_LIBRARY_PATH}" "\${@}"
fi
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.4728,type ${TMOE_TIPS_01} to start this tool."
TMOE_TIPS_00="Welcome to tmoe linux tool v1.4729,type ${TMOE_TIPS_01} to start this tool."
#勿改00变量
}
#########
Expand Down

0 comments on commit c4877a7

Please sign in to comment.