Age | Commit message (Collapse) | Author | |
---|---|---|---|
2015-11-11 | execute: Add new PassEnvironment= directive | Filipe Brandenburger | |
This directive allows passing environment variables from the system manager to spawned services. Variables in the system manager can be set inside a container by passing `--set-env=...` options to systemd-spawn. Tested with an on-disk test.service unit. Tested using multiple variable names on a single line, with an empty setting to clear the current list of variables, with non-existing variables. Tested using `systemd-run -p PassEnvironment=VARNAME` to confirm it works with transient units. Confirmed that `systemctl show` will display the PassEnvironment settings. Checked that man pages are generated correctly. No regressions in `make check`. | |||
2015-11-10 | defs: rework CONF_DIRS_NULSTR() macro | Lennart Poettering | |
The macro is generically useful for putting together search paths, hence let's make it truly generic, by dropping the implicit ".d" appending it does, and leave that to the caller. Also rename it from CONF_DIRS_NULSTR() to CONF_PATHS_NULSTR(), since it's not strictly about dirs that way, but any kind of file system path. Also, mark CONF_DIR_SPLIT_USR() as internal macro by renaming it to _CONF_PATHS_SPLIT_USR() so that the leading underscore indicates that it's internal. | |||
2015-11-09 | conf-parser: use extract_first_word | David Reynolds | |
2015-11-09 | Merge pull request #1820 from michich/errno-v2 | Daniel Mack | |
[v2] treewide: treatment of errno and other cleanups | |||
2015-11-09 | treewide: apply errno.cocci | Michal Schmidt | |
with small manual cleanups for style. | |||
2015-11-06 | doc: correct orthography, word forms and missing/extraneous words | Jan Engelhardt | |
2015-11-05 | treewide: use the negative error codes returned by our functions | Michal Schmidt | |
Our functions return negative error codes. Do not rely on errno being set after calling our own functions. | |||
2015-11-03 | util-lib: move CONF_DIRS_NULSTR definition to def.h | Lennart Poettering | |
After all, this is not some compiler or C magic, but something very specific to how systemd works, hence let's move it into def.h, and out of macro.h | |||
2015-11-02 | Merge pull request #1690 from evverx/run-runtime-directory | Lennart Poettering | |
systemd-run can launch units with RuntimeDirectory | |||
2015-11-02 | Teach bus_append_unit_property_assignment() about 'Delegate' property | Franck Bui | |
2015-10-31 | nspawn: fix minor memory leak | Lennart Poettering | |
When rebooting nspawn containers about 400 times we'd otherwise hit the fd limit and refuse further reboots. | |||
2015-10-28 | install: port to extract_first_word | Susant Sahani | |
2015-10-27 | process-util: move a couple of process-related calls over | Lennart Poettering | |
2015-10-27 | util-lib: split out allocation calls into alloc-util.[ch] | Lennart Poettering | |
2015-10-27 | util-lib: split out globbing related calls into glob-util.[ch] | Lennart Poettering | |
2015-10-27 | util-lib: split out printf() helpers to stdio-util.h | Lennart Poettering | |
2015-10-27 | user-util: move UID/GID related macros from macro.h to user-util.h | Lennart Poettering | |
2015-10-27 | util-lib: split out syslog-related calls into syslog-util.[ch] | Lennart Poettering | |
2015-10-27 | util-lib: move /proc/cmdline parsing code to proc-cmdline.[ch] | Lennart Poettering | |
2015-10-27 | src/basic: rename audit.[ch] → audit-util.[ch] and capability.[ch] → ↵ | Lennart Poettering | |
capability-util.[ch] The files are named too generically, so that they might conflict with the upstream project headers. Hence, let's add a "-util" suffix, to clarify that this are just our utility headers and not any official upstream headers. | |||
2015-10-27 | util-lib: split out umask-related code to umask-util.h | Lennart Poettering | |
2015-10-27 | util-lib: move more locale-related calls to locale-util.[ch] | Lennart Poettering | |
2015-10-27 | util-lib: move string table stuff into its own string-table.[ch] | Lennart Poettering | |
2015-10-27 | util-lib: split stat()/statfs()/stavfs() related calls into stat-util.[ch] | Lennart Poettering | |
2015-10-27 | util-lib: move a number of fs operations into fs-util.[ch] | Lennart Poettering | |
2015-10-27 | util-lib: split out file attribute calls to chattr-util.[ch] | Lennart Poettering | |
2015-10-27 | util-lib: split xattr-related calls into xattr-util.[ch] | Lennart Poettering | |
2015-10-27 | util-lib: introduce dirent-util.[ch] for directory entry calls | Lennart Poettering | |
Also, move a couple of more path-related functions to path-util.c. | |||
2015-10-27 | util-lib: split out resource limits related calls into rlimit-util.[ch] | Lennart Poettering | |
2015-10-27 | util: move filename_is_valid() and path_is_safe() to path-util.[ch] | Lennart Poettering | |
2015-10-27 | util-lib: move mount related utility calls to mount-util.[ch] | Lennart Poettering | |
2015-10-27 | util-lib: move fstab_node_to_udev_node() to fstab-util.[ch] | Lennart Poettering | |
2015-10-27 | util-lib: move more file I/O related calls into fileio.[ch] | Lennart Poettering | |
2015-10-27 | util: remove path_get_parent(), in favour of dirname_malloc() | Lennart Poettering | |
We don't need two functions that do essentialy the same, hence drop path_get_parent(), and stick to dirname_malloc(), but move it to path-util.[ch]. | |||
2015-10-27 | util-lib: split out hex/dec/oct encoding/decoding into its own file | Lennart Poettering | |
2015-10-27 | util-lib: split string parsing related calls from util.[ch] into parse-util.[ch] | Lennart Poettering | |
2015-10-27 | run: can launch units with RuntimeDirectory | Evgeny Vereshchagin | |
2015-10-26 | Merge pull request #1676 from poettering/util-lib-2 | Tom Gundersen | |
split up util.[ch] into more pieces, and other stuff | |||
2015-10-26 | util-lib: split out user/group/uid/gid calls into user-util.[ch] | Lennart Poettering | |
2015-10-26 | util-lib: split out IO related calls to io-util.[ch] | Lennart Poettering | |
2015-10-26 | run: can launch units with ProtectHome | Evgeny Vereshchagin | |
2015-10-25 | Merge pull request #1654 from poettering/util-lib | Tom Gundersen | |
Various changes to src/basic/ | |||
2015-10-25 | util-lib: move formats-util.h from shared/ to basic/ | Lennart Poettering | |
It's only a header file, definining format strings for basic system types, hence it should be in src/basic/, not src/shared/. | |||
2015-10-25 | util-lib: split out fd-related operations into fd-util.[ch] | Lennart Poettering | |
There are more than enough to deserve their own .c file, hence move them over. | |||
2015-10-24 | run: can launch units with ProtectSystem | Evgeny Vereshchagin | |
2015-10-24 | util-lib: split our string related calls from util.[ch] into its own file ↵ | Lennart Poettering | |
string-util.[ch] There are more than enough calls doing string manipulations to deserve its own files, hence do something about it. This patch also sorts the #include blocks of all files that needed to be updated, according to the sorting suggestions from CODING_STYLE. Since pretty much every file needs our string manipulation functions this effectively means that most files have sorted #include blocks now. Also touches a few unrelated include files. | |||
2015-10-24 | util: split out escaping code into escape.[ch] | Lennart Poettering | |
This really deserves its own file, given how much code this is now. | |||
2015-10-24 | util: split out extract_first_word() and related calls into extract-word.[ch] | Lennart Poettering | |
This is quite a lot of code these days, hence move it to its own source file. | |||
2015-10-24 | util-lib: get_current_dir_name() can return errors other than ENOMEM | Lennart Poettering | |
get_current_dir_name() can return a variety of errors, not just ENOMEM, hence don't blindly turn its errors to ENOMEM, but return correct errors in path_make_absolute_cwd(). This trickles down into a couple of other functions, some of which receive unrelated minor fixes too with this commit. | |||
2015-10-24 | path-util: rework find_binary(), fsck_exists() and mkfs_exists() | Lennart Poettering | |
Modernize the code a bit: - Get rid of FOREACH_WORD_SEPARATOR() loop in favour of a extract_first_word() loop. - Remove find_binary()'s "local" flag. It's not reasonably possible to look for binaries on remote systems, we hence should not pretend we could. - When we cannot find a suitable binary, return the last error returned from access() rather than ENOENT unconditionally. - Rework fsck_exists() and mkfs_exists() to return 1 on success, 0 if the implementation is missing and negative on real errors. This is more like we do it in other functions. - Make sure we also detect direct fsck symlinks to "true", rather than just absolute ones to /bin/true. |