summaryrefslogtreecommitdiff
path: root/usr/iscsi_ipc.h
diff options
context:
space:
mode:
Diffstat (limited to 'usr/iscsi_ipc.h')
-rw-r--r--usr/iscsi_ipc.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/usr/iscsi_ipc.h b/usr/iscsi_ipc.h
index 47857dd..78bd29a 100644
--- a/usr/iscsi_ipc.h
+++ b/usr/iscsi_ipc.h
@@ -52,6 +52,17 @@ struct iscsi_ipc_ev_clbk {
extern void ipc_register_ev_callback(struct iscsi_ipc_ev_clbk *ipc_ev_clbk);
+enum iscsi_ipc_auth_type {
+ /* UID must have valid entry in user db */
+ ISCSI_IPC_AUTH_DEFAULT = 0,
+
+ /* Check only that UID==0 */
+ ISCSI_IPC_AUTH_UID,
+
+ /* Must be last */
+ ISCSI_IPC_AUTH_MAX,
+};
+
/**
* struct iscsi_ipc - Open-iSCSI Interface for Kernel IPC
*
@@ -63,6 +74,8 @@ struct iscsi_ipc {
int ctldev_bufmax;
+ enum iscsi_ipc_auth_type auth_type;
+
int (*ctldev_open) (void);
void (*ctldev_close) (void);