3 ms·
It doesn't seem too difficult to support; what are the edge cases? Who owns a file in a path that includes a 'well known symlink dir'? So maintain a list of w
by mjevans 5y ago
It doesn't seem too difficult to support; what are the edge cases?
Who owns a file in a path that includes a 'well known symlink dir'?
So maintain a list of well known symlink dirs. When checking a file path against the database, the normalization step should check if the known symlink dir is any point of the path; if it is the redirect should be resolved to the well known target instead.
E.G. owns('/bin/bash') ... the path mutates to '/usr/bin/bash' because the location '/bin/' is already known to really be '/usr/bin/'.