nfs-ganesha 1.4
|
#include "config.h"
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include "nfs_exports.h"
#include "config_parsing.h"
#include "log.h"
#include "nfs_core.h"
#include "nfs_stat.h"
#include "../MainNFSD/nfs_init.h"
Go to the source code of this file.
Defines | |
#define | TEST_MOUNT 0 |
#define | TEST_READ 1 |
#define | TEST_WRITE 2 |
#define | MDONLY_READ 3 |
#define | MDONLY_WRITE 4 |
#define | ROOT_UID 0 |
#define | USER_UID 1000 |
Functions | |
void | init_vars (hash_table_t **ht_ip_stats, pool_t **ip_stats_pool) |
int | test_access (char *addr, char *hostname, hash_table_t *ht_ip_stats, pool_t *ip_stats_pool, exportlist_t *pexport, int uid, int operation) |
int | expected (int expected_result, int export_check_result) |
int | predict (char *addr, char *hostname, int root, int read, int write, int md_read, int md_write, int uid, int operation) |
int | old_predict (char *ip, char *hostname, int root, int nonroot, int accesstype, int uid, int operation) |
int | main (int argc, char *argv[]) |
Variables | |
nfs_parameter_t | nfs_param |
char | ganesha_exec_path [MAXPATHLEN] = "/usr/bin/gpfs.ganesha.nfsd" |
#define MDONLY_READ 3 |
Definition at line 21 of file test_access_list_types.c.
#define MDONLY_WRITE 4 |
Definition at line 22 of file test_access_list_types.c.
#define ROOT_UID 0 |
Definition at line 291 of file test_access_list_types.c.
#define TEST_MOUNT 0 |
Definition at line 18 of file test_access_list_types.c.
#define TEST_READ 1 |
Definition at line 19 of file test_access_list_types.c.
#define TEST_WRITE 2 |
Definition at line 20 of file test_access_list_types.c.
#define USER_UID 1000 |
Definition at line 292 of file test_access_list_types.c.
int expected | ( | int | expected_result, |
int | export_check_result | ||
) |
Definition at line 122 of file test_access_list_types.c.
void init_vars | ( | hash_table_t ** | ht_ip_stats, |
pool_t ** | ip_stats_pool | ||
) |
Definition at line 24 of file test_access_list_types.c.
int main | ( | int | argc, |
char * | argv[] | ||
) |
Definition at line 294 of file test_access_list_types.c.
int old_predict | ( | char * | ip, |
char * | hostname, | ||
int | root, | ||
int | nonroot, | ||
int | accesstype, | ||
int | uid, | ||
int | operation | ||
) |
Definition at line 223 of file test_access_list_types.c.
int predict | ( | char * | addr, |
char * | hostname, | ||
int | root, | ||
int | read, | ||
int | write, | ||
int | md_read, | ||
int | md_write, | ||
int | uid, | ||
int | operation | ||
) |
Definition at line 181 of file test_access_list_types.c.
int test_access | ( | char * | addr, |
char * | hostname, | ||
hash_table_t * | ht_ip_stats, | ||
pool_t * | ip_stats_pool, | ||
exportlist_t * | pexport, | ||
int | uid, | ||
int | operation | ||
) |
Definition at line 63 of file test_access_list_types.c.
char ganesha_exec_path[MAXPATHLEN] = "/usr/bin/gpfs.ganesha.nfsd" |
Definition at line 16 of file test_access_list_types.c.
Definition at line 15 of file test_access_list_types.c.