Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 285028
b: refs/heads/master
c: 2653812
h: refs/heads/master
v: v3
  • Loading branch information
James Morris authored and Eric Paris committed Jan 5, 2012
1 parent c761a24 commit 21a730a
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 8 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 02f5daa563456c1ff3c3422aa3ec00e67460f762
refs/heads/master: 2653812e14f4e16688ec8247d7fd290bdbbc4747
5 changes: 1 addition & 4 deletions trunk/security/selinux/hooks.c
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@
#include "xfrm.h"
#include "netlabel.h"
#include "audit.h"
#include "avc_ss.h"

#define NUM_SEL_MNT_OPTS 5

Expand Down Expand Up @@ -278,10 +279,6 @@ static void superblock_free_security(struct super_block *sb)
kfree(sbsec);
}

/* The security server must be initialized before
any labeling or access decisions can be provided. */
extern int ss_initialized;

/* The file system's label must be initialized prior to use. */

static const char *labeling_behaviors[6] = {
Expand Down
6 changes: 6 additions & 0 deletions trunk/security/selinux/include/avc_ss.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,11 @@ struct security_class_mapping {

extern struct security_class_mapping secclass_map[];

/*
* The security server must be initialized before
* any labeling or access decisions can be provided.
*/
extern int ss_initialized;

#endif /* _SELINUX_AVC_SS_H_ */

2 changes: 1 addition & 1 deletion trunk/security/selinux/ss/conditional.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
1 change: 1 addition & 0 deletions trunk/security/selinux/ss/conditional.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
#include "avtab.h"
#include "symtab.h"
#include "policydb.h"
#include "../include/conditional.h"

#define COND_EXPR_MAXDEPTH 10

Expand Down
2 changes: 0 additions & 2 deletions trunk/security/selinux/ss/policydb.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 21a730a

Please sign in to comment.