Disallow everything by default

And update config.d/security to configure sane defaults
This commit is contained in:
Drew DeVault 2016-12-03 12:38:42 -05:00
parent 93d99f3712
commit e7a764fdf4
4 changed files with 34 additions and 13 deletions

View file

@ -524,7 +524,7 @@ struct cmd_results *config_commands_command(char *exec) {
}
struct cmd_handler *handler = find_handler(cmd, CMD_BLOCK_END);
if (!handler) {
if (!handler && strcmp(cmd, "*") != 0) {
char *input = cmd ? cmd : "(empty)";
results = cmd_results_new(CMD_INVALID, input, "Unknown/invalid command");
goto cleanup;