| 1765 | |
| 1766 | /* This structure defines an entry inside the ACL log. */ |
| 1767 | typedef struct ACLLogEntry { |
| 1768 | uint64_t count; /* Number of times this happened recently. */ |
| 1769 | int reason; /* Reason for denying the command. ACL_DENIED_*. */ |
| 1770 | int context; /* Toplevel, Lua or MULTI/EXEC? ACL_LOG_CTX_*. */ |
| 1771 | sds object; /* The key name or command name. */ |
| 1772 | sds username; /* User the client is authenticated with. */ |
| 1773 | mstime_t ctime; /* Milliseconds time of last update to this entry. */ |
| 1774 | sds cinfo; /* Client info (last client if updated). */ |
| 1775 | } ACLLogEntry; |
| 1776 | |
| 1777 | /* This function will check if ACL entries 'a' and 'b' are similar enough |
| 1778 | * that we should actually update the existing entry in our ACL log instead |
nothing calls this directly
no outgoing calls
no test coverage detected