summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2015-11-02string-util: rework memory_erase() so that it cannot be optimized awayLennart Poettering
memory_erase() so far just called memset(), which the compiler might optimize away under certain conditions if it feels there's benefit in it. C11 knows a new memset_s() call that is like memset(), but may not be optimized away. Ideally, we'd just use that call, but glibc currently does not support it. Hence, implement our own simplistic version of it. We use a GCC pragma to turn off optimization for this call, and also use the "volatile" keyword on the pointers to ensure that gcc will use the pointers as-is. According to a variety of internet sources, either one does the trick. However, there are also reports that at least the volatile thing isn't fully correct, hence let's add some snake oil and employ both techniques. https://news.ycombinator.com/item?id=4711346
2015-11-02Merge pull request #1690 from evverx/run-runtime-directoryLennart Poettering
systemd-run can launch units with RuntimeDirectory
2015-11-02Merge pull request #1736 from ronnychevalier/rc/test_execute_more_tests2Lennart Poettering
test-execute: add more tests
2015-11-02Merge pull request #1753 from fbuihuu/teach-delegate-for-runtimeLennart Poettering
Teach bus_append_unit_property_assignment() about 'Delegate' property
2015-11-02Merge pull request #1755 from ssahani/word-systemctlLennart Poettering
systemctl: port to extract_first_word
2015-11-02systemctl: port to extract_first_wordSusant Sahani
2015-11-02Merge pull request #1751 from ssahani/word-machineDaniel Mack
machine: fix #1739
2015-11-02Teach bus_append_unit_property_assignment() about 'Delegate' propertyFranck Bui
2015-11-02machine: fix extract_first_wordSusant Sahani
2015-11-02Merge pull request #1722 from evverx/port-cap-bounding-set-to-extract-first-wordDaniel Mack
Port capabiliy bounding set parsing to extract_first_word
2015-11-02Merge pull request #1750 from systemd/revert-1740-masterDaniel Mack
Revert "utf8.[ch]: use char32_t and char16_t instead of int, int32_t,…
2015-11-02Merge pull request #1725 from ssahani/word-journalDaniel Mack
sd-journal.c: port to extract_first_word
2015-11-02Revert "utf8.[ch]: use char32_t and char16_t instead of int, int32_t, int16_t"Lennart Poettering
2015-11-02Merge pull request #1739 from ssahani/word-machineDaniel Mack
machine: : port to extract_first_word
2015-11-02Merge pull request #1740 from shawnl/masterDaniel Mack
utf8.[ch]: use char32_t and char16_t instead of int, int32_t, int16_t
2015-11-02Merge pull request #1738 from evverx/fix-paths-lookup-testDaniel Mack
tests: lookup_paths_init depends on SYSTEMD_UNIT_PATH. Test it
2015-11-02Merge pull request #1749 from zonque/cmsgLennart Poettering
core: two trivial debug/error message improvements
2015-11-02Merge pull request #1711 from mustrumr/network-use-after-freeDaniel Mack
network: fix use-after-free in link_free
2015-11-02Merge pull request #1748 from karelzak/todoDaniel Mack
update TODO
2015-11-02core: be more verbose when NameOwnerChanged subscriptions failDaniel Mack
2015-11-02core: service: fix error messageDaniel Mack
The directive is called FileDescriptorStoreMax=, not FDStoreMax=.
2015-11-02Merge pull request #1745 from poettering/journal-deadlockDaniel Mack
Make sure journald never blocks on sd_notify() to PID 1
2015-11-02update TODOKarel Zak
- inotify utab has been removed and we use libmount now - x-systemd.requires= fstab option has been implemented to specify dependencies in fstab
2015-11-01journal-remote: remove unused variable warning when building without GNUTLS.Lennart Poettering
2015-11-01journald: never block when sending messages on NOTIFY_SOCKET socketLennart Poettering
Otherwise we might run into deadlocks, when journald blocks on the notify socket on PID 1, and PID 1 blocks on IPC to dbus-daemon and dbus-daemon blocks on logging to journald. Break this cycle by making sure that journald never ever blocks on PID 1. Note that this change disables support for event loop watchdog support, as these messages are sent in blocking style by sd-event. That should not be a big loss though, as people reported frequent problems with the watchdog hitting journald on excessively slow IO. Fixes: #1505.
2015-11-01sd-daemon: verify NOTIFY_SOCKET path lengthLennart Poettering
Better generate a real error then simply connect to the wrong socket.
2015-10-31utf8.[ch]: use char32_t and char16_t instead of int, int32_t, int16_tShawn Landden
rework C11 utf8.[ch] to use char32_t instead of uint32_t when referring to unicode chars, to make things more expressive.
2015-11-01machine: : port to extract_first_wordSusant Sahani
2015-11-01sd-journal.c: port to extract_first_wordSusant Sahani
2015-10-31man: MANAGER_SYSTEM understands SYSTEMD_UNIT_PATH tooEvgeny Vereshchagin
2015-10-31tests: lookup_paths_init depends on SYSTEMD_UNIT_PATH. Test itEvgeny Vereshchagin
2015-10-31sd-daemon: increase sd_notify() socket buffer sizeLennart Poettering
Let's make sure we don't start blocking on sd_notify() earlier than necessary, let's bump the socket buffer sizes to 8M. We already do something similar for our logging socket buffers, hence apply a similar bump here.
2015-10-31sysctl.d: bump number of queueable AF_UNIX/SOCK_DGRAM datagramsLennart Poettering
The default of 16 is pretty low, let's bump this to accomodate for more queued datagrams. This is useful for AF_UNIX/SOCK_DGRAM logging and sd_notify() sockets as this allows queuing more datagrams before things start to block, thus improving parallelization and logging performance.
2015-10-31sysv-generator: modernizeLennart Poettering
- Make sure we log each error at least once, and at most once - Replace FOREACH_WORD loops by extract_first_word() loops - Use FOREACH_DIRENT() for directory loops - Use free_and_strdup() where appropriate - Do not operate on half-loaded SysV files - Always properly free all memory
2015-10-31core: bail our earlier when doing auditLennart Poettering
Let's make sure we don't even try to create the audit socket
2015-10-31core,nspawn: minor coding style fixesLennart Poettering
2015-10-31nspawn: fix minor memory leakLennart Poettering
When rebooting nspawn containers about 400 times we'd otherwise hit the fd limit and refuse further reboots.
2015-10-31core: constify a few thingsLennart Poettering
2015-10-31systemctl: add a way to explicitly request client-side unit installingLennart Poettering
This adds support for a new environment variable SYSTEMCTL_INSTALL_CLIENT_SIDE, that ensures that systemctl executes install operations client-side instead of passing them to PID1. This is useful in debugging situations, but even beyond that. However, we don't want to make it official API, hence let's just make it an undocumented environment variable. Similar, add a second variable, SYSTEMCTL_SKIP_SYSV which allows skipping the SysV chkconfig fall-back if set. This is useful for similar reasons, and exposed as undocumented as environment variable for similar reasons, too.
2015-10-31Merge pull request #1734 from evverx/overwrite-sysemd-unit-pathRonny Chevalier
core: set_unit_path overwrites SYSTEMD_UNIT_PATH
2015-10-31test-path: move all related test files to a specific directoryRonny Chevalier
To avoid polluting test/
2015-10-31test-execute: move all files related to a specific directoryRonny Chevalier
To avoid polluting test/
2015-10-31build-sys: add missing test files to EXTRA_DISTRonny Chevalier
2015-10-31test-execute: add tests for IOSchedulingClassRonny Chevalier
2015-10-31test-execute: add tests for OOMScoreAdjustRonny Chevalier
2015-10-31test-execute: add test for EnvironmentFileRonny Chevalier
2015-10-31test-execute: add test for PrivateNetworkRonny Chevalier
2015-10-31core: set_unit_path overwrites SYSTEMD_UNIT_PATHEvgeny Vereshchagin
2015-10-30core: port config_parse_bounding_set to extract_first_wordEvgeny Vereshchagin
2015-10-30Merge pull request #1729 from endocode/dongsu/jr-mhd-memlimit-v3Lennart Poettering
journal-remote: increase memory limit per connection to avoid errors …