diff options
author | silas jeon <silasjeon@samsung.com> | 2017-02-09 16:13:04 +0900 |
---|---|---|
committer | silas jeon <silasjeon@samsung.com> | 2017-02-09 16:19:01 +0900 |
commit | 192ed9c81d78255654022d30ffe522261f4071b9 (patch) | |
tree | 28922301f1e628fc2ba4838ff0b8fe18e80ee19d | |
parent | 130b9ed552024a5dd331106714f09c8edabd2fd6 (diff) | |
download | system-plugin-192ed9c81d78255654022d30ffe522261f4071b9.tar.gz system-plugin-192ed9c81d78255654022d30ffe522261f4071b9.tar.bz2 system-plugin-192ed9c81d78255654022d30ffe522261f4071b9.zip |
Make root partition mounted as read-only
Last step of making root partition as read-only, on every profile in-
cluding mobile, tv, wearable, common. It will make root partition more
secure and stable, updatable.
Change-Id: If68d8b191d0eea24fc17e762bbcec2a5334424e4
-rw-r--r-- | etc/fstab | 8 | ||||
-rw-r--r-- | etc/fstab_initrd | 8 | ||||
-rw-r--r-- | etc/fstab_initrd_lazymnt | 6 | ||||
-rw-r--r-- | etc/fstab_lazymnt | 6 |
4 files changed, 14 insertions, 14 deletions
@@ -1,4 +1,4 @@ -# <file system> <mount point> <type> <options> <dump> <pass> -/dev/root / ext4 defaults,noatime 0 1 -LABEL=system-data /opt ext4 defaults,noatime 0 2 -LABEL=user /opt/usr ext4 defaults,noatime 0 2 +# <file system> <mount point> <type> <options> <dump> <pass> +/dev/root / ext4 defaults,noatime,ro 0 1 +LABEL=system-data /opt ext4 defaults,noatime 0 2 +LABEL=user /opt/usr ext4 defaults,noatime 0 2 diff --git a/etc/fstab_initrd b/etc/fstab_initrd index 75b6c4b..5d9d47b 100644 --- a/etc/fstab_initrd +++ b/etc/fstab_initrd @@ -1,7 +1,7 @@ # In case of using MCD initrd, / and /opt is already mounted by initrd # Thus, this patch is temporary files for wearable. # Basically, initrd should consider this issue. -# <file system> <mount point> <type> <options> <dump> <pass> -/dev/root / ext4 defaults,noatime 0 1 -PARTLABEL=system-data /opt ext4 defaults,noatime 0 2 -PARTLABEL=user /opt/usr ext4 defaults,noatime 0 2 +# <file system> <mount point> <type> <options> <dump> <pass> +/dev/root / ext4 defaults,noatime,ro 0 1 +PARTLABEL=system-data /opt ext4 defaults,noatime 0 2 +PARTLABEL=user /opt/usr ext4 defaults,noatime 0 2 diff --git a/etc/fstab_initrd_lazymnt b/etc/fstab_initrd_lazymnt index 4c80e4d..ef71810 100644 --- a/etc/fstab_initrd_lazymnt +++ b/etc/fstab_initrd_lazymnt @@ -1,6 +1,6 @@ # In case of using MCD initrd, / and /opt is already mounted by initrd # Thus, this patch is temporary files for wearable. # Basically, initrd should consider this issue. -# <file system> <mount point> <type> <options> <dump> <pass> -/dev/root / ext4 defaults,noatime 0 1 -PARTLABEL=system-data /opt ext4 defaults,noatime 0 2 +# <file system> <mount point> <type> <options> <dump> <pass> +/dev/root / ext4 defaults,noatime,ro 0 1 +PARTLABEL=system-data /opt ext4 defaults,noatime 0 2 diff --git a/etc/fstab_lazymnt b/etc/fstab_lazymnt index 02154dc..2f335c7 100644 --- a/etc/fstab_lazymnt +++ b/etc/fstab_lazymnt @@ -1,3 +1,3 @@ -# <file system> <mount point> <type> <options> <dump> <pass> -/dev/root / ext4 defaults,noatime 0 1 -LABEL=system-data /opt ext4 defaults,noatime 0 2 +# <file system> <mount point> <type> <options> <dump> <pass> +/dev/root / ext4 defaults,noatime,ro 0 1 +LABEL=system-data /opt ext4 defaults,noatime 0 2 |