mirror of
https://github.com/morgan9e/systemd
synced 2026-04-15 00:47:10 +09:00
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:
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user