Lines Matching refs:section
156 for section in self.fv_sections.itervalues():
157 for subsection_name in section.names():
167 blob = self.fum.get_section(self.image, section.get_body_name())
171 section.set_sha(s.hexdigest())
174 if not section.get_sig_name():
179 self.image, section.get_sig_name())
181 section.set_version(self.os_if.retrieve_body_version(vb_section))
182 section.set_flags(self.os_if.retrieve_preamble_flags(vb_section))
183 section.set_datakey_version(
185 section.set_kernel_subkey_version(
189 s.update(self.fum.get_section(self.image, section.get_sig_name()))
190 section.set_sig_sha(s.hexdigest())
245 for section in self.fv_sections.itervalues():
246 if section.get_sig_name():
248 self.os_if.state_dir_file(section.get_sig_name()),
250 self.os_if.state_dir_file(section.get_body_name()))
253 def _modify_section(self, section, delta, body_or_sig=False, argument
268 if section not in self.fv_sections:
270 % section)
274 subsection_name = self.fv_sections[section].get_body_name()
276 subsection_name = self.fv_sections[section].get_sig_name()
292 def corrupt_section(self, section, corrupt_all=False): argument
295 return self._modify_section(section, self.DELTA, body_or_sig=False,
298 def corrupt_section_body(self, section, corrupt_all=False): argument
301 return self._modify_section(section, self.DELTA, body_or_sig=True,
304 def restore_section(self, section, restore_all=False): argument
307 return self._modify_section(section, -self.DELTA, body_or_sig=False,
310 def restore_section_body(self, section, restore_all=False): argument
313 return self._modify_section(section, -self.DELTA, body_or_sig=True,
316 def corrupt_firmware(self, section, corrupt_all=False): argument
319 subsection_name = self.corrupt_section(section, corrupt_all=corrupt_all)
322 def corrupt_firmware_body(self, section, corrupt_all=False): argument
325 subsection_name = self.corrupt_section_body(section,
329 def restore_firmware(self, section, restore_all=False): argument
332 subsection_name = self.restore_section(section, restore_all=restore_all)
335 def restore_firmware_body(self, section, restore_all=False): argument
338 subsection_name = self.restore_section_body(section,
432 def get_section_sig_sha(self, section): argument
434 return self.fv_sections[section].get_sig_sha()
436 def get_section_sha(self, section): argument
438 return self.fv_sections[section].get_sha()
440 def get_section_version(self, section): argument
442 return self.fv_sections[section].get_version()
444 def get_section_flags(self, section): argument
446 return self.fv_sections[section].get_flags()
448 def get_section_datakey_version(self, section): argument
450 return self.fv_sections[section].get_datakey_version()
452 def get_section_kernel_subkey_version(self, section): argument
454 return self.fv_sections[section].get_kernel_subkey_version()
456 def get_section_body(self, section): argument
458 subsection_name = self.fv_sections[section].get_body_name()
462 def get_section_sig(self, section): argument
464 subsection_name = self.fv_sections[section].get_sig_name()
468 def set_section_body(self, section, blob, write_through=False): argument
470 subsection_name = self.fv_sections[section].get_body_name()
478 def set_section_sig(self, section, blob, write_through=False): argument
480 subsection_name = self.fv_sections[section].get_sig_name()
488 def set_section_version(self, section, version, flags, argument
494 if (self.get_section_version(section) == version and
495 self.get_section_flags(section) == flags):
499 'Attempt to set version %d on section %s' % (version, section))
500 fv_section = self.fv_sections[section]