]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blobdiff - security/security.c
UBUNTU: SAUCE: LSM stacking: check for invalid zero sized writes
[mirror_ubuntu-artful-kernel.git] / security / security.c
index 31efa8cc77fdd968de6759778374657c2698075c..cdc1627e43ef0d7a52430c2644559383ac89ca10 100644 (file)
@@ -2007,6 +2007,9 @@ int security_setprocattr(const char *lsm, const char *name, void *value,
        char *temp;
        char *cp;
 
+       if (!size)
+               return -EINVAL;
+
        /*
         * If lsm is NULL look at all the modules to find one
         * that processes name. If lsm is not NULL only look at