Skip to content

Add app strict leak blocking - #46

Open
liamsmith827 wants to merge 13 commits into
GrapheneOS:17from
liamsmith827:17_07-18_so-bindtodevice-blocking-pr
Open

Add app strict leak blocking#46
liamsmith827 wants to merge 13 commits into
GrapheneOS:17from
liamsmith827:17_07-18_so-bindtodevice-blocking-pr

Conversation

@liamsmith827

@liamsmith827 liamsmith827 commented Aug 18, 2026

Copy link
Copy Markdown

These PRs add an "app strict leak blocking" toggle which controls whether an app is able to use setsockopt(SO_BINDTODEVICE). The leak blocking is enabled by default for all non-system apps, meaning SO_BINDTODEVICE is disabled by default. A notification is displayed whenever an SO_BINDTODEVICE attempt is blocked, which provides easy navigation to the toggle. A warning is displayed when a user attempts to disable strict leak blocking.

The existing SO_BINDTODEVICE blocking implementation has been completely removed as it only applied to apps under lockdown VPN, not globally to all apps.

Requires:

GrapheneOS/platform_frameworks_base#430
GrapheneOS/platform_packages_apps_Settings#442
GrapheneOS/platform_packages_modules_Permission#92
GrapheneOS/platform_packages_apps_GmsCompat#304
#45 (needs to be manually rebased as it is from the same repository)

Closes GrapheneOS/os-issue-tracker#7655

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Apps can bind to VPN network interface in another profile

1 participant