Lines Matching refs:permission

30 [[nodiscard]] int addToDefault(unsigned netId, const std::string& interface, Permission permission,  in addToDefault()  argument
32 if (int ret = RouteController::addInterfaceToDefaultNetwork(interface.c_str(), permission)) { in addToDefault()
36 if (int ret = delegate->addFallthrough(interface, permission)) { in addToDefault()
43 Permission permission, PhysicalNetwork::Delegate* delegate) { in removeFromDefault() argument
45 permission)) { in removeFromDefault()
49 if (int ret = delegate->removeFallthrough(interface, permission)) { in removeFromDefault()
69 int PhysicalNetwork::destroySocketsLackingPermission(Permission permission) { in destroySocketsLackingPermission() argument
70 if (permission == PERMISSION_NONE) return 0; in destroySocketsLackingPermission()
77 if (int ret = sd.destroySocketsLackingPermission(mNetId, permission, in destroySocketsLackingPermission()
80 mNetId, permission, strerror(-ret)); in destroySocketsLackingPermission()
98 int PhysicalNetwork::setPermission(Permission permission) { in setPermission() argument
99 if (permission == mPermission) { in setPermission()
103 mPermission = permission; in setPermission()
107 destroySocketsLackingPermission(permission); in setPermission()
110 mPermission, permission)) { in setPermission()
112 interface.c_str(), mNetId, mPermission, permission); in setPermission()
119 if (int ret = addToDefault(mNetId, interface, permission, mDelegate)) { in setPermission()
130 destroySocketsLackingPermission(permission); in setPermission()
131 mPermission = permission; in setPermission()