Add documentation about running postmasters in FreeBSD jails (use
authorBruce Momjian <bruce@momjian.us>
Tue, 11 Apr 2006 19:28:03 +0000 (19:28 +0000)
committerBruce Momjian <bruce@momjian.us>
Tue, 11 Apr 2006 19:28:03 +0000 (19:28 +0000)
separate users).

doc/src/sgml/runtime.sgml

index 1af5032f293a9aff41b2c4dfecaf1050fe6ed91a..2130bb4639f440c52e137d3a8f056e4c7ca63935 100644 (file)
@@ -766,6 +766,18 @@ options "SEMMNS=240"
         setting <literal>kern.ipc.shm_use_phys</literal>.
        </para>
 
+       <para>
+        If running in FreeBSD jails by enabling <application>sysconf</>'s
+        <literal>security.jail.sysvipc_allowed</>, <application>postmaster</>s
+        running in different jails should be run by different operating system
+        users.  This improves security because it prevents one jail from
+        interfering with shared memory or semaphores in another, and it
+        allows the PostgreSQL IPC cleanup code to function properly.  
+        (In FreeBSD 6.0 and later the IPC cleanup code doesn't properly detect
+        processes in other jails, preventing the running of postmasters on the
+        same port in different jails.)
+       </para>
+
        <para>
         <systemitem class="osname">FreeBSD</> versions before 4.0 work like 
         <systemitem class="osname">NetBSD</> and <systemitem class="osname">