Skip to content

Commit

Permalink
Update regex paths to only match home folder library
Browse files Browse the repository at this point in the history
This changes the regex so that only 1 folder can be detected between `/Users` and `/Library` which should be the users home folder. This fixes a bug where BlockBlock would falsely alert the user that a launch agent or daemon was installed when in reality it existed in a deeper folder structure such as `/Users/test/Downloads/Library/LaunchAgents/com.test.plist`
kylehickinson committed Apr 12, 2022
1 parent fc1fa56 commit 79baa78
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Daemon/Daemon/watchList.plist
Original file line number Diff line number Diff line change
@@ -21,7 +21,7 @@
<string>Launch D &amp; A</string>
<key>paths</key>
<array>
<string>^(\/System|\/Users\/.+|)\/Library\/(LaunchDaemons|LaunchAgents)\/.+\.(?i)plist$</string>
<string>^(\/System|\/Users\/[^\/]+|)\/Library\/(LaunchDaemons|LaunchAgents)\/.+\.(?i)plist$</string>
</array>
<key>class</key>
<string>Launchd</string>
@@ -35,7 +35,7 @@
<string>Login Item</string>
<key>paths</key>
<array>
<string>^(\/Users\/.+|)\/Library\/Application Support\/com.apple.backgroundtaskmanagementagent\/backgrounditems.btm$</string>
<string>^(\/Users\/[^\/]+|)\/Library\/Application Support\/com.apple.backgroundtaskmanagementagent\/backgrounditems.btm$</string>
</array>
<key>class</key>
<string>LoginItem</string>

0 comments on commit 79baa78

Please sign in to comment.