mirror of
https://gitlab.labs.nic.cz/labs/bird.git
synced 2024-05-11 16:54:54 +00:00
Conf: Make 'configure check' command restricted
While it does not directly change BIRD state, it can trigger reading arbitrary files and eating significant memory.
This commit is contained in:
@@ -282,6 +282,9 @@ cmd_read_config(const char *name)
|
||||
void
|
||||
cmd_check_config(const char *name)
|
||||
{
|
||||
if (cli_access_restricted())
|
||||
return;
|
||||
|
||||
struct config *conf = cmd_read_config(name);
|
||||
if (!conf)
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user