Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

dir storage driver path check is not specific enough #792

Closed
cluening opened this issue Apr 26, 2024 · 0 comments
Closed

dir storage driver path check is not specific enough #792

cluening opened this issue Apr 26, 2024 · 0 comments
Assignees
Labels
Bug Confirmed to be a bug Easy Good for new contributors
Milestone

Comments

@cluening
Copy link

Required information

  • Distribution: Fedora
  • Distribution version: 39
  • The output of "incus info" or if that fails:
    • Kernel version: 6.7.11-200.fc39.x86_64
    • LXC version: lxc-libs-5.0.3-0.2.fc39.x86_64
    • Incus version: incus-6.0.0-0.1.fc39.x86_64
    • Storage backend in use: dir

Issue description

Creating a storage pool using the dir driver whose source is /var/lib/incusfoo/storage-pools/foopool fails with the error:

Error: Source path '/var/lib/incusfoo/storage-pools/foopool' is within the Incus directory

because the location starts with the string /var/lib/incus even though the path itself is different

Steps to reproduce

[root]# mkdir -p /var/lib/incusfoo/storage-pools/foopool
[root]# incus storage create foo dir source=/var/lib/incusfoo/storage-pools/foopool
Error: Source path '/var/lib/incusfoo/storage-pools/foopool' is within the Incus directory

Information to attach

@stgraber stgraber added Bug Confirmed to be a bug Easy Good for new contributors labels Apr 26, 2024
@stgraber stgraber added this to the incus-6.1 milestone Apr 26, 2024
@stgraber stgraber self-assigned this Apr 28, 2024
@hallyn hallyn closed this as completed in 864f14f Apr 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Confirmed to be a bug Easy Good for new contributors
Development

No branches or pull requests

2 participants