Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

settings: Add all Docker stoage drivers #123

Merged
merged 1 commit into from
Dec 22, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions contrib/etc/lockc/lockc.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,20 @@ allowed_paths_mount_restricted = [
"/dev/pts",
# Storage directory used by libpod (podman, cri-o).
"/var/lib/containers/storage",
# Storage directory used by docker (aufs driver).
"/var/lib/docker/aufs",
# Storage directory used by docker (btrfs driver).
"/var/lib/docker/btrfs",
# Storage directory used by docker (devmapper driver).
"/var/lib/docker/devmapper",
# Storage directory used by docker (overlay driver)
"/var/lib/docker/overlay",
# Storage directory used by docker (overlay2 driver).
"/var/lib/docker/overlay2",
# Storage directory used by docker (vfs driver).
"/var/lib/docker/vfs",
# Storage directory used by docker (zfs driver).
"/var/lib/docker/zfs",
# Storage directory used by containerd.
"/var/run/container",
# Storage directory used by CRI containerd.
Expand Down Expand Up @@ -165,8 +177,20 @@ allowed_paths_mount_baseline = [
"/dev/pts",
# Storage directory used by libpod (podman, cri-o).
"/var/lib/containers/storage",
# Storage directory used by docker (aufs driver).
"/var/lib/docker/aufs",
# Storage directory used by docker (btrfs driver).
"/var/lib/docker/btrfs",
# Storage directory used by docker (devmapper driver).
"/var/lib/docker/devmapper",
# Storage directory used by docker (overlay driver)
"/var/lib/docker/overlay",
# Storage directory used by docker (overlay2 driver).
"/var/lib/docker/overlay2",
# Storage directory used by docker (vfs driver).
"/var/lib/docker/vfs",
# Storage directory used by docker (zfs driver).
"/var/lib/docker/zfs",
# Storage directory used by containerd.
"/var/run/container",
# Storage directory used by CRI containerd.
Expand Down
24 changes: 24 additions & 0 deletions lockc/src/settings.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,20 @@ static DIR_PTS: &str = "/dev/pts";

/// Storage directory used by libpod (podman, cri-o).
static DIR_STORAGE_LIBPOD: &str = "/var/lib/containers/storage";
/// Storage directory used by docker (aufs driver).
static DIR_STORAGE_DOCKER_AUFS: &str = "/var/lib/docker/aufs";
/// Storage directory used by docker (btrfs driver).
static DIR_STORAGE_DOCKER_BTRFS: &str = "/var/lib/docker/btrfs";
/// Storage directory used by docker (devmapper driver).
static DIR_STORAGE_DOCKER_DEVMAPPER: &str = "/var/lib/docker/devmapper";
/// Storage directory used by docker (overlay driver).
static DIR_STORAGE_DOCKER_OVERLAY: &str = "/var/lib/docker/overlay";
/// Storage directory used by docker (overlay2 driver).
static DIR_STORAGE_DOCKER_OVERLAY2: &str = "/var/lib/docker/overlay2";
/// Storage directory used by docker (vfs driver).
static DIR_STORAGE_DOCKER_VFS: &str = "/var/lib/docker/vfs";
/// Storage directory used by docker (zfs driver).
static DIR_STORAGE_DOCKER_ZFS: &str = "/var/lib/docker/zfs";
/// Storage directory used by containerd.
static DIR_STORAGE_CONTAINERD: &str = "/var/run/container";
/// Storage directory used by CRI containerd.
Expand Down Expand Up @@ -258,7 +270,13 @@ impl Settings {
vec![
DIR_PTS.to_string(),
DIR_STORAGE_LIBPOD.to_string(),
DIR_STORAGE_DOCKER_AUFS.to_string(),
DIR_STORAGE_DOCKER_BTRFS.to_string(),
DIR_STORAGE_DOCKER_DEVMAPPER.to_string(),
DIR_STORAGE_DOCKER_OVERLAY.to_string(),
DIR_STORAGE_DOCKER_OVERLAY2.to_string(),
DIR_STORAGE_DOCKER_VFS.to_string(),
DIR_STORAGE_DOCKER_ZFS.to_string(),
DIR_STORAGE_CONTAINERD.to_string(),
DIR_STORAGE_CRI_CONTAINERD.to_string(),
DIR_STORAGE_CRI_CONTAINERD2.to_string(),
Expand Down Expand Up @@ -336,7 +354,13 @@ impl Settings {
// Paths used by container runtimes.
DIR_PTS.to_string(),
DIR_STORAGE_LIBPOD.to_string(),
DIR_STORAGE_DOCKER_AUFS.to_string(),
DIR_STORAGE_DOCKER_BTRFS.to_string(),
DIR_STORAGE_DOCKER_DEVMAPPER.to_string(),
DIR_STORAGE_DOCKER_OVERLAY.to_string(),
DIR_STORAGE_DOCKER_OVERLAY2.to_string(),
DIR_STORAGE_DOCKER_VFS.to_string(),
DIR_STORAGE_DOCKER_ZFS.to_string(),
DIR_STORAGE_CONTAINERD.to_string(),
DIR_STORAGE_CRI_CONTAINERD.to_string(),
DIR_STORAGE_CRI_CONTAINERD2.to_string(),
Expand Down