Projects with the same path on different disks are merged into one project #5457
yusuke-koyoshi
started this conversation in
Bugs
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Description
Create two partitions on one disk and mount each as follows
Place two identical programming language projects as follows.
The paths after the mount directory should be same.
$ ll /data*/test-cargo /data1/test-cargo: total 28 drwxrwxr-x 4 ubuntu ubuntu 100 Oct 26 10:07 ./ drwxr-xr-x 3 ubuntu ubuntu 24 Oct 26 10:07 ../ drwxrwxr-x 8 ubuntu ubuntu 163 Oct 26 10:07 .git/ -rw-rw-r-- 1 ubuntu ubuntu 253 Oct 26 10:07 .gitignore -rw-rw-r-- 1 ubuntu ubuntu 15276 Oct 26 10:07 Cargo.lock -rw-rw-r-- 1 ubuntu ubuntu 352 Oct 26 10:07 Cargo.toml -rw-rw-r-- 1 ubuntu ubuntu 124 Oct 26 10:07 README.md drwxrwxr-x 2 ubuntu ubuntu 21 Oct 26 10:07 src/ /data2/test-cargo: total 28 drwxrwxr-x 4 ubuntu ubuntu 100 Oct 26 10:07 ./ drwxr-xr-x 3 ubuntu ubuntu 24 Oct 26 10:07 ../ drwxrwxr-x 8 ubuntu ubuntu 163 Oct 26 10:07 .git/ -rw-rw-r-- 1 ubuntu ubuntu 253 Oct 26 10:07 .gitignore -rw-rw-r-- 1 ubuntu ubuntu 15276 Oct 26 10:07 Cargo.lock -rw-rw-r-- 1 ubuntu ubuntu 352 Oct 26 10:07 Cargo.toml -rw-rw-r-- 1 ubuntu ubuntu 124 Oct 26 10:07 README.md drwxrwxr-x 2 ubuntu ubuntu 21 Oct 26 10:07 src/
If you take a snapshot and run a scan with
trivy vm
in this state, the two projects will be merged into one project.However, if the project name is changed as shown below, the two projects are scanned separately.
Desired Behavior
That each project is detected as a separate project.
Target should include the name of the mount directory.
Actual Behavior
See Description.
Reproduction Steps
Target
Virtual Machine Image
Scanner
Vulnerability
Output Format
None
Mode
Standalone
Debug Output
Operating System
macOS Ventura 13.6
Version
Checklist
trivy image --reset
Beta Was this translation helpful? Give feedback.
All reactions