run-init's nuke_dir function needs to be properly recursive

Bug #31762 reported by Jeff Bailey
16
This bug affects 1 person
Affects Status Importance Assigned to Milestone
klibc (Ubuntu)
Confirmed
Low
Unassigned

Bug Description

run-init dies when there is a stray mount in a subdirectory. In general, the nuke_dir code is not properly recursive, and there are checks done on the top level directory that are not done in subdirectories.

Matt Zimmerman (mdz)
Changed in klibc:
assignee: nobody → keybuk
Revision history for this message
Scott James Remnant (Canonical) (canonical-scott) wrote :

It looks recursive enough to me, was there something in particular on your mind here?

Revision history for this message
Tollef Fog Heen (tfheen) wrote :

It falls over if you mount something in a subdirectory, something like:

- boot with break=bottom
- in the rescue shell, do mkdir foo; mkdir foo/bar; mount -t tmpfs tmpfs foo/bar ; exit

should make it fall over.

Changed in klibc:
status: Unconfirmed → Confirmed
Changed in klibc:
assignee: keybuk → ubuntu-kernel-team
Revision history for this message
Launchpad Janitor (janitor) wrote : Kernel team bugs

Per a decision made by the Ubuntu Kernel Team, bugs will longer be assigned to the ubuntu-kernel-team in Launchpad as part of the bug triage process. The ubuntu-kernel-team is being unassigned from this bug report. Refer to https://wiki.ubuntu.com/KernelTeamBugPolicies for more information. Thanks.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.