![]() |
The FreeRADIUS server $Id: 15bac2a4c627c01d1aa2047687b3418955ac7f00 $
|
Handle the main server's (radiusd) configuration. More...
#include <freeradius-devel/server/cf_file.h>#include <freeradius-devel/server/client.h>#include <freeradius-devel/server/dependency.h>#include <freeradius-devel/server/main_config.h>#include <freeradius-devel/server/map_proc.h>#include <freeradius-devel/server/modpriv.h>#include <freeradius-devel/server/util.h>#include <freeradius-devel/server/virtual_servers.h>#include <freeradius-devel/util/conf.h>#include <freeradius-devel/util/file.h>#include <freeradius-devel/util/hw.h>#include <freeradius-devel/util/perm.h>#include <freeradius-devel/util/sem.h>#include <freeradius-devel/util/pair_legacy.h>#include <freeradius-devel/unlang/xlat_func.h>
Include dependency graph for main_config.c:Go to the source code of this file.
Macros | |
| #define | fr_override_list_foreach(_list_head, _iter) for (fr_override_t *JOIN(_next,_iter), *_iter = fr_override_list_head(_list_head); JOIN(_next,_iter) = fr_override_list_next(_list_head, _iter), _iter != NULL; _iter = JOIN(_next,_iter)) |
Functions | |
| static int | _dlhandle_free (void **dl_handle) |
| typedef | FR_DLIST_HEAD (fr_override_list) |
| static int | hostname_lookups_parse (TALLOC_CTX *ctx, void *out, void *parent, CONF_ITEM *ci, conf_parser_t const *rule) |
| void | hup_logfile (main_config_t *config) |
| static int | lib_dir_on_read (TALLOC_CTX *ctx, void *out, void *parent, CONF_ITEM *ci, conf_parser_t const *rule) |
| static int | lib_dir_on_read (UNUSED TALLOC_CTX *ctx, UNUSED void *out, UNUSED void *parent, CONF_ITEM *ci, UNUSED conf_parser_t const *rule) |
| main_config_t * | main_config_alloc (TALLOC_CTX *ctx) |
| Allocate a main_config_t struct, setting defaults. | |
| void | main_config_confdir_set (main_config_t *config, char const *name) |
| Set the global radius config directory. | |
| void | main_config_dict_dir_set (main_config_t *config, char const *name) |
| Set the global dictionary directory. | |
| int | main_config_exclusive_proc (main_config_t *config) |
| Check to see if we're the only process using this configuration file (or PID file if specified) | |
| int | main_config_exclusive_proc_child (UNUSED main_config_t const *config) |
| Increment the semaphore in the child process so that it's not released when the parent exits. | |
| void | main_config_exclusive_proc_done (UNUSED main_config_t const *config) |
| Clean up the semaphore when the main config is freed. | |
| int | main_config_free (main_config_t **config) |
| void | main_config_hup (main_config_t *config) |
| int | main_config_init (main_config_t *config) |
| void | main_config_name_set_default (main_config_t *config, char const *name, bool overwrite_config) |
| Set the server name. | |
| int | main_config_save_override (char const *str) |
| static int | max_request_time_parse (TALLOC_CTX *ctx, void *out, void *parent, CONF_ITEM *ci, conf_parser_t const *rule) |
| static int | name_parse (TALLOC_CTX *ctx, void *out, void *parent, CONF_ITEM *ci, conf_parser_t const *rule) |
| Configured server name takes precedence over default values. | |
| static int | num_networks_parse (TALLOC_CTX *ctx, void *out, void *parent, CONF_ITEM *ci, conf_parser_t const *rule) |
| static uint32_t | num_workers_auto (main_config_t *conf, CONF_ITEM *parent) |
| static int | num_workers_dflt (CONF_PAIR **out, void *parent, CONF_SECTION *cs, fr_token_t quote, conf_parser_t const *rule) |
| static int | num_workers_parse (TALLOC_CTX *ctx, void *out, void *parent, CONF_ITEM *ci, conf_parser_t const *rule) |
| static int | reverse_lookups_parse (TALLOC_CTX *ctx, void *out, void *parent, CONF_ITEM *ci, conf_parser_t const *rule) |
| static int | talloc_pool_size_parse (TALLOC_CTX *ctx, void *out, void *parent, CONF_ITEM *ci, conf_parser_t const *rule) |
| static xlat_action_t | xlat_config (TALLOC_CTX *ctx, fr_dcursor_t *out, UNUSED xlat_ctx_t const *xctx, request_t *request, fr_value_box_list_t *in) |
| xlat to get config values | |
| static int | xlat_config_escape (UNUSED request_t *request, fr_value_box_t *vb, UNUSED void *uctx) |
Variables | |
| fr_log_t | debug_log = { .fd = -1, .dst = L_DST_NULL } |
| fr_override_t | |
| static const conf_parser_t | initial_log_config [] |
| static const conf_parser_t | initial_server_config [] |
| static const conf_parser_t | interpret_config [] |
| static const conf_parser_t | lib_dir_on_read_config [] |
| static const conf_parser_t | log_config [] |
| main_config_t const * | main_config |
| Main server configuration. | |
| static const conf_parser_t | migrate_config [] |
| static const conf_parser_t | request_config [] |
| static const conf_parser_t | request_reuse_config [] |
| static const conf_parser_t | resources [] |
| static const conf_parser_t | security_config [] |
| static const conf_parser_t | server_config [] |
| static const conf_parser_t | switch_users_config [] |
| static const conf_parser_t | thread_config [] |
| static xlat_arg_parser_t const | xlat_config_args [] |
Handle the main server's (radiusd) configuration.
Definition in file main_config.c.
| #define fr_override_list_foreach | ( | _list_head, | |
| _iter | |||
| ) | for (fr_override_t *JOIN(_next,_iter), *_iter = fr_override_list_head(_list_head); JOIN(_next,_iter) = fr_override_list_next(_list_head, _iter), _iter != NULL; _iter = JOIN(_next,_iter)) |
Definition at line 79 of file main_config.c.
|
static |
| typedef FR_DLIST_HEAD | ( | fr_override_list | ) |
< must not be 'const'
Definition at line 66 of file main_config.c.
|
static |
| void hup_logfile | ( | main_config_t * | config | ) |
|
static |
| main_config_t * main_config_alloc | ( | TALLOC_CTX * | ctx | ) |
Allocate a main_config_t struct, setting defaults.
Definition at line 1000 of file main_config.c.
Here is the call graph for this function:
Here is the caller graph for this function:| void main_config_confdir_set | ( | main_config_t * | config, |
| char const * | name | ||
| ) |
Set the global radius config directory.
| [in] | config | to alter. |
| [in] | name | to set as main configuration directory. |
Definition at line 859 of file main_config.c.
Here is the call graph for this function:
Here is the caller graph for this function:| void main_config_dict_dir_set | ( | main_config_t * | config, |
| char const * | name | ||
| ) |
Set the global dictionary directory.
| [in] | config | to alter. |
| [in] | name | to set as dict dir root e.g. /usr/local/share/freeradius. |
Definition at line 988 of file main_config.c.
Here is the call graph for this function:
Here is the caller graph for this function:| int main_config_exclusive_proc | ( | main_config_t * | config | ) |
Check to see if we're the only process using this configuration file (or PID file if specified)
| [in] | config | specifying the path to the main config file. |
Definition at line 913 of file main_config.c.
Here is the call graph for this function:
Here is the caller graph for this function:| int main_config_exclusive_proc_child | ( | UNUSED main_config_t const * | config | ) |
Increment the semaphore in the child process so that it's not released when the parent exits.
| [in] | config | specifying the path to the main config file. |
Definition at line 892 of file main_config.c.
Here is the call graph for this function:
Here is the caller graph for this function:| void main_config_exclusive_proc_done | ( | UNUSED main_config_t const * | config | ) |
Clean up the semaphore when the main config is freed.
This helps with permissions issues if the user is switching between running the process under something like systemd and running it under debug mode.
Definition at line 874 of file main_config.c.
Here is the call graph for this function:
Here is the caller graph for this function:| int main_config_free | ( | main_config_t ** | config | ) |
Definition at line 1411 of file main_config.c.
Here is the call graph for this function:
Here is the caller graph for this function:| void main_config_hup | ( | main_config_t * | config | ) |
Definition at line 1457 of file main_config.c.
Here is the call graph for this function:
Here is the caller graph for this function:| int main_config_init | ( | main_config_t * | config | ) |
Definition at line 1035 of file main_config.c.
Here is the call graph for this function:
Here is the caller graph for this function:| void main_config_name_set_default | ( | main_config_t * | config, |
| char const * | name, | ||
| bool | overwrite_config | ||
| ) |
Set the server name.
| [in] | config | to alter. |
| [in] | name | to set e.g. "radiusd". |
| [in] | overwrite_config | replace any CONF_PAIRs with this value. |
Definition at line 840 of file main_config.c.
Here is the call graph for this function:
Here is the caller graph for this function:| int main_config_save_override | ( | char const * | str | ) |
Definition at line 1492 of file main_config.c.
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
|
static |
Configured server name takes precedence over default values.
Definition at line 414 of file main_config.c.
Here is the call graph for this function:
|
static |
|
inlinestatic |
Definition at line 446 of file main_config.c.
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
|
static |
|
static |
|
static |
|
static |
| fr_log_t debug_log = { .fd = -1, .dst = L_DST_NULL } |
Definition at line 60 of file main_config.c.
| fr_override_t |
Definition at line 75 of file main_config.c.
|
static |
Definition at line 113 of file main_config.c.
|
static |
Definition at line 132 of file main_config.c.
|
static |
Definition at line 205 of file main_config.c.
|
static |
Definition at line 141 of file main_config.c.
|
static |
Definition at line 159 of file main_config.c.
| main_config_t const* main_config |
Main server configuration.
Global configuration singleton.
Definition at line 56 of file main_config.c.
|
static |
Definition at line 197 of file main_config.c.
|
static |
Definition at line 217 of file main_config.c.
|
static |
Definition at line 212 of file main_config.c.
|
static |
Definition at line 168 of file main_config.c.
|
static |
Definition at line 281 of file main_config.c.
|
static |
Definition at line 225 of file main_config.c.
|
static |
Definition at line 301 of file main_config.c.
|
static |
Definition at line 178 of file main_config.c.
|
static |
Definition at line 579 of file main_config.c.
1.9.8