#include "../../sr_module.h"#include "../../db/db.h"#include "../../pvar.h"#include "rule.h"


Go to the source code of this file.
Data Structures | |
| struct | int_or_pvar |
| struct | rule_file |
Defines | |
| #define | DEFAULT_ALLOW_FILE "permissions.allow" |
| #define | DEFAULT_DENY_FILE "permissions.deny" |
| #define | DISABLE_CACHE 0 |
| #define | ENABLE_CACHE 1 |
| #define | MAX_RULE_FILES 64 |
| #define | PERMISSIONS_H 1 |
Typedefs | |
| typedef struct int_or_pvar | int_or_pvar_t |
| typedef struct rule_file | rule_file_t |
Functions | |
| int | allow_test (char *file, char *uri, char *contact) |
Variables | |
| str | address_table |
| char * | allow_suffix |
| int | db_mode |
| str | db_url |
| str | from_col |
| str | grp_col |
| str | ip_addr_col |
| str | mask_col |
| str | port_col |
| str | proto_col |
| str | source_col |
| str | tag_col |
| str | trusted_table |
| #define DEFAULT_ALLOW_FILE "permissions.allow" |
Definition at line 38 of file permissions.h.
| #define DEFAULT_DENY_FILE "permissions.deny" |
Definition at line 39 of file permissions.h.
| #define DISABLE_CACHE 0 |
Definition at line 70 of file permissions.h.
Referenced by allow_trusted(), init_child_trusted(), and mod_init().
| #define ENABLE_CACHE 1 |
| #define MAX_RULE_FILES 64 |
Definition at line 50 of file permissions.h.
| #define PERMISSIONS_H 1 |
Definition at line 31 of file permissions.h.
| typedef struct int_or_pvar int_or_pvar_t |
| typedef struct rule_file rule_file_t |
| int allow_test | ( | char * | file, | |
| char * | uri, | |||
| char * | contact | |||
| ) |
Definition at line 904 of file permissions.c.
References find_index(), get_pathname(), LM_DBG, LM_ERR, pkg_free, and search_rule().
Referenced by mi_allow_uri().
Definition at line 73 of file permissions.c.
Referenced by init_addresses(), and reload_address_table().
| char* allow_suffix |
Definition at line 56 of file permissions.c.
Referenced by double_fixup(), mi_allow_uri(), and single_fixup().
| int db_mode |
Database URL
Definition at line 61 of file permissions.c.
Definition at line 68 of file permissions.c.
Referenced by allow_trusted(), and reload_trusted_table().
Definition at line 75 of file permissions.c.
Definition at line 77 of file permissions.c.
Definition at line 67 of file permissions.c.
Referenced by allow_trusted(), and reload_trusted_table().
Definition at line 66 of file permissions.c.
Referenced by allow_trusted(), and reload_trusted_table().
Definition at line 69 of file permissions.c.
Definition at line 65 of file permissions.c.
Referenced by allow_trusted(), init_child_trusted(), init_trusted(), and reload_trusted_table().
1.5.6