linux-application-whitelisting / fapolicyd

File Access Policy Daemon
GNU General Public License v3.0
192 stars 55 forks source link

Allow rules to express paths using globbing (fnmatch) #315

Open skosachiov opened 4 weeks ago

skosachiov commented 4 weeks ago

The second implementation of fnmatch support, which works with trusted base. Briefly:

skosachiov commented 4 weeks ago

Steps to check:


- add trust 

/usr/local/sbin/fapolicyd-cli -f add /home/jdoe/.wine/ --trust-file wine-home.trust


- reload fapolicyd

- grep db

/usr/local/sbin/fapolicyd-cli -D | grep wine | grep notepad


- check output

filedb /home//.wine/drive_c/windows/notepad.exe 490403 338780f0cd76c8c04fb536c9397c32ae5f944e6750c87f087e455e4bda389abe filedb /home//.wine/drive_c/windows/system32/notepad.exe 490403 338780f0cd76c8c04fb536c9397c32ae5f944e6750c87f087e455e4bda389abe