Mercurial > vim
comparison runtime/doc/starting.txt @ 27509:ef32ea9fbe6c v8.2.4282
patch 8.2.4282: restricted mode requires the -Z command line option
Commit: https://github.com/vim/vim/commit/adbb1bf21dad5697cd82d46d9dd9e8e8d0f647e6
Author: matveyt <matthewtarasov@gmail.com>
Date: Tue Feb 1 17:26:12 2022 +0000
patch 8.2.4282: restricted mode requires the -Z command line option
Problem: Restricted mode requires the -Z command line option.
Solution: Use restricted mode when $SHELL ends in "nologin" or "false".
(closes #9681)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Tue, 01 Feb 2022 18:30:05 +0100 |
parents | 3649b5a6b1b6 |
children | 063952f68595 |
comparison
equal
deleted
inserted
replaced
27508:6708c3906c35 | 27509:ef32ea9fbe6c |
---|---|
254 Also disallowed are delete(), rename(), mkdir(), job_start(), | 254 Also disallowed are delete(), rename(), mkdir(), job_start(), |
255 etc. | 255 etc. |
256 Interfaces, such as Python, Ruby and Lua, are also disabled, | 256 Interfaces, such as Python, Ruby and Lua, are also disabled, |
257 since they could be used to execute shell commands. Perl uses | 257 since they could be used to execute shell commands. Perl uses |
258 the Safe module. | 258 the Safe module. |
259 For Unix restricted mode is used when the last part of $SHELL | |
260 is "nologin" or "false". | |
259 Note that the user may still find a loophole to execute a | 261 Note that the user may still find a loophole to execute a |
260 shell command, it has only been made difficult. | 262 shell command, it has only been made difficult. |
261 | 263 |
262 *-g* | 264 *-g* |
263 -g Start Vim in GUI mode. See |gui|. For the opposite see |-v|. | 265 -g Start Vim in GUI mode. See |gui|. For the opposite see |-v|. |