scsi: target: iscsi: Control authentication per ACL
authorDmitry Bogdanov <d.bogdanov@yadro.com>
Mon, 23 May 2022 09:59:05 +0000 (12:59 +0300)
committerMartin K. Petersen <martin.petersen@oracle.com>
Wed, 8 Jun 2022 01:55:11 +0000 (21:55 -0400)
commita6e0d179764cb31b2981c85e6fd156adc777e4ed
tree840133df6f24b476fa12187b50d2262e17164e56
parenta75fcb0912a549c6c1da8395f33271ce06e84acd
scsi: target: iscsi: Control authentication per ACL

Add acls/{ACL}/attrib/authentication attribute that controls authentication
for particular ACL. By default, this attribute inherits a value of the
authentication attribute of the target port group to keep backward
compatibility.

Authentication attribute has 3 states:

 "0" - authentication is turned off for this ACL

 "1" - authentication is required for this ACL

 "-1" - authentication is inherited from TPG

Link: https://lore.kernel.org/r/20220523095905.26070-4-d.bogdanov@yadro.com
Reviewed-by: Roman Bolshakov <r.bolshakov@yadro.com>
Reviewed-by: Konstantin Shelekhin <k.shelekhin@yadro.com>
Reviewed-by: Mike Christie <michael.christie@oracle.com>
Signed-off-by: Dmitry Bogdanov <d.bogdanov@yadro.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/target/iscsi/iscsi_target_configfs.c
drivers/target/iscsi/iscsi_target_nego.c
drivers/target/iscsi/iscsi_target_nodeattrib.c
include/target/iscsi/iscsi_target_core.h