diff options
Diffstat (limited to 'server/NetworkController.cpp')
-rw-r--r-- | server/NetworkController.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/server/NetworkController.cpp b/server/NetworkController.cpp index 0d716adf..c16c7b7d 100644 --- a/server/NetworkController.cpp +++ b/server/NetworkController.cpp @@ -825,6 +825,15 @@ int NetworkController::setNetworkAllowlist( return 0; } +bool NetworkController::isUidAllowed(unsigned netId, uid_t uid) const { + const ScopedRLock lock(mRWLock); + Network* network = getNetworkLocked(netId); + if (network && network->isUidAllowed(uid)) { + return true; + } + return false; +} + bool NetworkController::isValidNetworkLocked(unsigned netId) const { return getNetworkLocked(netId); } |