You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
932 B
21 lines
932 B
diff --color -ru a/src/Library/IPCServerPrivate.cpp b/src/Library/IPCServerPrivate.cpp
|
|
--- a/src/Library/IPCServerPrivate.cpp 2020-11-23 15:56:12.979847655 +0100
|
|
+++ b/src/Library/IPCServerPrivate.cpp 2021-09-15 10:02:51.641082533 +0200
|
|
@@ -567,10 +567,12 @@
|
|
bool IPCServerPrivate::authenticateIPCConnectionDAC(uid_t uid, gid_t gid, IPCServer::AccessControl* const ac_ptr) const
|
|
{
|
|
USBGUARD_LOG(Trace) << "uid=" << uid << " gid=" << gid << " ac_ptr=" << ac_ptr;
|
|
- return \
|
|
- matchACLByUID(uid, ac_ptr) || \
|
|
- matchACLByGID(gid, ac_ptr) || \
|
|
- matchACLByName(uid, gid, ac_ptr);
|
|
+
|
|
+ bool matched_uid = matchACLByUID(uid, ac_ptr);
|
|
+ bool matched_gid = matchACLByGID(gid, ac_ptr);
|
|
+ bool matched_name = matchACLByName(uid, gid, ac_ptr);
|
|
+
|
|
+ return matched_uid || matched_gid || matched_name;
|
|
}
|
|
|
|
bool IPCServerPrivate::matchACLByUID(uid_t uid, IPCServer::AccessControl* const ac_ptr) const
|