samduy / provenance-analysis

Program Provenance Analysis
1 stars 1 forks source link

Better extraction of program directory name #3

Closed samduy closed 7 years ago

samduy commented 7 years ago

Currently, there's no effective way to auto-identify which level of sub-directory of scanning DIR is the package folder. Currently we assume that the directory for each package is 2 level below DIR. For example, when we scan directory '/', the directories packages we extracted can be:

/usr/share/program1
/usr/share/program2

But, it will mis-recognized other sub-directories of other packages as packages also, such as:

/opt/program3/sub-dir1
/opt/program3/sub-dir2

The following should be the proper extraction:

/usr/share/program1
/usr/share/program2
/opt/program3
samduy commented 7 years ago

Implemented in 414ad80e0836ee5642ea8fd94b240894d3e0d3eb