diff options
Diffstat (limited to 'security/selinux/avc.c')
| -rw-r--r-- | security/selinux/avc.c | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/security/selinux/avc.c b/security/selinux/avc.c index d43bd6baeeaa..eb41f43e2772 100644 --- a/security/selinux/avc.c +++ b/security/selinux/avc.c | |||
| @@ -53,18 +53,20 @@ static const char *class_to_string[] = { | |||
| 53 | #undef S_ | 53 | #undef S_ |
| 54 | 54 | ||
| 55 | static const struct av_inherit av_inherit[] = { | 55 | static const struct av_inherit av_inherit[] = { |
| 56 | #define S_(c, i, b) { c, common_##i##_perm_to_string, b }, | 56 | #define S_(c, i, b) { .tclass = c,\ |
| 57 | .common_pts = common_##i##_perm_to_string,\ | ||
| 58 | .common_base = b }, | ||
| 57 | #include "av_inherit.h" | 59 | #include "av_inherit.h" |
| 58 | #undef S_ | 60 | #undef S_ |
| 59 | }; | 61 | }; |
| 60 | 62 | ||
| 61 | const struct selinux_class_perm selinux_class_perm = { | 63 | const struct selinux_class_perm selinux_class_perm = { |
| 62 | av_perm_to_string, | 64 | .av_perm_to_string = av_perm_to_string, |
| 63 | ARRAY_SIZE(av_perm_to_string), | 65 | .av_pts_len = ARRAY_SIZE(av_perm_to_string), |
| 64 | class_to_string, | 66 | .class_to_string = class_to_string, |
| 65 | ARRAY_SIZE(class_to_string), | 67 | .cts_len = ARRAY_SIZE(class_to_string), |
| 66 | av_inherit, | 68 | .av_inherit = av_inherit, |
| 67 | ARRAY_SIZE(av_inherit) | 69 | .av_inherit_len = ARRAY_SIZE(av_inherit) |
| 68 | }; | 70 | }; |
| 69 | 71 | ||
| 70 | #define AVC_CACHE_SLOTS 512 | 72 | #define AVC_CACHE_SLOTS 512 |
