From patchwork Thu Sep 10 16:27:25 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: bmarzins@sourceware.org X-Patchwork-Id: 46717 X-Patchwork-Delegate: bmarzins@redhat.com Received: from hormel.redhat.com (hormel1.redhat.com [209.132.177.33]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id n8ANuW1t027885 for ; Thu, 10 Sep 2009 23:56:32 GMT Received: from listman.util.phx.redhat.com (listman.util.phx.redhat.com [10.8.4.110]) by hormel.redhat.com (Postfix) with ESMTP id C64D2618A5A; Thu, 10 Sep 2009 12:27:42 -0400 (EDT) Received: from int-mx05.intmail.prod.int.phx2.redhat.com (nat-pool.util.phx.redhat.com [10.8.5.200]) by listman.util.phx.redhat.com (8.13.1/8.13.1) with ESMTP id n8AGRf7l013282 for ; Thu, 10 Sep 2009 12:27:41 -0400 Received: from mx1.redhat.com (ext-mx08.extmail.prod.ext.phx2.redhat.com [10.5.110.12]) by int-mx05.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id n8AGRf0h011934 for ; Thu, 10 Sep 2009 12:27:41 -0400 Received: from sourceware.org (sourceware.org [209.132.176.174]) by mx1.redhat.com (8.13.8/8.13.8) with SMTP id n8AGRQJv001142 for ; Thu, 10 Sep 2009 12:27:27 -0400 Received: (qmail 8309 invoked by uid 9475); 10 Sep 2009 16:27:25 -0000 Date: 10 Sep 2009 16:27:25 -0000 Message-ID: <20090910162725.8306.qmail@sourceware.org> From: bmarzins@sourceware.org To: dm-cvs@sourceware.org, dm-devel@redhat.com X-RedHat-Spam-Score: -4 (RCVD_IN_DNSWL_MED) X-Scanned-By: MIMEDefang 2.67 on 10.5.11.18 X-Scanned-By: MIMEDefang 2.67 on 10.5.110.12 X-loop: dm-devel@redhat.com Cc: Subject: [dm-devel] multipath-tools/multipathd main.c X-BeenThere: dm-devel@redhat.com X-Mailman-Version: 2.1.5 Precedence: junk Reply-To: device-mapper development List-Id: device-mapper development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: dm-devel-bounces@redhat.com Errors-To: dm-devel-bounces@redhat.com CVSROOT: /cvs/dm Module name: multipath-tools Branch: RHEL5_FC6 Changes by: bmarzins@sourceware.org 2009-09-10 16:27:24 Modified files: multipathd : main.c Log message: The only /var subdirectories that multipathd needs in its private namespace are /var/lib and /var/run. Drop the others. Not Applicable upstream. Patches: http://sourceware.org/cgi-bin/cvsweb.cgi/multipath-tools/multipathd/main.c.diff?cvsroot=dm&only_with_tag=RHEL5_FC6&r1=1.69.2.23&r2=1.69.2.24 --- dm-devel mailing list dm-devel@redhat.com https://www.redhat.com/mailman/listinfo/dm-devel --- multipath-tools/multipathd/main.c 2009/08/19 21:52:40 1.69.2.23 +++ multipath-tools/multipathd/main.c 2009/09/10 16:27:24 1.69.2.24 @@ -1288,9 +1288,9 @@ strcmp(mnt, "/usr") == 0 || strncmp(mnt, "/usr/lib", 8) == 0 || strcmp(mnt, "/etc") == 0 || strncmp(mnt, "/proc", 5) == 0 || strncmp(mnt, "/dev", 4) == 0 || strncmp(mnt, "/sys", 4) == 0 || - strncmp(mnt, "/var", 4) == 0 || strncmp(mnt, "/lib", 4) == 0 || - strncmp(mnt, "/lib64", 6) == 0 || - strncmp(mnt, "/usr/lib64", 10) == 0) + strcmp(mnt, "/var") == 0 || strncmp(mnt, "/var/lib", 8) == 0 || + strncmp(mnt, "/var/run", 8) || strncmp(mnt, "/lib", 4) == 0 || + strncmp(mnt, "/lib64", 6) == 0 || strncmp(mnt, "/usr/lib64", 10) == 0) continue; if (umount2(mnt, MNT_DETACH) < 0 && errno != ENOENT) { condlog(0, "failed to umount '%s' (%s). skipping", mnt, strerror(errno));