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)
363 def _bios_get_preamble_flags(self, section): argument
364 """Get the preamble flags of a firmware section.
366 @param section: A firmware section, either 'a' or 'b'.
369 return self._bios_handler.get_section_flags(section)
371 def _bios_set_preamble_flags(self, section, flags): argument
372 """Set the preamble flags of a firmware section.
374 @param section: A firmware section, either 'a' or 'b'.
377 version = self._bios_get_version(section)
378 self._bios_handler.set_section_version(section, version, flags,
381 def _bios_get_body_sha(self, section): argument
382 """Get SHA1 hash of BIOS RW firmware section.
384 @param section: A firmware section, either 'a' or 'b'.
387 return self._bios_handler.get_section_sha(section)
389 def _bios_get_sig_sha(self, section): argument
390 """Get SHA1 hash of firmware vblock in section."""
391 return self._bios_handler.get_section_sig_sha(section)
394 def _bios_corrupt_sig(self, section): argument
395 """Corrupt the requested firmware section signature.
397 @param section: A firmware section, either 'a' or 'b'.
399 self._bios_handler.corrupt_firmware(section)
402 def _bios_restore_sig(self, section): argument
403 """Restore the previously corrupted firmware section signature.
405 @param section: A firmware section, either 'a' or 'b'.
407 self._bios_handler.restore_firmware(section)
410 def _bios_corrupt_body(self, section): argument
411 """Corrupt the requested firmware section body.
413 @param section: A firmware section, either 'a' or 'b'.
415 self._bios_handler.corrupt_firmware_body(section)
418 def _bios_restore_body(self, section): argument
419 """Restore the previously corrupted firmware section body.
421 @param section: A firmware section, either 'a' or 'b'.
423 self._bios_handler.restore_firmware_body(section)
425 def __bios_modify_version(self, section, delta): argument
426 """Modify firmware version for the requested section, by adding delta.
431 original_version = self._bios_get_version(section)
433 flags = self._bios_handler.get_section_flags(section)
435 'Setting firmware section %s version from %d to %d' % (
436 section, original_version, new_version))
437 self._bios_handler.set_section_version(section, new_version, flags,
441 def _bios_move_version_backward(self, section): argument
442 """Decrement firmware version for the requested section."""
443 self.__bios_modify_version(section, -1)
446 def _bios_move_version_forward(self, section): argument
447 """Increase firmware version for the requested section."""
448 self.__bios_modify_version(section, 1)
450 def _bios_get_version(self, section): argument
451 """Retrieve firmware version of a section."""
452 return self._bios_handler.get_section_version(section)
454 def _bios_get_datakey_version(self, section): argument
456 return self._bios_handler.get_section_datakey_version(section)
458 def _bios_get_kernel_subkey_version(self, section): argument
460 return self._bios_handler.get_section_kernel_subkey_version(section)
486 """Get SHA1 hash of EC RW firmware section."""
490 def _ec_corrupt_sig(self, section): argument
491 """Corrupt the requested EC section signature.
493 @param section: A EC section, either 'a' or 'b'.
495 self._ec_handler.corrupt_firmware(section, corrupt_all=True)
498 def _ec_restore_sig(self, section): argument
499 """Restore the previously corrupted EC section signature.
501 @param section: An EC section, either 'a' or 'b'.
503 self._ec_handler.restore_firmware(section, restore_all=True)
506 def _ec_corrupt_body(self, section): argument
507 """Corrupt the requested EC section body.
509 @param section: An EC section, either 'a' or 'b'.
511 self._ec_handler.corrupt_firmware_body(section, corrupt_all=True)
514 def _ec_restore_body(self, section): argument
515 """Restore the previously corrupted EC section body.
517 @param section: An EC section, either 'a' or 'b'.
519 self._ec_handler.restore_firmware_body(section, restore_all=True)
539 def _kernel_corrupt_sig(self, section): argument
540 """Corrupt the requested kernel section.
542 @param section: A kernel section, either 'a' or 'b'.
544 self._kernel_handler.corrupt_kernel(section)
547 def _kernel_restore_sig(self, section): argument
548 """Restore the requested kernel section (previously corrupted).
550 @param section: A kernel section, either 'a' or 'b'.
552 self._kernel_handler.restore_kernel(section)
554 def __kernel_modify_version(self, section, delta): argument
555 """Modify kernel version for the requested section, by adding delta.
560 original_version = self._kernel_handler.get_version(section)
563 'Setting kernel section %s version from %d to %d' % (
564 section, original_version, new_version))
565 self._kernel_handler.set_version(section, new_version)
568 def _kernel_move_version_backward(self, section): argument
569 """Decrement kernel version for the requested section."""
570 self.__kernel_modify_version(section, -1)
573 def _kernel_move_version_forward(self, section): argument
574 """Increase kernel version for the requested section."""
575 self.__kernel_modify_version(section, 1)
577 def _kernel_get_version(self, section): argument
579 return self._kernel_handler.get_version(section)
581 def _kernel_get_datakey_version(self, section): argument
583 return self._kernel_handler.get_datakey_version(section)
603 def _kernel_resign_with_keys(self, section, key_path=None): argument
605 self._kernel_handler.resign_kernel(section, key_path)
607 def _kernel_dump(self, section, kernel_path): argument
610 @param section: The kernel to dump. May be A or B.
613 self._kernel_handler.dump_kernel(section, kernel_path)
615 def _kernel_write(self, section, kernel_path): argument
616 """Write a kernel image to the specified section.
618 @param section: The kernel to dump. May be A or B.
621 self._kernel_handler.write_kernel(section, kernel_path)
623 def _kernel_get_sha(self, section): argument
624 """Return the SHA1 hash of the specified kernel section."""
625 return self._kernel_handler.get_sha(section)
739 def _rootfs_verify_rootfs(self, section): argument
742 @param section: The rootfs to verify. May be A or B.
744 return self._rootfs_handler.verify_rootfs(section)