diff options
author | Lee Duncan <lduncan@suse.com> | 2022-05-16 17:29:30 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-16 17:29:30 -0700 |
commit | 433fad9ddadd62e5edf9597493f32a3b9443cc59 (patch) | |
tree | c3ac5f0733cc34595e970f027e13ac392e5c340a /usr/event_poll.c | |
parent | 9dc06a2a75438907cbac0a1523f4d235d28ab58b (diff) | |
parent | 4b377041ef88f7c683b0a880e937e71a773c2c68 (diff) | |
download | open-iscsi-433fad9ddadd62e5edf9597493f32a3b9443cc59.tar.gz |
Merge pull request #350 from ericwmackay/ipc_auth_uid
Add ability for MGMT IPC to check UID only
Diffstat (limited to 'usr/event_poll.c')
-rw-r--r-- | usr/event_poll.c | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/usr/event_poll.c b/usr/event_poll.c index ffd12a3..f39f899 100644 --- a/usr/event_poll.c +++ b/usr/event_poll.c @@ -195,8 +195,16 @@ void event_loop(struct iscsi_ipc *ipc, int control_fd, int mgmt_ipc_fd) if (poll_array[POLL_CTRL].revents) ipc->ctldev_handle(); - if (poll_array[POLL_IPC].revents) - mgmt_ipc_handle(mgmt_ipc_fd); + if (poll_array[POLL_IPC].revents) { + switch (ipc->auth_type) { + case ISCSI_IPC_AUTH_UID: + mgmt_ipc_handle_uid_only(mgmt_ipc_fd); + break; + default: + mgmt_ipc_handle(mgmt_ipc_fd); + break; + } + } if (poll_array[POLL_ALARM].revents) { struct signalfd_siginfo si; |