From 1f118ecacc829876dd1905d2dc7936feaba1b81c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=A5=D1=80=D0=BE=D0=BC=D0=B5=D0=BD=D0=BE=D0=BA=20=D0=A0?= =?UTF-8?q?=D0=BE=D0=BC=D0=B0=D0=BD=20=D0=92=D0=BB=D0=B0=D0=B4=D0=B8=D0=BC?= =?UTF-8?q?=D0=B8=D1=80=D0=BE=D0=B2=D0=B8=D1=87?= Date: Thu, 13 Jun 2024 17:18:00 +0200 Subject: [PATCH] add comment for function --- apps/cli/cli_common.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/apps/cli/cli_common.c b/apps/cli/cli_common.c index 5343e87f..940023db 100644 --- a/apps/cli/cli_common.c +++ b/apps/cli/cli_common.c @@ -794,6 +794,11 @@ cli_set_mode(clixon_handle h, * run_program_bash("Run program"), cli_start_program("bash"); * @endcode * + * @warning Please note that the usage of this function consists of executing an arbitrary command given to + * the function as an argument. It may pose a serious security risk if the function is used improperly. + * Developers should take necessary precautions to ensure safety, such as using `chroot` to limit the + * space of accessible scripts for execution. + * * @param[in] h Clixon handle * @param[in] cvv Vector of command variables * @param[in] argv Function arguments