Skip to content

Commit

Permalink
Add policy exception for RPC ubus call including session id
Browse files Browse the repository at this point in the history
  • Loading branch information
theatischbein committed Jun 2, 2022
1 parent fdf442e commit 7a8d0eb
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ubus_python.c
Original file line number Diff line number Diff line change
Expand Up @@ -766,6 +766,11 @@ bool test_policies(const struct blobmsg_policy *policies, int n_policies, struct
int type = blobmsg_type(cur);
int pol_idx;

// Skip comparision if RPC session ID is given
if (!strcmp("ubus_rpc_session", name)){
continue;
}

// Iterate through policies
for (pol_idx = 0; pol_idx < n_policies; pol_idx++) {

Expand Down

0 comments on commit 7a8d0eb

Please sign in to comment.