git://ftp.safe.ca
/
safe
/
jmp
/
linux-2.6
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
smack: Add a new '-CIPSO' option to the network address label configuration
[safe/jmp/linux-2.6]
/
security
/
smack
/
smack_access.c
diff --git
a/security/smack/smack_access.c
b/security/smack/smack_access.c
index
5856419
..
ac0a270
100644
(file)
--- a/
security/smack/smack_access.c
+++ b/
security/smack/smack_access.c
@@
-261,6
+261,9
@@
char *smk_import(const char *string, int len)
{
struct smack_known *skp;
+ /* labels cannot begin with a '-' */
+ if (string[0] == '-')
+ return NULL;
skp = smk_import_entry(string, len);
if (skp == NULL)
return NULL;