Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1ZLzKl-0003Kn-Vu for pgsql-committers@arkaria.postgresql.org; Sun, 02 Aug 2015 19:54:12 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1ZLzKl-0002uB-HO for pgsql-committers@arkaria.postgresql.org; Sun, 02 Aug 2015 19:54:11 +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.84) (envelope-from ) id 1ZLzKZ-0002h4-Im for pgsql-committers@postgresql.org; Sun, 02 Aug 2015 19:53:59 +0000 Received: from relay2-d.mail.gandi.net ([217.70.183.194]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1ZLzKW-0005Ku-Iv for pgsql-committers@postgresql.org; Sun, 02 Aug 2015 19:53:58 +0000 Received: from mfilter24-d.gandi.net (mfilter24-d.gandi.net [217.70.178.152]) by relay2-d.mail.gandi.net (Postfix) with ESMTP id 5519BC5A3A; Sun, 2 Aug 2015 21:53:53 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at mfilter24-d.gandi.net Received: from relay2-d.mail.gandi.net ([IPv6:::ffff:217.70.183.194]) by mfilter24-d.gandi.net (mfilter24-d.gandi.net [::ffff:10.0.15.180]) (amavisd-new, port 10024) with ESMTP id 2WTcJXySjgCv; Sun, 2 Aug 2015 21:53:51 +0200 (CEST) X-Originating-IP: 98.122.164.227 Received: from [192.168.10.146] (unknown [98.122.164.227]) (Authenticated sender: adsend@dunslane.net) by relay2-d.mail.gandi.net (Postfix) with ESMTPSA id 67C3EC5A37; Sun, 2 Aug 2015 21:53:50 +0200 (CEST) Message-ID: <55BE754D.6060903@dunslane.net> Date: Sun, 02 Aug 2015 15:53:49 -0400 From: Andrew Dunstan User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.2.0 MIME-Version: 1.0 To: Terry Scheingeld , pgsql-committers@postgresql.org Subject: Re: Taint mode in PL/Perl References: In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-committers Precedence: bulk Sender: pgsql-committers-owner@postgresql.org On 08/02/2015 12:41 PM, Terry Scheingeld wrote: > I've googled and read documentation but I can't figure this out. How > do I configure Postgres so that PL/Perl runs in taint mode? I > understand that plperl runs in "safe mode" but that's not quite the > same thing as taint mode. > > I do know that it's not running in taint mode because this script returns 0: > > -- are we in taint mode? > create function in_taint() returns varchar as $$ > return ${^TAINT}; > $$ language plperl; > > select in_taint(); > > in_taint > ---------- > 0 > (1 row) > > I am using this version of Pg: > > PostgreSQL 9.3.9 on x86_64-unknown-linux-gnu, compiled by gcc (Ubuntu > 4.8.4-2ubuntu1~14.04) 4.8.4, 64-bit > > I am running it on Linux as follows: > > Operating system: Ubuntu Linux 14.04.2 > Kernel and CPU: Linux 3.13.0-57-generic on x86_64 > > I configured PL/Perl in postgresql.conf with this line: > > plperl.use_strict 1 > > Please let me know any other info I can give to help with this issue. > Thanks so much! > > This is completely the wrong list to ask this question. Please ask on the correct mailing list, pgsql-general. cheers andrew -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers