Patchwork UBUNTU: [SAUCE] ext3 defaults to ordered mode

login
register
mail settings
Submitter Surbhi Palande
Date Jan. 20, 2010, 6:21 p.m.
Message ID <1264011671-21401-1-git-send-email-surbhi.palande@canonical.com>
Download mbox | patch
Permalink /patch/43332/
State Superseded
Headers show

Comments

Surbhi Palande - Jan. 20, 2010, 6:21 p.m.
This patch fixes bug 510067 on launchpad.
It changes the default compile time option for ext3 from "writeback" to "ordered",
so as to mount the ext3 fs with the "data=ordered" option by default. This change
prevents a potential security threat of older data being exposed accidentally under
"data=writeback" mode.

Do consider merging this for Karmic.

The following changes since commit de24f70e1584c4a9db5518fb3b8ddfa02715655e:
  Torgny Johansson (1):
        cdc_ether: additional Ericsson MBM PID's to the whitelist

are available in the git repository at:

  git://kernel.ubuntu.com/surbhi/ubuntu-karmic.git lp510067

Surbhi Palande (1):
      UBUNTU: [SAUCE] ext3 defaults to ordered mode

 debian.master/config/config.common.ports  |    2 +-
 debian.master/config/config.common.ubuntu |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)


From 8d22adc6cabf4963da66c99e679588b174f97459 Mon Sep 17 00:00:00 2001
From: Surbhi Palande <surbhi.palande@canonical.com>
Date: Wed, 20 Jan 2010 15:28:31 +0200
Subject: [PATCH] UBUNTU: [SAUCE] ext3 defaults to ordered mode

BugLink: http://bugs.launchpad.net/bugs/510067

To prevent a security threat of older data being inadvertently exposed,
the default mount option of ext3 should be ordered instead of writeback. This
patch changes the default compile time option for ext3 to reflect the same in
the default mount time option.

Signed-off-by: Surbhi Palande <surbhi.palande@canonical.com>
---
 debian.master/config/config.common.ports  |    2 +-
 debian.master/config/config.common.ubuntu |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
Manoj Iyer - Jan. 20, 2010, 7:20 p.m.
I think you need to use the config template.

On Wed, 20 Jan 2010, Surbhi Palande wrote:

> This patch fixes bug 510067 on launchpad.
> It changes the default compile time option for ext3 from "writeback" to "ordered",
> so as to mount the ext3 fs with the "data=ordered" option by default. This change
> prevents a potential security threat of older data being exposed accidentally under
> "data=writeback" mode.
>
> Do consider merging this for Karmic.
>
> The following changes since commit de24f70e1584c4a9db5518fb3b8ddfa02715655e:
>  Torgny Johansson (1):
>        cdc_ether: additional Ericsson MBM PID's to the whitelist
>
> are available in the git repository at:
>
>  git://kernel.ubuntu.com/surbhi/ubuntu-karmic.git lp510067
>
> Surbhi Palande (1):
>      UBUNTU: [SAUCE] ext3 defaults to ordered mode
>
> debian.master/config/config.common.ports  |    2 +-
> debian.master/config/config.common.ubuntu |    2 +-
> 2 files changed, 2 insertions(+), 2 deletions(-)
>
>
> From 8d22adc6cabf4963da66c99e679588b174f97459 Mon Sep 17 00:00:00 2001
> From: Surbhi Palande <surbhi.palande@canonical.com>
> Date: Wed, 20 Jan 2010 15:28:31 +0200
> Subject: [PATCH] UBUNTU: [SAUCE] ext3 defaults to ordered mode
>
> BugLink: http://bugs.launchpad.net/bugs/510067
>
> To prevent a security threat of older data being inadvertently exposed,
> the default mount option of ext3 should be ordered instead of writeback. This
> patch changes the default compile time option for ext3 to reflect the same in
> the default mount time option.
>
> Signed-off-by: Surbhi Palande <surbhi.palande@canonical.com>
> ---
> debian.master/config/config.common.ports  |    2 +-
> debian.master/config/config.common.ubuntu |    2 +-
> 2 files changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/debian.master/config/config.common.ports b/debian.master/config/config.common.ports
> index 39ee289..4e22aeb 100644
> --- a/debian.master/config/config.common.ports
> +++ b/debian.master/config/config.common.ports
> @@ -817,7 +817,7 @@ CONFIG_EXT2_FS_POSIX_ACL=y
> CONFIG_EXT2_FS_SECURITY=y
> CONFIG_EXT2_FS_XATTR=y
> # CONFIG_EXT2_FS_XIP is not set
> -# CONFIG_EXT3_DEFAULTS_TO_ORDERED is not set
> +CONFIG_EXT3_DEFAULTS_TO_ORDERED=y
> CONFIG_EXT3_FS=y
> CONFIG_EXT3_FS_POSIX_ACL=y
> CONFIG_EXT3_FS_SECURITY=y
> diff --git a/debian.master/config/config.common.ubuntu b/debian.master/config/config.common.ubuntu
> index 462c1c1..2477234 100644
> --- a/debian.master/config/config.common.ubuntu
> +++ b/debian.master/config/config.common.ubuntu
> @@ -943,7 +943,7 @@ CONFIG_EXT2_FS_POSIX_ACL=y
> CONFIG_EXT2_FS_SECURITY=y
> CONFIG_EXT2_FS_XATTR=y
> # CONFIG_EXT2_FS_XIP is not set
> -# CONFIG_EXT3_DEFAULTS_TO_ORDERED is not set
> +CONFIG_EXT3_DEFAULTS_TO_ORDERED=y
> CONFIG_EXT3_FS=y
> CONFIG_EXT3_FS_POSIX_ACL=y
> CONFIG_EXT3_FS_SECURITY=y
> -- 
> 1.6.3.3
>
>
> -- 
> kernel-team mailing list
> kernel-team@lists.ubuntu.com
> https://lists.ubuntu.com/mailman/listinfo/kernel-team
>

Patch

diff --git a/debian.master/config/config.common.ports b/debian.master/config/config.common.ports
index 39ee289..4e22aeb 100644
--- a/debian.master/config/config.common.ports
+++ b/debian.master/config/config.common.ports
@@ -817,7 +817,7 @@  CONFIG_EXT2_FS_POSIX_ACL=y
 CONFIG_EXT2_FS_SECURITY=y
 CONFIG_EXT2_FS_XATTR=y
 # CONFIG_EXT2_FS_XIP is not set
-# CONFIG_EXT3_DEFAULTS_TO_ORDERED is not set
+CONFIG_EXT3_DEFAULTS_TO_ORDERED=y
 CONFIG_EXT3_FS=y
 CONFIG_EXT3_FS_POSIX_ACL=y
 CONFIG_EXT3_FS_SECURITY=y
diff --git a/debian.master/config/config.common.ubuntu b/debian.master/config/config.common.ubuntu
index 462c1c1..2477234 100644
--- a/debian.master/config/config.common.ubuntu
+++ b/debian.master/config/config.common.ubuntu
@@ -943,7 +943,7 @@  CONFIG_EXT2_FS_POSIX_ACL=y
 CONFIG_EXT2_FS_SECURITY=y
 CONFIG_EXT2_FS_XATTR=y
 # CONFIG_EXT2_FS_XIP is not set
-# CONFIG_EXT3_DEFAULTS_TO_ORDERED is not set
+CONFIG_EXT3_DEFAULTS_TO_ORDERED=y
 CONFIG_EXT3_FS=y
 CONFIG_EXT3_FS_POSIX_ACL=y
 CONFIG_EXT3_FS_SECURITY=y