@@ -141,7 +141,7 @@ static int bool_commit_list(semanage_handle_t * handle,
}
/* BOOL RECORD: ACTIVEDB extension: method table */
-record_activedb_table_t SEMANAGE_BOOL_ACTIVEDB_RTABLE = {
+static record_activedb_table_t SEMANAGE_BOOL_ACTIVEDB_RTABLE = {
.read_list = bool_read_list,
.commit_list = bool_commit_list,
};
@@ -101,7 +101,7 @@ static int bool_parse(semanage_handle_t * handle,
}
/* BOOL RECORD: FILE extension: method table */
-record_file_table_t SEMANAGE_BOOL_FILE_RTABLE = {
+static record_file_table_t SEMANAGE_BOOL_FILE_RTABLE = {
.parse = bool_parse,
.print = bool_print,
};
@@ -36,7 +36,7 @@ typedef struct dbase_policydb dbase_t;
#include "semanage_store.h"
/* BOOLEAN RECRORD (SEPOL): POLICYDB extension: method table */
-record_policydb_table_t SEMANAGE_BOOL_POLICYDB_RTABLE = {
+static record_policydb_table_t SEMANAGE_BOOL_POLICYDB_RTABLE = {
.add = NULL,
.modify = NULL,
/* FIXME: these casts depend on structs in libsepol matching structs
@@ -158,7 +158,7 @@ static int fcontext_parse(semanage_handle_t * handle,
}
/* FCONTEXT RECORD: FILE extension: method table */
-record_file_table_t SEMANAGE_FCONTEXT_FILE_RTABLE = {
+static record_file_table_t SEMANAGE_FCONTEXT_FILE_RTABLE = {
.parse = fcontext_parse,
.print = fcontext_print,
};
@@ -130,7 +130,7 @@ typedef struct IgnoreDir {
char *dir;
} ignoredir_t;
-ignoredir_t *ignore_head = NULL;
+static ignoredir_t *ignore_head = NULL;
static void ignore_free(void) {
ignoredir_t *next;
@@ -129,7 +129,7 @@ err:
}
/* IBENDPORT RECORD: FILE extension: method table */
-record_file_table_t SEMANAGE_IBENDPORT_FILE_RTABLE = {
+static record_file_table_t SEMANAGE_IBENDPORT_FILE_RTABLE = {
.parse = ibendport_parse,
.print = ibendport_print,
};
@@ -30,7 +30,7 @@ typedef struct dbase_policydb dbase_t;
#include "semanage_store.h"
/* IBENDPORT RECORD (SEPOL): POLICYDB extension : method table */
-record_policydb_table_t SEMANAGE_IBENDPORT_POLICYDB_RTABLE = {
+static record_policydb_table_t SEMANAGE_IBENDPORT_POLICYDB_RTABLE = {
.add = NULL,
.modify = (record_policydb_table_modify_t)sepol_ibendport_modify,
.set = NULL,
@@ -153,7 +153,7 @@ err:
}
/* IBPKEY RECORD: FILE extension: method table */
-record_file_table_t SEMANAGE_IBPKEY_FILE_RTABLE = {
+static record_file_table_t SEMANAGE_IBPKEY_FILE_RTABLE = {
.parse = ibpkey_parse,
.print = ibpkey_print,
};
@@ -30,7 +30,7 @@ typedef struct dbase_policydb dbase_t;
#include "semanage_store.h"
/* PKEY RECORD (SEPOL): POLICYDB extension : method table */
-record_policydb_table_t SEMANAGE_IBPKEY_POLICYDB_RTABLE = {
+static record_policydb_table_t SEMANAGE_IBPKEY_POLICYDB_RTABLE = {
.add = NULL,
.modify = (record_policydb_table_modify_t)sepol_ibpkey_modify,
.set = NULL,
@@ -145,7 +145,7 @@ static int iface_parse(semanage_handle_t * handle,
}
/* IFACE RECORD: FILE extension: method table */
-record_file_table_t SEMANAGE_IFACE_FILE_RTABLE = {
+static record_file_table_t SEMANAGE_IFACE_FILE_RTABLE = {
.parse = iface_parse,
.print = iface_print,
};
@@ -36,7 +36,7 @@ typedef struct dbase_policydb dbase_t;
#include "semanage_store.h"
/* INTERFACE RECRORD (SEPOL): POLICYDB extension: method table */
-record_policydb_table_t SEMANAGE_IFACE_POLICYDB_RTABLE = {
+static record_policydb_table_t SEMANAGE_IFACE_POLICYDB_RTABLE = {
.add = NULL,
.modify = (record_policydb_table_modify_t) sepol_iface_modify,
.set = NULL,
@@ -154,7 +154,7 @@ static int node_parse(semanage_handle_t * handle,
}
/* NODE RECORD: FILE extension: method table */
-record_file_table_t SEMANAGE_NODE_FILE_RTABLE = {
+static record_file_table_t SEMANAGE_NODE_FILE_RTABLE = {
.parse = node_parse,
.print = node_print,
};
@@ -35,7 +35,7 @@ typedef struct dbase_policydb dbase_t;
#include "semanage_store.h"
/* NODE RECORD (SEPOL): POLICYDB extension : method table */
-record_policydb_table_t SEMANAGE_NODE_POLICYDB_RTABLE = {
+static record_policydb_table_t SEMANAGE_NODE_POLICYDB_RTABLE = {
.add = NULL,
.modify = (record_policydb_table_modify_t) sepol_node_modify,
.set = NULL,
@@ -161,7 +161,7 @@ static int port_parse(semanage_handle_t * handle,
}
/* PORT RECORD: FILE extension: method table */
-record_file_table_t SEMANAGE_PORT_FILE_RTABLE = {
+static record_file_table_t SEMANAGE_PORT_FILE_RTABLE = {
.parse = port_parse,
.print = port_print,
};
@@ -35,7 +35,7 @@ typedef struct dbase_policydb dbase_t;
#include "semanage_store.h"
/* PORT RECORD (SEPOL): POLICYDB extension : method table */
-record_policydb_table_t SEMANAGE_PORT_POLICYDB_RTABLE = {
+static record_policydb_table_t SEMANAGE_PORT_POLICYDB_RTABLE = {
.add = NULL,
.modify = (record_policydb_table_modify_t) sepol_port_modify,
.set = NULL,
@@ -109,7 +109,7 @@ static int seuser_parse(semanage_handle_t * handle,
}
/* SEUSER RECORD: FILE extension: method table */
-record_file_table_t SEMANAGE_SEUSER_FILE_RTABLE = {
+static record_file_table_t SEMANAGE_SEUSER_FILE_RTABLE = {
.parse = seuser_parse,
.print = seuser_print,
};
@@ -195,7 +195,7 @@ static int user_base_parse(semanage_handle_t * handle,
}
/* USER BASE record: FILE extension: method table */
-record_file_table_t SEMANAGE_USER_BASE_FILE_RTABLE = {
+static record_file_table_t SEMANAGE_USER_BASE_FILE_RTABLE = {
.parse = user_base_parse,
.print = user_base_print,
};
@@ -35,7 +35,7 @@ typedef struct dbase_policydb dbase_t;
#include "semanage_store.h"
/* USER BASE record: POLICYDB extension: method table */
-record_policydb_table_t SEMANAGE_USER_BASE_POLICYDB_RTABLE = {
+static record_policydb_table_t SEMANAGE_USER_BASE_POLICYDB_RTABLE = {
.add = NULL,
.modify = (record_policydb_table_modify_t) sepol_user_modify,
.set = NULL,
@@ -100,7 +100,7 @@ static int user_extra_parse(semanage_handle_t * handle,
}
/* USER EXTRA RECORD: FILE extension: method table */
-record_file_table_t SEMANAGE_USER_EXTRA_FILE_RTABLE = {
+static record_file_table_t SEMANAGE_USER_EXTRA_FILE_RTABLE = {
.parse = user_extra_parse,
.print = user_extra_print,
};
@@ -22,7 +22,7 @@ typedef struct dbase_join dbase_t;
#include "debug.h"
/* USER record: JOIN extension: method table */
-record_join_table_t SEMANAGE_USER_JOIN_RTABLE = {
+static record_join_table_t SEMANAGE_USER_JOIN_RTABLE = {
.join = semanage_user_join,
.split = semanage_user_split,
};