smack: Add a new '-CIPSO' option to the network address label configuration
[safe/jmp/linux-2.6] / security / smack / smack_access.c
index 5856419..ac0a270 100644 (file)
@@ -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;