ipc-posix-shm backwards compatibility
authorcommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 1 May 2013 06:08:54 +0000 (06:08 +0000)
committercommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 1 May 2013 06:08:54 +0000 (06:08 +0000)
https://bugs.webkit.org/show_bug.cgi?id=115448
<rdar://problem/13743037>

Patch by Simon Cooper <scooper@apple.com> on 2013-04-30
Reviewed by Alexey Proskuryakov.

Add compatibility for older ipc-posix-shm operations, but prefer the
newer names when writing profiles.

* Resources/PlugInSandboxProfiles/com.apple.WebKit.plugin-common.sb:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@149427 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebKit2/ChangeLog
Source/WebKit2/Resources/PlugInSandboxProfiles/com.apple.WebKit.plugin-common.sb

index 5948a7c..9e7893f 100644 (file)
@@ -1,3 +1,16 @@
+2013-04-30  Simon Cooper  <scooper@apple.com>
+
+        ipc-posix-shm backwards compatibility 
+        https://bugs.webkit.org/show_bug.cgi?id=115448
+        <rdar://problem/13743037>
+
+        Reviewed by Alexey Proskuryakov.
+
+        Add compatibility for older ipc-posix-shm operations, but prefer the
+        newer names when writing profiles.
+
+        * Resources/PlugInSandboxProfiles/com.apple.WebKit.plugin-common.sb:
+
 2013-04-30  Philippe Normand  <pnormand@igalia.com>
 
         Unreviewed, GTK build fix after r149416.
index dc42543..f6a422e 100644 (file)
 (define (webkit-imagecapture)
     (allow appleevent-send (appleevent-destination "com.apple.imagecaptureextension2")))
 
+(if (not (defined? 'ipc-posix-shm*))
+    (define ipc-posix-shm* ipc-posix-shm))
+
 (allow ipc-posix-shm*
     (ipc-posix-name-regex #"^AudioIO")
     (ipc-posix-name-regex #"^CFPBS:")
     (ipc-posix-name "_CS_GSHMEMLOCK")
     (ipc-posix-name "_CS_DSHMEMLOCK"))
 
+(if (not (defined? 'ipc-posix-shm-read*))
+    (define ipc-posix-shm-read* ipc-posix-shm))
+
 (allow ipc-posix-shm-read*
     (ipc-posix-name "apple.shm.notification_center"))