|
@@ -881,7 +881,7 @@ static ssize_t smk_set_cipso(struct file *file, const char __user *buf,
|
|
if (format == SMK_FIXED24_FMT)
|
|
if (format == SMK_FIXED24_FMT)
|
|
rule += SMK_LABELLEN;
|
|
rule += SMK_LABELLEN;
|
|
else
|
|
else
|
|
- rule += strlen(skp->smk_known);
|
|
|
|
|
|
+ rule += strlen(skp->smk_known) + 1;
|
|
|
|
|
|
ret = sscanf(rule, "%d", &maplevel);
|
|
ret = sscanf(rule, "%d", &maplevel);
|
|
if (ret != 1 || maplevel > SMACK_CIPSO_MAXLEVEL)
|
|
if (ret != 1 || maplevel > SMACK_CIPSO_MAXLEVEL)
|