diff options
Diffstat (limited to 'security/selinux/ss/services.c')
-rw-r--r-- | security/selinux/ss/services.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/security/selinux/ss/services.c b/security/selinux/ss/services.c index e11b4b038f4a..c3e4b52699f4 100644 --- a/security/selinux/ss/services.c +++ b/security/selinux/ss/services.c | |||
@@ -2814,7 +2814,7 @@ int selinux_audit_rule_init(u32 field, u32 op, char *rulestr, void **vrule) | |||
2814 | case AUDIT_SUBJ_CLR: | 2814 | case AUDIT_SUBJ_CLR: |
2815 | case AUDIT_OBJ_LEV_LOW: | 2815 | case AUDIT_OBJ_LEV_LOW: |
2816 | case AUDIT_OBJ_LEV_HIGH: | 2816 | case AUDIT_OBJ_LEV_HIGH: |
2817 | /* we do not allow a range, indicated by the presense of '-' */ | 2817 | /* we do not allow a range, indicated by the presence of '-' */ |
2818 | if (strchr(rulestr, '-')) | 2818 | if (strchr(rulestr, '-')) |
2819 | return -EINVAL; | 2819 | return -EINVAL; |
2820 | break; | 2820 | break; |
@@ -3083,7 +3083,7 @@ static void security_netlbl_cache_add(struct netlbl_lsm_secattr *secattr, | |||
3083 | * Description: | 3083 | * Description: |
3084 | * Convert the given NetLabel security attributes in @secattr into a | 3084 | * Convert the given NetLabel security attributes in @secattr into a |
3085 | * SELinux SID. If the @secattr field does not contain a full SELinux | 3085 | * SELinux SID. If the @secattr field does not contain a full SELinux |
3086 | * SID/context then use SECINITSID_NETMSG as the foundation. If possibile the | 3086 | * SID/context then use SECINITSID_NETMSG as the foundation. If possible the |
3087 | * 'cache' field of @secattr is set and the CACHE flag is set; this is to | 3087 | * 'cache' field of @secattr is set and the CACHE flag is set; this is to |
3088 | * allow the @secattr to be used by NetLabel to cache the secattr to SID | 3088 | * allow the @secattr to be used by NetLabel to cache the secattr to SID |
3089 | * conversion for future lookups. Returns zero on success, negative values on | 3089 | * conversion for future lookups. Returns zero on success, negative values on |