Closed skosachiov closed 1 month ago
Possibly related issue #74.
This will be tricky with integrity. @skosachiov have you considered it?
I agree. A regular expression with a matching group is too vague. I will withdraw the request. I think I could modify request #309 (fnmatch) so that fapolicyd-cli -f add /home/dummy/.wine/drive_c/Program\ Files/SomeSoft
added the keys like /home/*/.wine/drive_c/Program\ Files/SomeSoft/Some.exe ...
to trust.d database.
Path trimmer option specifies the path transformation before adding to the database and before file checking. For example, if all users on the host use certain software, e.g. flatpak, from their home directories, you might want to exclude /home/ or may be /mnt/nfs/home from the file path checking. POSIX-compatible regex mode is used, the resulting value is the last capturing regex group. For example, expression /(home|mnt/nfs/home)/[^/]+/(.*) returns the same relative paths to applications for all users. Note that there is no need to enclose the expression in quotation marks, a single $ sign will be interpreted as an match nothing expression. The default value is the match nothing.
add dir:
check db:
debug: