From 238f8ae35dd38c8dca4a02ebcc4a7fa1bd3ad3b3 Mon Sep 17 00:00:00 2001 From: Eric Bollengier Date: Tue, 4 Apr 2023 11:57:10 +0200 Subject: [PATCH] Disable Bootstrap manual selection in restore for Restricted Console --- bacula/src/dird/ua_run.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/bacula/src/dird/ua_run.c b/bacula/src/dird/ua_run.c index d29c64a0c..8f6fa9bc4 100644 --- a/bacula/src/dird/ua_run.c +++ b/bacula/src/dird/ua_run.c @@ -1301,6 +1301,10 @@ int modify_job_parameters(UAContext *ua, JCR *jcr, run_ctx &rc) } goto try_again; case 7: + if (ua->cons) { + ua->error_msg(_("Selection of bootstrap file is not allowed for restricted Console\n")); + break; + } /* Pool or Bootstrap depending on JobType */ if (jcr->getJobType() == JT_BACKUP || jcr->getJobType() == JT_COPY || -- 2.47.3