mtan93 / googledrivefilestream-bigsur

Google Drive File Stream Fix for Big Sur
15 stars 4 forks source link

System Preferences does not display request to give permission to extension #2

Open focher opened 4 years ago

focher commented 4 years ago

I ran into the issue where Big Sur never presents the Allow button to give permission to the Google extension. Here's what I've tried:

Enter su mode: > sudo -s

Open the kext policy permissions: > /usr/bin/sqlite3 /var/db/SystemPolicyConfiguration/KextPolicy

Display the list of current policy permissions: sqlite> SELECT * FROM kext_policy;

Example results: EQHXZ8M8AV|com.google.dfsfuse.filesystems.dfsfuse|1|Google, Inc.|5 EQHXZ8M8AV|com.google.drivefs.filesystems.dfsfuse|1|Google, Inc.|1

Remove the existing permissions for Google's extensions sqlite> DELETE FROM kext_load_history_v3 WHERE team_id = 'EQHXZ8M8AV';

Quit sqlite sqlite> .quit

Full respect to https://pikeralpha.wordpress.com/2017/08/29/user-approved-kernel-extension-loading/comment-page-1/

felixbuenemann commented 3 years ago

That database is restricted by SIP on 11.1, so you cannot modify it:

sqlite> DELETE FROM kext_load_history_v3 WHERE team_id = 'EQHXZ8M8AV';
Error: attempt to write a readonly database
sqlite> ^D
❯ ls -lO /var/db/SystemPolicyConfiguration/KextPolicy
-rw-------  1 root  wheel  restricted 802816 10 Nov 21:48 /var/db/SystemPolicyConfiguration/KextPolicy