Lines Matching refs:designator
253 …assert(!verity || verity->designator < 0 || IN_SET(verity->designator, PARTITION_ROOT, PARTITION_U… in dissect_image()
286 if (verity->designator == PARTITION_USR) { in dissect_image()
400 (verity->designator < 0 || verity->designator == PARTITION_ROOT); in dissect_image()
521 PartitionDesignator designator = _PARTITION_DESIGNATOR_INVALID; in dissect_image() local
548 designator = PARTITION_HOME; in dissect_image()
559 designator = PARTITION_SRV; in dissect_image()
573 designator = PARTITION_ESP; in dissect_image()
583 designator = PARTITION_XBOOTLDR; in dissect_image()
599 designator = PARTITION_ROOT_OF_ARCH(architecture); in dissect_image()
615 if (verity->designator >= 0 && verity->designator != PARTITION_ROOT) in dissect_image()
623 … designator = PARTITION_VERITY_OF(PARTITION_ROOT_OF_ARCH(architecture)); in dissect_image()
639 if (verity->designator >= 0 && verity->designator != PARTITION_ROOT) in dissect_image()
645 … designator = PARTITION_VERITY_SIG_OF(PARTITION_ROOT_OF_ARCH(architecture)); in dissect_image()
661 designator = PARTITION_USR_OF_ARCH(architecture); in dissect_image()
676 if (verity->designator >= 0 && verity->designator != PARTITION_USR) in dissect_image()
684 … designator = PARTITION_VERITY_OF(PARTITION_USR_OF_ARCH(architecture)); in dissect_image()
700 if (verity->designator >= 0 && verity->designator != PARTITION_USR) in dissect_image()
706 … designator = PARTITION_VERITY_SIG_OF(PARTITION_USR_OF_ARCH(architecture)); in dissect_image()
717 designator = PARTITION_SWAP; in dissect_image()
745 designator = PARTITION_TMP; in dissect_image()
777 designator = PARTITION_VAR; in dissect_image()
782 if (designator != _PARTITION_DESIGNATOR_INVALID) { in dissect_image()
786 if (m->partitions[designator].found) { in dissect_image()
792 if (!PARTITION_DESIGNATOR_VERSIONED(designator) || in dissect_image()
793 … strverscmp_improved(m->partitions[designator].label, label) >= 0) in dissect_image()
796 dissected_partition_done(m->partitions + designator); in dissect_image()
815 options = mount_options_from_designator(mount_options, designator); in dissect_image()
822 m->partitions[designator] = (DissectedPartition) { in dissect_image()
1049 (!verity || !verity->root_hash || verity->designator != PARTITION_USR)) { in dissect_image()
1106 if (verity->designator >= 0 && !m->partitions[verity->designator].found) in dissect_image()
1113 if (verity->designator < 0 || verity->designator == PARTITION_ROOT) { in dissect_image()
1122 assert(verity->designator == PARTITION_USR); in dissect_image()
1134 …} else if (m->partitions[verity->designator == PARTITION_USR ? PARTITION_USR_VERITY_SIG : PARTITIO… in dissect_image()
1139 … m->partitions[verity->designator == PARTITION_USR ? PARTITION_USR : PARTITION_ROOT].rw = false; in dissect_image()
1946 PartitionDesignator designator, in verity_partition() argument
1963 if (!((verity->designator < 0 && designator == PARTITION_ROOT) || in verity_partition()
1964 (verity->designator == designator))) in verity_partition()
2024 … return verity_partition(designator, m, v, verity, flags & ~DISSECT_IMAGE_VERITY_SHARE, d); in verity_partition()
2050 … return verity_partition(designator, m, v, verity, flags & ~DISSECT_IMAGE_VERITY_SHARE, d); in verity_partition()
2078 … return verity_partition(designator, m, v, verity, flags & ~DISSECT_IMAGE_VERITY_SHARE, d); in verity_partition()
2265 PartitionDesignator designator; in verity_settings_load() local
2270 assert(verity->designator < 0 || IN_SET(verity->designator, PARTITION_ROOT, PARTITION_USR)); in verity_settings_load()
2282 designator = verity->designator; in verity_settings_load()
2295 if (designator < 0) in verity_settings_load()
2296 designator = PARTITION_ROOT; in verity_settings_load()
2301 if (designator < 0 || designator == PARTITION_ROOT) { in verity_settings_load()
2319 designator = PARTITION_ROOT; in verity_settings_load()
2322 if (!text && (designator < 0 || designator == PARTITION_USR)) { in verity_settings_load()
2348 designator = PARTITION_USR; in verity_settings_load()
2367 if (designator < 0) in verity_settings_load()
2368 designator = PARTITION_ROOT; in verity_settings_load()
2370 if (designator < 0 || designator == PARTITION_ROOT) { in verity_settings_load()
2383 designator = PARTITION_ROOT; in verity_settings_load()
2386 if (!root_hash_sig && (designator < 0 || designator == PARTITION_USR)) { in verity_settings_load()
2397 designator = PARTITION_USR; in verity_settings_load()
2432 if (verity->designator < 0) in verity_settings_load()
2433 verity->designator = designator; in verity_settings_load()
2467 d = PARTITION_VERITY_SIG_OF(verity->designator < 0 ? PARTITION_ROOT : verity->designator); in dissected_image_load_verity_sig_partition()
2937 … char* mount_options_from_designator(const MountOptions *options, PartitionDesignator designator) { in mount_options_from_designator() argument
2939 if (designator == m->partition_designator && !isempty(m->options)) in mount_options_from_designator()