Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fcZ8d-00074i-4E for pgsql-bugs@arkaria.postgresql.org; Mon, 09 Jul 2018 16:35:47 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fcZ8b-00006J-HS for pgsql-bugs@arkaria.postgresql.org; Mon, 09 Jul 2018 16:35:45 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fcYsr-0005Ku-DH for pgsql-bugs@lists.postgresql.org; Mon, 09 Jul 2018 16:19:29 +0000 Received: from mail-ed1-x544.google.com ([2a00:1450:4864:20::544]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1fcYsk-0001bN-4N for pgsql-bugs@lists.postgresql.org; Mon, 09 Jul 2018 16:19:28 +0000 Received: by mail-ed1-x544.google.com with SMTP id a5-v6so14373818edt.5 for ; Mon, 09 Jul 2018 09:19:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:date:to:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=sOfDJsjB5zIPXkSbH+G3+VnVsGHgURLEC+b4mffinXs=; b=Z93Jb2ogPXPixMq1x3xMAe7b4lX6dJs1vFaAFNc7gJjdOaQI/XM9H4P/4DlY8qeMKv 2ZKv5kPdOFiVtBwu0DqJCfMGjWv1wKOQto/aKBhmOXs/vIZtyMYAVmwqoEy3SymxHDAW FQkRL4eSeSG6wunLriOgSwdKYEQ+NjkL/4P+iZ5AvIouiy+hQ3CPd4llgIzkZPvj9xhz aYM6fx5hahT8DKasBcVgNslA2FqPOWAmt1184vHt53wFJxZt3X9NlO+0FpXzuf0+snfV gmFPfspywiqTjUgKB/+9Wo9deiuXDB2jSrIvKLhQlzEdy6bWTfDH+LRgGdb/+oG0aoQT MM7g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:date:to:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=sOfDJsjB5zIPXkSbH+G3+VnVsGHgURLEC+b4mffinXs=; b=XEzl7lQXeOY6k9Gd0KT41rDqQgIZepK36FJ6PRD7qA1k8mQJlVQMZxZARFf0IxeEwo Doz62/J4Sp9waIWkmXoxy8hJpFCs4i+3RXwO9QS/VpJvCFnA0TKfXbYiG/JOxXvDWh1B OJK/XEceRANAJaPxE/4s0wsVhoWLmjHqUJo6eJ63GSB9LG4UbN9nnUfI/4w6sgaivVzs gwPOqG48xdX48pydq4udONTBpsNe4Yl2zRWpo5iD78muhXmTELmmYBk9krz5h0a2Mn9z EJSqFZrCKQ84mBC9PNM5SqN6XSUzPVh+Rji7Qfx5c63rkn4+KSf7JVa+SWnbo7OtVkdL 2kSg== X-Gm-Message-State: APt69E23DukW4eTMiwGXkwK0F8YjUQrBXlnjdUEtUu6Jgoh6YfVJLSnT V/yNiM0ED9P2dm1zThauh2g= X-Google-Smtp-Source: AAOMgpenrd1m12ElUbkyK7V9ImBzPlVEY/uwPE+C2IhnBYnKcOfr5ZftIi/KRdBYly/Hi1fWVsqj3A== X-Received: by 2002:a50:f145:: with SMTP id z5-v6mr24025585edl.0.1531153160428; Mon, 09 Jul 2018 09:19:20 -0700 (PDT) Received: from nerd-thinkpad.local ([85.27.246.15]) by smtp.gmail.com with ESMTPSA id o15-v6sm7584173edt.4.2018.07.09.09.19.19 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 09 Jul 2018 09:19:19 -0700 (PDT) From: Daniel Ebdrup X-Google-Original-From: Daniel Ebdrup Date: Mon, 9 Jul 2018 18:19:17 +0200 To: Thomas Munro , pgsql-bugs@lists.postgresql.org Subject: Re: BUG #15268: Documentation surrounding sysvipc configuration and isolation is out-of-date as of FreeBSD 11 Message-ID: <20180709161917.GA859@nerd-thinkpad.local> References: <153104341110.1408.11582740185774115453@wrigleys.postgresql.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.0 (2018-05-17) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On Mon, Jul 09, 2018 at 10:01:58AM +1200, Thomas Munro wrote: > On Sun, Jul 8, 2018 at 9:50 PM, PG Bug reporting form > wrote: > > The following bug has been logged on the website: > > > > Bug reference: 15268 > > Logged by: D. Ebdrup > > Email address: debdrup@gmail.com > > PostgreSQL version: 10.0 > > Operating system: FreeBSD > > Description: > > > > Owing to some rather big changes in FreeBSD, the steps recommended in the > > documentation for all supported (and unsupported) versions of pgsql on > > FreeBSD 11 and future versions regarding sysvipc are no longer accurate. > > Notably, the security.jail.sysvipc_allowed sysctl has been marked deprecated > > (ie. to be removed in a future version) and the sysvmsg, sysvsem, and > > sysvshm properties for jails have been added which can function like > > security.jail.sysvipc_allowed/allow.sysvipc used to work, in addition to > > which a value named "new" has been added which offers proper per-jail > > isolation of SysV messages, semaphores and shadow memory. > > This can be confirmed by going to https://man.freebsd.org/jail(8) and > > searching for the second result of sysvmsg as a text-search. > > Right, thanks for the report. Any chance you could propose some new > wording for that paragraph, or a patch for doc/src/sgml/runtime.sgml? > > -- > Thomas Munro > http://www.enterprisedb.com I'd suggest adding a note with something along the following lines above the current paragraph covering security.jail.sysvipc_allowed: Since FreeBSD 11 added per-jail SysV IPC isolation, it is recommended to use the jail properties sysvmsg, sysvsem, and sysvshm set to a value of "new", as this isolates SysV IPC from both the host and other jails, meaning many instances of PostgreSQL can be run on the same FreeBSD host, each in their own jail. I'd also suggest changing the line "If running in FreeBSD jails by enabling sysctl's security.jail.sysvipc_allowed" to be "If running in FreeBSD jails by enabling sysctl's security.jail.sysvipc_allowed on FreeBSD 10" (which is likely going to be EOL'd within the next year anyway, so I'm not sure how much longer the note should be kept around but that's up to you.