| @@ -965,6 +965,19 @@ TF_CIT_SETUP(tpg_attrib, &target_fabric_tpg_attrib_item_ops, NULL, NULL); · 964 unmodified lines |
| 965 | 965 | |
| 966 | 966 | /* End of tfc_tpg_attrib_cit */ |
| 967 | 967 | |
| 968 | +/* Start of tfc_tpg_auth_cit */ |
| 969 | + |
| 970 | +CONFIGFS_EATTR_OPS(target_fabric_tpg_auth, se_portal_group, tpg_auth_group); |
| 971 | + |
| 972 | +static struct configfs_item_operations target_fabric_tpg_auth_item_ops = { |
| 973 | + .show_attribute = target_fabric_tpg_auth_attr_show, |
| 974 | + .store_attribute = target_fabric_tpg_auth_attr_store, |
| 975 | +}; |
| 976 | + |
| 977 | +TF_CIT_SETUP(tpg_auth, &target_fabric_tpg_auth_item_ops, NULL, NULL); |
| 978 | + |
| 979 | +/* End of tfc_tpg_attrib_cit */ |
| 980 | + |
| 968 | 981 | /* Start of tfc_tpg_param_cit */ |
| 969 | 982 | |
| 970 | 983 | CONFIGFS_EATTR_OPS(target_fabric_tpg_param, se_portal_group, tpg_param_group); |
| @@ -1030,8 +1043,9 @@ static struct config_group *target_fabric_make_tpg( · 59 unmodified lines |
| 1030 | 1043 | se_tpg->tpg_group.default_groups[1] = &se_tpg->tpg_np_group; |
| 1031 | 1044 | se_tpg->tpg_group.default_groups[2] = &se_tpg->tpg_acl_group; |
| 1032 | 1045 | se_tpg->tpg_group.default_groups[3] = &se_tpg->tpg_attrib_group; |
| 1033 | | − se_tpg->tpg_group.default_groups[4] = &se_tpg->tpg_param_group; |
| 1034 | | − se_tpg->tpg_group.default_groups[5] = NULL; |
| 1046 | + se_tpg->tpg_group.default_groups[4] = &se_tpg->tpg_auth_group; |
| 1047 | + se_tpg->tpg_group.default_groups[5] = &se_tpg->tpg_param_group; |
| 1048 | + se_tpg->tpg_group.default_groups[6] = NULL; |
| 1035 | 1049 | |
| 1036 | 1050 | config_group_init_type_name(&se_tpg->tpg_group, name, |
| 1037 | 1051 | &TF_CIT_TMPL(tf)->tfc_tpg_base_cit); |
| @@ -1043,6 +1057,8 @@ static struct config_group *target_fabric_make_tpg( · 5 unmodified lines |
| 1043 | 1057 | &TF_CIT_TMPL(tf)->tfc_tpg_nacl_cit); |
| 1044 | 1058 | config_group_init_type_name(&se_tpg->tpg_attrib_group, "attrib", |
| 1045 | 1059 | &TF_CIT_TMPL(tf)->tfc_tpg_attrib_cit); |
| 1060 | + config_group_init_type_name(&se_tpg->tpg_auth_group, "auth", |
| 1061 | + &TF_CIT_TMPL(tf)->tfc_tpg_auth_cit); |
| 1046 | 1062 | config_group_init_type_name(&se_tpg->tpg_param_group, "param", |
| 1047 | 1063 | &TF_CIT_TMPL(tf)->tfc_tpg_param_cit); |
| 1048 | 1064 | |
| @@ -1202,6 +1218,7 @@ int target_fabric_setup_cits(struct target_fabric_configfs *tf) · 153 unmodified lines |
| 1202 | 1218 | target_fabric_setup_tpg_np_cit(tf); |
| 1203 | 1219 | target_fabric_setup_tpg_np_base_cit(tf); |
| 1204 | 1220 | target_fabric_setup_tpg_attrib_cit(tf); |
| 1221 | + target_fabric_setup_tpg_auth_cit(tf); |
| 1205 | 1222 | target_fabric_setup_tpg_param_cit(tf); |
| 1206 | 1223 | target_fabric_setup_tpg_nacl_cit(tf); |
| 1207 | 1224 | target_fabric_setup_tpg_nacl_base_cit(tf); |