diff options
Diffstat (limited to 'security/smack/smack_access.c')
-rw-r--r-- | security/smack/smack_access.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/security/smack/smack_access.c b/security/smack/smack_access.c index 58564195bb09..ac0a2707f6d4 100644 --- a/security/smack/smack_access.c +++ b/security/smack/smack_access.c | |||
@@ -261,6 +261,9 @@ char *smk_import(const char *string, int len) | |||
261 | { | 261 | { |
262 | struct smack_known *skp; | 262 | struct smack_known *skp; |
263 | 263 | ||
264 | /* labels cannot begin with a '-' */ | ||
265 | if (string[0] == '-') | ||
266 | return NULL; | ||
264 | skp = smk_import_entry(string, len); | 267 | skp = smk_import_entry(string, len); |
265 | if (skp == NULL) | 268 | if (skp == NULL) |
266 | return NULL; | 269 | return NULL; |