diff options
author | Linus Torvalds <torvalds@g5.osdl.org> | 2006-04-17 20:44:17 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-04-17 20:44:17 -0400 |
commit | de542925fbf179fb4b39bab2c3235b4525f96794 (patch) | |
tree | 11b0f8baf2469c52405ab9be9f82c414c3de64b4 /ipc | |
parent | 5fdfd42e3a69e8a686fcfb6381616464945471e8 (diff) | |
parent | b78b6af66a5fbaf17d7e6bfc32384df5e34408c8 (diff) |
Merge master.kernel.org:/pub/scm/linux/kernel/git/gregkh/stable-2.6
* master.kernel.org:/pub/scm/linux/kernel/git/gregkh/stable-2.6:
[PATCH] shmat: stop mprotect from giving write permission to a readonly attachment (CVE-2006-1524)
[PATCH] cciss: bug fix for crash when running hpacucli
[PATCH] ext3: Fix missed mutex unlock
[PATCH] Fix block device symlink name
[PATCH] isd200: limit to BLK_DEV_IDE
Diffstat (limited to 'ipc')
-rw-r--r-- | ipc/shm.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -162,6 +162,8 @@ static int shm_mmap(struct file * file, struct vm_area_struct * vma) | |||
162 | ret = shmem_mmap(file, vma); | 162 | ret = shmem_mmap(file, vma); |
163 | if (ret == 0) { | 163 | if (ret == 0) { |
164 | vma->vm_ops = &shm_vm_ops; | 164 | vma->vm_ops = &shm_vm_ops; |
165 | if (!(vma->vm_flags & VM_WRITE)) | ||
166 | vma->vm_flags &= ~VM_MAYWRITE; | ||
165 | shm_inc(file->f_dentry->d_inode->i_ino); | 167 | shm_inc(file->f_dentry->d_inode->i_ino); |
166 | } | 168 | } |
167 | 169 | ||