]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - security/smack/smackfs.c
smackfs load append mode fix
[linux-2.6-omap-h63xx.git] / security / smack / smackfs.c
index bf107a389ac14c66b8c25df297bef6d56cf08c87..8e42800878f468912c56cece9336e7c8c6bfa727 100644 (file)
@@ -334,7 +334,7 @@ static ssize_t smk_write_load(struct file *file, const char __user *buf,
                break;
        case 'a':
        case 'A':
-               rule.smk_access |= MAY_READ;
+               rule.smk_access |= MAY_APPEND;
                break;
        default:
                goto out;
@@ -569,7 +569,7 @@ static ssize_t smk_write_cipso(struct file *file, const char __user *buf,
        if (skp == NULL)
                goto out;
 
-       rule += SMK_LABELLEN;;
+       rule += SMK_LABELLEN;
        ret = sscanf(rule, "%d", &maplevel);
        if (ret != 1 || maplevel > SMACK_CIPSO_MAXLEVEL)
                goto out;