Revert "SMACK: netework label match fix"
[kernel/linux-3.0.git] / security / smack / smackfs.c
index 84e0bfc..ec1e236 100644 (file)
@@ -900,7 +900,7 @@ static ssize_t smk_set_cipso(struct file *file, const char __user *buf,
        for (i = 0; i < catlen; i++) {
                rule += SMK_DIGITLEN;
                ret = sscanf(rule, "%u", &cat);
-               if (ret != 1 || cat > SMACK_CIPSO_MAXCATNUM)
+               if (ret != 1 || cat > SMACK_CIPSO_MAXCATVAL)
                        goto out;
 
                smack_catset_bit(cat, mapcatset);