Skip to content

Commit

Permalink
IFP: don't trigger backtrace in case of ACL check fail
Browse files Browse the repository at this point in the history
Avoid
```
   *  (2024-02-03 17:39:37): [ifp] [ifp_access_check] (0x0080): User 1000 not in ACL
   *  (2024-02-03 17:39:37): [ifp] [sbus_check_access] (0x0400): org.freedesktop.sssd.infopipe.Users.FindByName: permission denied for sender :1.290 with uid 1000
   *  (2024-02-03 17:39:37): [ifp] [sbus_issue_request_done] (0x0040): org.freedesktop.sssd.infopipe.Users.FindByName: Error [13]: Permission denied
```

Reviewed-by: Tomáš Halman <[email protected]>
  • Loading branch information
alexey-tikhonov committed Feb 9, 2024
1 parent 1bf5192 commit 2ef0f83
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/sbus/router/sbus_router_handler.c
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,7 @@ static void sbus_issue_request_done(struct tevent_req *subreq)
} else {
int msg_level = SSSDBG_OP_FAILURE;
if (ret == ERR_MISSING_DP_TARGET) msg_level = SSSDBG_FUNC_DATA;
if (ret == EACCES) msg_level = SSSDBG_MINOR_FAILURE; /* IFP ACL */
DEBUG(msg_level, "%s.%s: Error [%d]: %s\n",
meta.interface, meta.member, ret, sss_strerror(ret));
}
Expand Down

0 comments on commit 2ef0f83

Please sign in to comment.