core: ensure all types from execute.h start with Exec

Until very recently all types defined by execute.h started with "Exec"
in the name. I think that was useful, since it made clear that the types
are associated with the ExecContext infrastructure. Let's hence restore
this.

(If we every move these types out of execute.h we should drop the "Exec"
prefix again. But today is not that day.)

No real code changes, just dumb renaming.
This commit is contained in:
Lennart Poettering
2026-04-28 12:37:21 +01:00
committed by Luca Boccassi
parent e596867ed6
commit 37c272228d
10 changed files with 44 additions and 44 deletions
+7 -7
View File
@@ -1143,7 +1143,7 @@ void exec_context_dump(const ExecContext *c, FILE* f, const char *prefix) {
prefix, protect_hostname_to_string(c->protect_hostname), c->private_hostname ? ":" : "", strempty(c->private_hostname),
prefix, protect_proc_to_string(c->protect_proc),
prefix, proc_subset_to_string(c->proc_subset),
prefix, memory_thp_to_string(c->memory_thp),
prefix, exec_memory_thp_to_string(c->memory_thp),
prefix, private_bpf_to_string(c->private_bpf));
if (c->private_bpf == PRIVATE_BPF_YES) {
@@ -3146,11 +3146,11 @@ static const char* const exec_keyring_mode_table[_EXEC_KEYRING_MODE_MAX] = {
DEFINE_STRING_TABLE_LOOKUP(exec_keyring_mode, ExecKeyringMode);
static const char* const memory_thp_table[_MEMORY_THP_MAX] = {
[MEMORY_THP_INHERIT] = "inherit",
[MEMORY_THP_DISABLE] = "disable",
[MEMORY_THP_MADVISE] = "madvise",
[MEMORY_THP_SYSTEM] = "system",
static const char* const exec_memory_thp_table[_EXEC_MEMORY_THP_MAX] = {
[EXEC_MEMORY_THP_INHERIT] = "inherit",
[EXEC_MEMORY_THP_DISABLE] = "disable",
[EXEC_MEMORY_THP_MADVISE] = "madvise",
[EXEC_MEMORY_THP_SYSTEM] = "system",
};
DEFINE_STRING_TABLE_LOOKUP(memory_thp, MemoryTHP);
DEFINE_STRING_TABLE_LOOKUP(exec_memory_thp, ExecMemoryTHP);