user-record: Allow/strip status for mask/extract privileged helpers

If we're using these helpers, we want to split a user record into two,
one with the privileged section, and one without. This should work even
when the user record has a "status" section, so adapt the helpers to
account for that.
This commit is contained in:
Daan De Meyer
2025-03-23 22:52:10 +01:00
parent c88adbc01d
commit d2c1242c6d

View File

@@ -136,12 +136,14 @@ typedef enum UserRecordLoadFlags {
USER_RECORD_STRIP_PRIVILEGED|
USER_RECORD_ALLOW_PER_MACHINE|
USER_RECORD_ALLOW_BINDING|
USER_RECORD_ALLOW_STATUS|
USER_RECORD_ALLOW_SIGNATURE,
USER_RECORD_EXTRACT_PRIVILEGED = USER_RECORD_STRIP_REGULAR|
USER_RECORD_ALLOW_PRIVILEGED|
USER_RECORD_STRIP_PER_MACHINE|
USER_RECORD_STRIP_BINDING|
USER_RECORD_STRIP_STATUS|
USER_RECORD_STRIP_SIGNATURE,
/* Whether to log about loader errors beyond LOG_DEBUG */