[Rpm-maint] [rpm-software-management/rpm] install-time data API (Discussion #3874)
Hank Donnay
notifications at github.com
Mon Sep 29 16:24:39 UTC 2025
Here's what I've sketched out for an allowlist mechanism:
1. Grab some bits in the `rpmTagType` type for some flags (e.g. `#define RPM_MASK_TYPEFLAG 0x00ff0000`) and define one flag: `RPM_AUX_TYPEFLAG` that indicates the tag is only valid in an auxiliary header.
1. Create `rpmTagType_e` values that are all the defined types with the new typeflag OR'd.
1. Ensure checks against `RPM_MIN_TYPE`/`RPM_MAX_TYPE` mask the value first.
1. Update the `gentagtbl.sh` script to recognize an `auxiliary` argument that selects the correct "aux-allowed" value.
1. Update the `PACKAGEDIGESTS`/`PACKAGEDIGESTALGOS` definitions to have the new argument.
1. Update `lib/psm.cc`'s `mergeAux` function to check for the typeflag and ignore it if absent.
--
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/discussions/3874#discussioncomment-14543990
You are receiving this because you are subscribed to this thread.
Message ID: <rpm-software-management/rpm/repo-discussions/3874/comments/14543990 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20250929/b1190ced/attachment-0001.htm>
More information about the Rpm-maint
mailing list