Skip to content
Snippets Groups Projects
Commit 47dad9e8 authored by Tim Wickberg's avatar Tim Wickberg
Browse files

Add support for SLURM_TESTSUITE_DROP_PRIV to the accounting_storage plugins.

A lot of slurmdbd operations are authenticated by the accounting_storage
plugin, rather than in slurmdbd. To allow the drop_priv flag to work it
must be checked in is_user_min_admin_level() in addition to the various
functions in proc_req.c .
parent 29fe710d
No related branches found
No related tags found
No related merge requests found
......@@ -62,6 +62,8 @@ extern char *wckey_day_table;
extern char *wckey_hour_table;
extern char *wckey_month_table;
extern __thread bool drop_priv;
/*
* We want SLURMDB_MODIFY_ASSOC always to be the last
*/
......@@ -466,6 +468,10 @@ extern bool is_user_min_admin_level(void *db_conn, uid_t uid,
* THERE IS NO AUTHENTICATION WHEN RUNNNING OUT OF THE
* SLURMDBD!
*/
#ifndef NDEBUG
if (drop_priv)
return false;
#endif
if (slurmdbd_conf) {
/* We have to check the authentication here in the
* plugin since we don't know what accounts are being
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment