From d2c1242c6d08a1a5deb8eccea4833f43234df010 Mon Sep 17 00:00:00 2001 From: Daan De Meyer Date: Sun, 23 Mar 2025 22:52:10 +0100 Subject: [PATCH] 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. --- src/shared/user-record.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/shared/user-record.h b/src/shared/user-record.h index 139651714b0..75f50ae347e 100644 --- a/src/shared/user-record.h +++ b/src/shared/user-record.h @@ -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 */ -- 2.47.3