]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - security/smack/smack_access.c
smack: Add a new '-CIPSO' option to the network address label configuration
[linux-2.6-omap-h63xx.git] / security / smack / smack_access.c
index 58564195bb09c4f895efc04c811f02a28218f593..ac0a2707f6d41583e9e325819ab2265483320853 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;