Lines Matching full:section
29 @param image_operator: Method accepting one section as its argument.
32 def wrapper(self, section, *args, **dargs): argument
35 @param section: A list of sections of just a section.
37 if type(section) in (tuple, list):
38 for sec in section:
41 image_operator(self, section, *args, **dargs)
366 def _bios_get_preamble_flags(self, section): argument
367 """Get the preamble flags of a firmware section.
369 @param section: A firmware section, either 'a' or 'b'.
372 return self._bios_handler.get_section_flags(section)
374 def _bios_set_preamble_flags(self, section, flags): argument
375 """Set the preamble flags of a firmware section.
377 @param section: A firmware section, either 'a' or 'b'.
380 version = self._bios_get_version(section)
381 self._bios_handler.set_section_version(section, version, flags,
384 def _bios_get_body_sha(self, section): argument
385 """Get SHA1 hash of BIOS RW firmware section.
387 @param section: A firmware section, either 'a' or 'b'.
390 return self._bios_handler.get_section_sha(section)
392 def _bios_get_sig_sha(self, section): argument
393 """Get SHA1 hash of firmware vblock in section."""
394 return self._bios_handler.get_section_sig_sha(section)
397 def _bios_corrupt_sig(self, section): argument
398 """Corrupt the requested firmware section signature.
400 @param section: A firmware section, either 'a' or 'b'.
402 self._bios_handler.corrupt_firmware(section)
405 def _bios_restore_sig(self, section): argument
406 """Restore the previously corrupted firmware section signature.
408 @param section: A firmware section, either 'a' or 'b'.
410 self._bios_handler.restore_firmware(section)
413 def _bios_corrupt_body(self, section, corrupt_all=False): argument
414 """Corrupt the requested firmware section body.
416 @param section: A firmware section, either 'a' or 'b'.
418 self._bios_handler.corrupt_firmware_body(section, corrupt_all)
421 def _bios_restore_body(self, section): argument
422 """Restore the previously corrupted firmware section body.
424 @param section: A firmware section, either 'a' or 'b'.
426 self._bios_handler.restore_firmware_body(section)
428 def __bios_modify_version(self, section, delta): argument
429 """Modify firmware version for the requested section, by adding delta.
434 original_version = self._bios_get_version(section)
436 flags = self._bios_handler.get_section_flags(section)
438 'Setting firmware section %s version from %d to %d' % (
439 section, original_version, new_version))
440 self._bios_handler.set_section_version(section, new_version, flags,
444 def _bios_move_version_backward(self, section): argument
445 """Decrement firmware version for the requested section."""
446 self.__bios_modify_version(section, -1)
449 def _bios_move_version_forward(self, section): argument
450 """Increase firmware version for the requested section."""
451 self.__bios_modify_version(section, 1)
453 def _bios_get_version(self, section): argument
454 """Retrieve firmware version of a section."""
455 return self._bios_handler.get_section_version(section)
457 def _bios_get_datakey_version(self, section): argument
459 return self._bios_handler.get_section_datakey_version(section)
461 def _bios_get_kernel_subkey_version(self, section): argument
463 return self._bios_handler.get_section_kernel_subkey_version(section)
489 """Get SHA1 hash of EC RW firmware section."""
513 def _ec_corrupt_sig(self, section): argument
514 """Corrupt the requested EC section signature.
516 @param section: A EC section, either 'a' or 'b'.
518 self._ec_handler.corrupt_firmware(section, corrupt_all=True)
521 def _ec_restore_sig(self, section): argument
522 """Restore the previously corrupted EC section signature.
524 @param section: An EC section, either 'a' or 'b'.
526 self._ec_handler.restore_firmware(section, restore_all=True)
529 def _ec_corrupt_body(self, section): argument
530 """Corrupt the requested EC section body.
532 @param section: An EC section, either 'a' or 'b'.
534 self._ec_handler.corrupt_firmware_body(section, corrupt_all=True)
537 def _ec_restore_body(self, section): argument
538 """Restore the previously corrupted EC section body.
540 @param section: An EC section, either 'a' or 'b'.
542 self._ec_handler.restore_firmware_body(section, restore_all=True)
575 def _kernel_corrupt_sig(self, section): argument
576 """Corrupt the requested kernel section.
578 @param section: A kernel section, either 'a' or 'b'.
580 self._kernel_handler.corrupt_kernel(section)
583 def _kernel_restore_sig(self, section): argument
584 """Restore the requested kernel section (previously corrupted).
586 @param section: A kernel section, either 'a' or 'b'.
588 self._kernel_handler.restore_kernel(section)
590 def __kernel_modify_version(self, section, delta): argument
591 """Modify kernel version for the requested section, by adding delta.
596 original_version = self._kernel_handler.get_version(section)
599 'Setting kernel section %s version from %d to %d' % (
600 section, original_version, new_version))
601 self._kernel_handler.set_version(section, new_version)
604 def _kernel_move_version_backward(self, section): argument
605 """Decrement kernel version for the requested section."""
606 self.__kernel_modify_version(section, -1)
609 def _kernel_move_version_forward(self, section): argument
610 """Increase kernel version for the requested section."""
611 self.__kernel_modify_version(section, 1)
613 def _kernel_get_version(self, section): argument
615 return self._kernel_handler.get_version(section)
617 def _kernel_get_datakey_version(self, section): argument
619 return self._kernel_handler.get_datakey_version(section)
639 def _kernel_resign_with_keys(self, section, key_path=None): argument
641 self._kernel_handler.resign_kernel(section, key_path)
643 def _kernel_dump(self, section, kernel_path): argument
646 @param section: The kernel to dump. May be A or B.
649 self._kernel_handler.dump_kernel(section, kernel_path)
651 def _kernel_write(self, section, kernel_path): argument
652 """Write a kernel image to the specified section.
654 @param section: The kernel to dump. May be A or B.
657 self._kernel_handler.write_kernel(section, kernel_path)
659 def _kernel_get_sha(self, section): argument
660 """Return the SHA1 hash of the specified kernel section."""
661 return self._kernel_handler.get_sha(section)
848 def _rootfs_verify_rootfs(self, section): argument
851 @param section: The rootfs to verify. May be A or B.
853 return self._rootfs_handler.verify_rootfs(section)