Lines Matching full:section

28     @param image_operator: Method accepting one section as its argument.
31 def wrapper(self, section): argument
34 @param section: A list of sections of just a section.
36 if type(section) in (tuple, list):
37 for sec in section:
40 image_operator(self, section)
364 def _bios_get_preamble_flags(self, section): argument
365 """Get the preamble flags of a firmware section.
367 @param section: A firmware section, either 'a' or 'b'.
370 return self._bios_handler.get_section_flags(section)
372 def _bios_set_preamble_flags(self, section, flags): argument
373 """Set the preamble flags of a firmware section.
375 @param section: A firmware section, either 'a' or 'b'.
378 version = self._bios_get_version(section)
379 self._bios_handler.set_section_version(section, version, flags,
382 def _bios_get_body_sha(self, section): argument
383 """Get SHA1 hash of BIOS RW firmware section.
385 @param section: A firmware section, either 'a' or 'b'.
388 return self._bios_handler.get_section_sha(section)
390 def _bios_get_sig_sha(self, section): argument
391 """Get SHA1 hash of firmware vblock in section."""
392 return self._bios_handler.get_section_sig_sha(section)
395 def _bios_corrupt_sig(self, section): argument
396 """Corrupt the requested firmware section signature.
398 @param section: A firmware section, either 'a' or 'b'.
400 self._bios_handler.corrupt_firmware(section)
403 def _bios_restore_sig(self, section): argument
404 """Restore the previously corrupted firmware section signature.
406 @param section: A firmware section, either 'a' or 'b'.
408 self._bios_handler.restore_firmware(section)
411 def _bios_corrupt_body(self, section): argument
412 """Corrupt the requested firmware section body.
414 @param section: A firmware section, either 'a' or 'b'.
416 self._bios_handler.corrupt_firmware_body(section)
419 def _bios_restore_body(self, section): argument
420 """Restore the previously corrupted firmware section body.
422 @param section: A firmware section, either 'a' or 'b'.
424 self._bios_handler.restore_firmware_body(section)
426 def __bios_modify_version(self, section, delta): argument
427 """Modify firmware version for the requested section, by adding delta.
432 original_version = self._bios_get_version(section)
434 flags = self._bios_handler.get_section_flags(section)
436 'Setting firmware section %s version from %d to %d' % (
437 section, original_version, new_version))
438 self._bios_handler.set_section_version(section, new_version, flags,
442 def _bios_move_version_backward(self, section): argument
443 """Decrement firmware version for the requested section."""
444 self.__bios_modify_version(section, -1)
447 def _bios_move_version_forward(self, section): argument
448 """Increase firmware version for the requested section."""
449 self.__bios_modify_version(section, 1)
451 def _bios_get_version(self, section): argument
452 """Retrieve firmware version of a section."""
453 return self._bios_handler.get_section_version(section)
455 def _bios_get_datakey_version(self, section): argument
457 return self._bios_handler.get_section_datakey_version(section)
459 def _bios_get_kernel_subkey_version(self, section): argument
461 return self._bios_handler.get_section_kernel_subkey_version(section)
487 """Get SHA1 hash of EC RW firmware section."""
491 def _ec_corrupt_sig(self, section): argument
492 """Corrupt the requested EC section signature.
494 @param section: A EC section, either 'a' or 'b'.
496 self._ec_handler.corrupt_firmware(section, corrupt_all=True)
499 def _ec_restore_sig(self, section): argument
500 """Restore the previously corrupted EC section signature.
502 @param section: An EC section, either 'a' or 'b'.
504 self._ec_handler.restore_firmware(section, restore_all=True)
507 def _ec_corrupt_body(self, section): argument
508 """Corrupt the requested EC section body.
510 @param section: An EC section, either 'a' or 'b'.
512 self._ec_handler.corrupt_firmware_body(section, corrupt_all=True)
515 def _ec_restore_body(self, section): argument
516 """Restore the previously corrupted EC section body.
518 @param section: An EC section, either 'a' or 'b'.
520 self._ec_handler.restore_firmware_body(section, restore_all=True)
540 def _kernel_corrupt_sig(self, section): argument
541 """Corrupt the requested kernel section.
543 @param section: A kernel section, either 'a' or 'b'.
545 self._kernel_handler.corrupt_kernel(section)
548 def _kernel_restore_sig(self, section): argument
549 """Restore the requested kernel section (previously corrupted).
551 @param section: A kernel section, either 'a' or 'b'.
553 self._kernel_handler.restore_kernel(section)
555 def __kernel_modify_version(self, section, delta): argument
556 """Modify kernel version for the requested section, by adding delta.
561 original_version = self._kernel_handler.get_version(section)
564 'Setting kernel section %s version from %d to %d' % (
565 section, original_version, new_version))
566 self._kernel_handler.set_version(section, new_version)
569 def _kernel_move_version_backward(self, section): argument
570 """Decrement kernel version for the requested section."""
571 self.__kernel_modify_version(section, -1)
574 def _kernel_move_version_forward(self, section): argument
575 """Increase kernel version for the requested section."""
576 self.__kernel_modify_version(section, 1)
578 def _kernel_get_version(self, section): argument
580 return self._kernel_handler.get_version(section)
582 def _kernel_get_datakey_version(self, section): argument
584 return self._kernel_handler.get_datakey_version(section)
604 def _kernel_resign_with_keys(self, section, key_path=None): argument
606 self._kernel_handler.resign_kernel(section, key_path)
608 def _kernel_dump(self, section, kernel_path): argument
611 @param section: The kernel to dump. May be A or B.
614 self._kernel_handler.dump_kernel(section, kernel_path)
616 def _kernel_write(self, section, kernel_path): argument
617 """Write a kernel image to the specified section.
619 @param section: The kernel to dump. May be A or B.
622 self._kernel_handler.write_kernel(section, kernel_path)
624 def _kernel_get_sha(self, section): argument
625 """Return the SHA1 hash of the specified kernel section."""
626 return self._kernel_handler.get_sha(section)
717 def _rootfs_verify_rootfs(self, section): argument
720 @param section: The rootfs to verify. May be A or B.
722 return self._rootfs_handler.verify_rootfs(section)