Skip to content

drop loopback out-of-process #799

Open
@cgwalters

Description

@cgwalters

This one may be a good first issue: today when doing install --via-loopback, if we get killed by e.g. Ctrl-C (i.e. SIGINT) we will leak the loopback device allocation.

I've been thinking here what would be nice in general is to create a little "out of process drop" helper that could handle these external resources; it would:

  • mask most signals that would otherwise be fatal
  • own the resource and if the parent process died (via PR_SET_PDEATHSIG) we'd take care of dropping them

This type of flow would also be nice for temporary directories, which are also easy to leak in this way.


Hmm, we may also be able to stop forking /bin/losetup and instead use the ioctl APIs and only hold a file descriptor, but that's a bigger change.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/installIssues related to `bootc install`bugSomething isn't workinggood first issueGood for newcomers

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions