Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:67428 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 9505 invoked from network); 15 May 2013 13:00:08 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 15 May 2013 13:00:08 -0000 Received: from [127.0.0.1] ([127.0.0.1:2646]) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ECSTREAM id 58/70-03867-8D683915 for ; Wed, 15 May 2013 09:00:08 -0400 Authentication-Results: pb1.pair.com header.from=gvormayr@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=gvormayr@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.223.179 as permitted sender) X-PHP-List-Original-Sender: gvormayr@gmail.com X-Host-Fingerprint: 209.85.223.179 mail-ie0-f179.google.com Received: from [209.85.223.179] ([209.85.223.179:36002] helo=mail-ie0-f179.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 32/70-03867-32583915 for ; Wed, 15 May 2013 08:52:52 -0400 Received: by mail-ie0-f179.google.com with SMTP id c13so3601497ieb.10 for ; Wed, 15 May 2013 05:52:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:date:message-id:subject:from:to :content-type; bh=a6/JPuZR5YHFbio3DYVWCkNF6oN0qZ7vjrhJFSeboPs=; b=OrumgYUFCoQ0yo4Ap42x0cNAaJMr8uVqOKSJ+5FGuLpcBtYw3+s/W8XViEPylNLi1m 6h3G8q5YD+B8bueTzjAkZRaPvQdhIlWcXGkd45V39QGM1pyWjZNSg+MrxgEQHWnxHTwE 6GJO/r6T5v2UAVniUwvhyJn4E/LGz/fqpikOBra6MBsGgiXx6f7t3sY5faelYTdfvMST gaMKa5G3zEJft0rk3dlrMFhjcGVPxEdW9v+PJSwWl1hkW09zuaCvCb6kzG+Kg5gnvpgb swpKQOiNvyKrCv3YARATMpLtqnPY8O8X0A8Q8NEXBb7EMqgngNMxRQVxtmzmW9kH5pZx QITA== MIME-Version: 1.0 X-Received: by 10.50.112.6 with SMTP id im6mr5388508igb.17.1368622368845; Wed, 15 May 2013 05:52:48 -0700 (PDT) Received: by 10.64.8.129 with HTTP; Wed, 15 May 2013 05:52:48 -0700 (PDT) Date: Wed, 15 May 2013 14:52:48 +0200 Message-ID: To: internals@lists.php.net Content-Type: multipart/alternative; boundary=047d7b4141162075ee04dcc13a6a Subject: [PROPOSAL] apparmor change_hat functionality in fpm From: gvormayr@gmail.com (Gernot Vormayr) --047d7b4141162075ee04dcc13a6a Content-Type: text/plain; charset=ISO-8859-1 Hi! The basic idea behind this is to get a better seperation of different php pools (so e.g. php scripts from one pool can't access the other and vice versa). I did a small patch (https://github.com/php/php-src/pull/343) that adds a configuration parameter to pools (apparmor_hat). If this is set, workers of the pool try to change the apparmor hat to the specified value. The patch only touches fpm. Only thing that's needed is libapparmor - if it is not there the functionality just gets left out. To keep things simple this version is very coarse - meaning it is not possible to change the hat back, or change to a different hat according to the executed script. Any thoughts on this? --047d7b4141162075ee04dcc13a6a--