diff options
author | Lennart Poettering <lennart@poettering.net> | 2017-09-10 12:16:44 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2017-09-14 15:17:40 +0200 |
commit | 00819cc15124addfa2c0d8a5d13ad3eebd009d60 (patch) | |
tree | a8b8b847cb89145015bb4aa32f2802dc691b54d6 /src/core/load-fragment.h | |
parent | rules: ubi mtd - add link to named partitions (#6750) (diff) | |
download | systemd-00819cc15124addfa2c0d8a5d13ad3eebd009d60.tar.gz systemd-00819cc15124addfa2c0d8a5d13ad3eebd009d60.tar.bz2 systemd-00819cc15124addfa2c0d8a5d13ad3eebd009d60.zip |
core: add new UnsetEnvironment= setting for unit files
With this setting we can explicitly unset specific variables for
processes of a unit, as last step of assembling the environment block
for them. This is useful to fix #6407.
While we are at it, greatly expand the documentation on how the
environment block for forked off processes is assembled.
Diffstat (limited to 'src/core/load-fragment.h')
-rw-r--r-- | src/core/load-fragment.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/core/load-fragment.h b/src/core/load-fragment.h index ec338ccb9..49b3b405d 100644 --- a/src/core/load-fragment.h +++ b/src/core/load-fragment.h @@ -79,6 +79,7 @@ int config_parse_syscall_archs(const char *unit, const char *filename, unsigned int config_parse_syscall_errno(const char *unit, const char *filename, unsigned line, const char *section, unsigned section_line, const char *lvalue, int ltype, const char *rvalue, void *data, void *userdata); int config_parse_environ(const char *unit, const char *filename, unsigned line, const char *section, unsigned section_line, const char *lvalue, int ltype, const char *rvalue, void *data, void *userdata); int config_parse_pass_environ(const char *unit, const char *filename, unsigned line, const char *section, unsigned section_line, const char *lvalue, int ltype, const char *rvalue, void *data, void *userdata); +int config_parse_unset_environ(const char *unit, const char *filename, unsigned line, const char *section, unsigned section_line, const char *lvalue, int ltype, const char *rvalue, void *data, void *userdata); int config_parse_unit_slice(const char *unit, const char *filename, unsigned line, const char *section, unsigned section_line, const char *lvalue, int ltype, const char *rvalue, void *data, void *userdata); int config_parse_cpu_weight(const char *unit, const char *filename, unsigned line, const char *section, unsigned section_line, const char *lvalue, int ltype, const char *rvalue, void *data, void *userdata); int config_parse_cpu_shares(const char *unit, const char *filename, unsigned line, const char *section, unsigned section_line, const char *lvalue, int ltype, const char *rvalue, void *data, void *userdata); |