selinux: sparse fix: fix several warnings in the security server code
Fix several sparse warnings in the SELinux security server code. Signed-off-by: James Morris <jmorris@namei.org>
This commit is contained in:
@@ -555,7 +555,7 @@ static int cond_write_av_list(struct policydb *p,
|
||||
return 0;
|
||||
}
|
||||
|
||||
int cond_write_node(struct policydb *p, struct cond_node *node,
|
||||
static int cond_write_node(struct policydb *p, struct cond_node *node,
|
||||
struct policy_file *fp)
|
||||
{
|
||||
struct cond_expr *cur_expr;
|
||||
|
@@ -13,6 +13,7 @@
|
||||
#include "avtab.h"
|
||||
#include "symtab.h"
|
||||
#include "policydb.h"
|
||||
#include "../include/conditional.h"
|
||||
|
||||
#define COND_EXPR_MAXDEPTH 10
|
||||
|
||||
|
@@ -1743,8 +1743,6 @@ static int policydb_bounds_sanity_check(struct policydb *p)
|
||||
return 0;
|
||||
}
|
||||
|
||||
extern int ss_initialized;
|
||||
|
||||
u16 string_to_security_class(struct policydb *p, const char *name)
|
||||
{
|
||||
struct class_datum *cladatum;
|
||||
|
Reference in New Issue
Block a user