1
1
mirror of https://github.com/tstack/lnav.git synced 2024-09-11 13:05:51 +03:00

[commands] Remove eval from the list of sandboxed commands.

This commit is contained in:
Suresh Sundriyal 2016-04-23 11:18:01 -07:00
parent 88833c8035
commit e4ef35e652
3 changed files with 0 additions and 5 deletions

1
NEWS
View File

@ -46,7 +46,6 @@ lnav v0.8.1:
- pipe-to
- pipe-line-to
- write-*-to
- eval
This makes it easier to run lnav with escalated privileges in restricted
environments, without the risk of users being able to use the above
mentioned commands to gain privileged access.

View File

@ -143,7 +143,6 @@ The following options are available:
environment variable before executing the **lnav** binary:
- open
- eval
- pipe-to
- pipe-line-to
- write-*-to

View File

@ -2241,9 +2241,6 @@ static string com_eval(string cmdline, vector<string> &args)
if (args.empty()) {
}
else if (lnav_data.ld_flags & LNF_SECURE_MODE) {
return "error: " + args[0] + " -- unavailable in secure mode";
}
else if (args.size() > 1) {
string all_args = remaining_args(cmdline, args);