Message ID | 1406777210-28425-6-git-send-email-dhobsong@igel.co.jp (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
diff --git a/security/smack/smackfs.c b/security/smack/smackfs.c index 3c79cba..ab16703 100644 --- a/security/smack/smackfs.c +++ b/security/smack/smackfs.c @@ -881,7 +881,7 @@ static ssize_t smk_set_cipso(struct file *file, const char __user *buf, if (format == SMK_FIXED24_FMT) rule += SMK_LABELLEN; else - rule += strlen(skp->smk_known); + rule += strlen(skp->smk_known) + 1; ret = sscanf(rule, "%d", &maplevel); if (ret != 1 || maplevel > SMACK_CIPSO_MAXLEVEL)