Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 126831
b: refs/heads/master
c: 76f7ba3
h: refs/heads/master
i:
  126829: 15b7d08
  126827: bc45155
  126823: 34db4d9
  126815: 2e80a37
v: v3
  • Loading branch information
Eric Paris authored and James Morris committed Jan 5, 2009
1 parent a5d8e11 commit 32ed43b
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 11 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: 14eaddc967b16017d4a1a24d2be6c28ecbe06ed8
refs/heads/master: 76f7ba35d4b5219fcc4cb072134c020ec77d030d
16 changes: 9 additions & 7 deletions trunk/security/selinux/avc.c
Original file line number Diff line number Diff line change
Expand Up @@ -53,18 +53,20 @@ static const char *class_to_string[] = {
#undef S_

static const struct av_inherit av_inherit[] = {
#define S_(c, i, b) { c, common_##i##_perm_to_string, b },
#define S_(c, i, b) { .tclass = c,\
.common_pts = common_##i##_perm_to_string,\
.common_base = b },
#include "av_inherit.h"
#undef S_
};

const struct selinux_class_perm selinux_class_perm = {
av_perm_to_string,
ARRAY_SIZE(av_perm_to_string),
class_to_string,
ARRAY_SIZE(class_to_string),
av_inherit,
ARRAY_SIZE(av_inherit)
.av_perm_to_string = av_perm_to_string,
.av_pts_len = ARRAY_SIZE(av_perm_to_string),
.class_to_string = class_to_string,
.cts_len = ARRAY_SIZE(class_to_string),
.av_inherit = av_inherit,
.av_inherit_len = ARRAY_SIZE(av_inherit)
};

#define AVC_CACHE_SLOTS 512
Expand Down
4 changes: 2 additions & 2 deletions trunk/security/selinux/include/avc_ss.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,16 @@ struct av_perm_to_string {
};

struct av_inherit {
u16 tclass;
const char **common_pts;
u32 common_base;
u16 tclass;
};

struct selinux_class_perm {
const struct av_perm_to_string *av_perm_to_string;
u32 av_pts_len;
const char **class_to_string;
u32 cts_len;
const char **class_to_string;
const struct av_inherit *av_inherit;
u32 av_inherit_len;
};
Expand Down
2 changes: 1 addition & 1 deletion trunk/security/selinux/ss/context.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ struct context {
u32 user;
u32 role;
u32 type;
u32 len; /* length of string in bytes */
struct mls_range range;
char *str; /* string representation if context cannot be mapped. */
u32 len; /* length of string in bytes */
};

static inline void mls_context_init(struct context *c)
Expand Down

0 comments on commit 32ed43b

Please sign in to comment.