core: make ProtectHostname= optionally take a hostname

Closes #35623.
This commit is contained in:
Yu Watanabe
2024-12-16 23:55:44 +09:00
parent 0d298a771a
commit e76fcd0e40
11 changed files with 208 additions and 27 deletions
+1
View File
@@ -337,6 +337,7 @@ struct ExecContext {
ProtectHome protect_home;
PrivatePIDs private_pids;
ProtectHostname protect_hostname;
char *private_hostname;
bool dynamic_user;
bool remove_ipc;