Bug #5518

Make the system disk read-only

Added by Tails 2013-07-18 07:42:12 . Updated 2014-07-22 22:46:18 .

Status:
Resolved
Priority:
High
Assignee:
Category:
Target version:
Start date:
2013-09-11
Due date:
% Done:

100%

Feature Branch:
Type of work:
Code
Blueprint:

Starter:
0
Affected tool:
Deliverable for:

Description

(Redirected from writable system disk: belongs to floppy group

{{toc}}

The problem

In short: the system USB disk and partition block devices (e.g. /dev/sdb*) are writable by the default Live user, because they belong to the floppy group.

This was fixed in Tails 0.12 (see config/chroot_local_includes/lib/live/config/998-permissions) but the bug has since reappeared so the bug is now reopened. Our udev packages hasn’t been updated since, but perhaps the udev init script runs (or re-runs?) after live-config wheras it previously only ran before?

Roadmap

This is being discussed in the Help needed with branch bugfix/writable_boot_media thread on tails-dev.

  1. Fix write access to boot medium via udisks.
    1. Improve the the boot device has safe access rights step in features/usb_install.feature of the automated test suite to take this kind of write access into account.
    2. We’ve got a solution based on bilibop implemented in bugfix/safer-persistence, but it relies on UDISKS_SYSTEM_INTERNAL that exists in Wheezy, but not in Squeeze. So, let’s wait for Tails to be based on Wheezy.
    3. Research potential consequences on:
      ##* tails-persistence-setup
      ##* incremental updates

Done

  1. Fix write access to boot medium at the block device level (Debian bug #645466:
    1. Review and merge feature/bilibop.
    2. Re-enable the the boot device has safe access rights step in features/usb_install.feature of the automated test suite.

We’ll use bilibop: it’s potential usefulness for Tails was discussed on the ITP and RFS bugs.

Our feature/bilibop branch installs bilibop-udev (0.4.11~quidame). It works fine and makes the "the boot device has safe access rights" test pass.

This part is pending for Tails 0.19.

Older notes

This is being discussed in the Help needed with branch bugfix/writable_boot_media thread on tails-dev.

Another solution, was considered: home-made udev rules. See branch bugfix/writable_boot_media for a new fix using udev.

First review done, a bit more code is needed.


Subtasks

Bug #6172: Fix write access to boot medium via udisks Resolved

100


History

#1 Updated by intrigeri 2013-07-19 06:54:52

  • Tracker changed from Feature to Bug

#2 Updated by intrigeri 2013-07-19 06:55:30

  • Type of work changed from Wait to Code

#3 Updated by intrigeri 2014-04-05 23:44:49

  • Assignee set to intrigeri
  • Starter set to No

#4 Updated by intrigeri 2014-04-05 23:46:01

  • Subject changed from make system disk read-only to Make the system disk read-only

#5 Updated by intrigeri 2014-04-05 23:46:26

  • Status changed from Confirmed to In Progress

#6 Updated by intrigeri 2014-04-08 20:03:07

  • Status changed from In Progress to Fix committed
  • Assignee deleted (intrigeri)
  • Target version set to Tails_1.1

My results on Feature #6275 and other subtasks confirm that this is indeed fixed on Tails/Wheezy, finally.

#7 Updated by BitingBird 2014-07-22 22:46:18

  • Status changed from Fix committed to Resolved