Skip to content

pv-utils: Reserve /var/lib/dbus, /var/run

Simon McVittie requested to merge wip/task493 into main
  • pv-utils: Sort reserved paths alphabetically

  • pv-utils: Treat /var/lib/dbus as a reserved path

    We need to prevent /var/lib/dbus (and parent directories like /var/lib) from being shared with the container. Otherwise, a /var/lib/dbus/machine-id that is a regular file on the host can prevent us from creating it as a symlink (to /etc/machine-id) in the container.

    steamrt/tasks#493, steam-runtime#688

  • pv-utils: Reserve /var/run

    If the user has /var/run as a directory (not a symlink), and if they (unwisely) run with --filesystem=/var/run, then that would prevent us from creating the symlink /var/run -> ../run.

    steamrt/tasks#493

/cc @refi64 @denittis

This is the targeted solution to #493: reserving (more) paths that can't work. This would also help us if a user (extremely unwisely) has their XDG_DATA_HOME set to /var/run/mnt/homedirs/me/data or something.

Merge request reports

Loading