core/execute: remove unused ExecParameters.cgroup_supported

Follow-up for 188286eec6
This commit is contained in:
Mike Yuan
2025-10-30 16:12:13 +01:00
parent a79d2e47fc
commit 2fd2d8d575
4 changed files with 0 additions and 17 deletions
-13
View File
@@ -1121,12 +1121,6 @@ static int exec_parameters_serialize(const ExecParameters *p, const ExecContext
if (r < 0)
return r;
if (p->cgroup_supported != 0) {
r = serialize_item_format(f, "exec-parameters-cgroup-supported", "%u", (unsigned) p->cgroup_supported);
if (r < 0)
return r;
}
r = serialize_item(f, "exec-parameters-cgroup-path", p->cgroup_path);
if (r < 0)
return r;
@@ -1350,13 +1344,6 @@ static int exec_parameters_deserialize(ExecParameters *p, FILE *f, FDSet *fds) {
return r;
p->selinux_context_net = r;
} else if ((val = startswith(l, "exec-parameters-cgroup-supported="))) {
unsigned cgroup_supported;
r = safe_atou(val, &cgroup_supported);
if (r < 0)
return r;
p->cgroup_supported = cgroup_supported;
} else if ((val = startswith(l, "exec-parameters-cgroup-path="))) {
r = free_and_strdup(&p->cgroup_path, val);
if (r < 0)
-2
View File
@@ -1048,7 +1048,6 @@ void exec_params_dump(const ExecParameters *p, FILE* f, const char *prefix) {
"%sRuntimeScope: %s\n"
"%sExecFlags: %u\n"
"%sSELinuxContextNetwork: %s\n"
"%sCgroupSupportedMask: %u\n"
"%sCgroupPath: %s\n"
"%sCrededentialsDirectory: %s\n"
"%sEncryptedCredentialsDirectory: %s\n"
@@ -1061,7 +1060,6 @@ void exec_params_dump(const ExecParameters *p, FILE* f, const char *prefix) {
prefix, runtime_scope_to_string(p->runtime_scope),
prefix, p->flags,
prefix, yes_no(p->selinux_context_net),
prefix, p->cgroup_supported,
prefix, p->cgroup_path,
prefix, strempty(p->received_credentials_directory),
prefix, strempty(p->received_encrypted_credentials_directory),
-1
View File
@@ -402,7 +402,6 @@ typedef struct ExecParameters {
ExecFlags flags;
bool selinux_context_net:1;
CGroupMask cgroup_supported;
char *cgroup_path;
uint64_t cgroup_id;
-1
View File
@@ -5506,7 +5506,6 @@ int unit_set_exec_params(Unit *u, ExecParameters *p) {
if (r < 0)
return r;
p->cgroup_supported = u->manager->cgroup_supported;
p->prefix = u->manager->prefix;
SET_FLAG(p->flags, EXEC_PASS_LOG_UNIT|EXEC_CHOWN_DIRECTORIES, MANAGER_IS_SYSTEM(u->manager));