(ace, sdtype)
| 1125 | pass |
| 1126 | |
| 1127 | def explain_resource_attribute(ace, sdtype): |
| 1128 | yield u"Type:" |
| 1129 | yield u" " + str(ace.Header.AceType) |
| 1130 | yield u"HeaderFlags:" |
| 1131 | yield u" {0:#x}".format(ace.Header.AceFlags) |
| 1132 | yield u"SID:" |
| 1133 | yield u" " + explain_sid(ace.sid) |
| 1134 | yield u"Mask:" |
| 1135 | mapper = windows.security.SPECIFIC_ACCESS_RIGTH_BY_TYPE[sdtype] |
| 1136 | yield u" " + str(list(mapper[x] for x in ace.mask)) |
| 1137 | |
| 1138 | attribute = ace.attribute |
| 1139 | yield u"Attribute Name:" |
| 1140 | yield u" " + attribute.name |
| 1141 | yield u"Attribute Type:" |
| 1142 | yield u" {0:#x}".format(attribute.ValueType) |
| 1143 | yield u"Attribute Flags:" |
| 1144 | yield u" {0:#x}".format(attribute.Flags) |
| 1145 | yield u"Values:" |
| 1146 | for value in attribute.values: |
| 1147 | yield u" " + repr(value) |
| 1148 | |
| 1149 | |
| 1150 | ACE_EXPLAINER = { |
nothing calls this directly
no test coverage detected