summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Revert "utf8.[ch]: use char32_t and char16_t instead of int, int32_t, int16_t"revert-1740-masterLennart Poettering2015-11-027-37/+36
|
* Merge pull request #1739 from ssahani/word-machineDaniel Mack2015-11-021-6/+13
|\ | | | | machine: : port to extract_first_word
| * machine: : port to extract_first_wordSusant Sahani2015-11-011-6/+13
| |
* | Merge pull request #1740 from shawnl/masterDaniel Mack2015-11-027-36/+37
|\ \ | | | | | | utf8.[ch]: use char32_t and char16_t instead of int, int32_t, int16_t
| * | utf8.[ch]: use char32_t and char16_t instead of int, int32_t, int16_tShawn Landden2015-10-317-36/+37
| |/ | | | | | | | | rework C11 utf8.[ch] to use char32_t instead of uint32_t when referring to unicode chars, to make things more expressive.
* | Merge pull request #1738 from evverx/fix-paths-lookup-testDaniel Mack2015-11-022-10/+17
|\ \ | | | | | | tests: lookup_paths_init depends on SYSTEMD_UNIT_PATH. Test it
| * | man: MANAGER_SYSTEM understands SYSTEMD_UNIT_PATH tooEvgeny Vereshchagin2015-10-311-4/+2
| | |
| * | tests: lookup_paths_init depends on SYSTEMD_UNIT_PATH. Test itEvgeny Vereshchagin2015-10-311-6/+15
| |/
* | Merge pull request #1749 from zonque/cmsgLennart Poettering2015-11-023-3/+3
|\ \ | | | | | | core: two trivial debug/error message improvements
| * | core: be more verbose when NameOwnerChanged subscriptions failDaniel Mack2015-11-022-2/+2
| | |
| * | core: service: fix error messageDaniel Mack2015-11-021-1/+1
| | | | | | | | | | | | The directive is called FileDescriptorStoreMax=, not FDStoreMax=.
* | | Merge pull request #1711 from mustrumr/network-use-after-freeDaniel Mack2015-11-021-3/+3
|\ \ \ | | | | | | | | network: fix use-after-free in link_free
| * | | network: fix use-after-free in link_freeHristo Venev2015-10-291-3/+3
| | | | | | | | | | | | | | | | | | | | Freeing a link removes it both from addresses and addresses_foreign, causing SIGSEGV if one of the sets is freed.
* | | | Merge pull request #1748 from karelzak/todoDaniel Mack2015-11-021-5/+0
|\ \ \ \ | |_|/ / |/| | | update TODO
| * | | update TODOKarel Zak2015-11-021-5/+0
| | |/ | |/| | | | | | | | | | | | | - inotify utab has been removed and we use libmount now - x-systemd.requires= fstab option has been implemented to specify dependencies in fstab
* | | Merge pull request #1745 from poettering/journal-deadlockDaniel Mack2015-11-0218-265/+498
|\ \ \ | |/ / |/| | Make sure journald never blocks on sd_notify() to PID 1
| * | journal-remote: remove unused variable warning when building without GNUTLS.Lennart Poettering2015-11-011-2/+1
| | |
| * | journald: never block when sending messages on NOTIFY_SOCKET socketLennart Poettering2015-11-016-22/+202
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
| * | sd-daemon: verify NOTIFY_SOCKET path lengthLennart Poettering2015-11-011-0/+5
| | | | | | | | | | | | Better generate a real error then simply connect to the wrong socket.
| * | sd-daemon: increase sd_notify() socket buffer sizeLennart Poettering2015-10-312-0/+8
| | | | | | | | | | | | | | | | | | | | | | | | 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.
| * | sysctl.d: bump number of queueable AF_UNIX/SOCK_DGRAM datagramsLennart Poettering2015-10-311-0/+3
| | | | | | | | | | | | | | | | | | | | | 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.
| * | sysv-generator: modernizeLennart Poettering2015-10-311-228/+248
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - 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
| * | core: bail our earlier when doing auditLennart Poettering2015-10-311-3/+3
| | | | | | | | | | | | Let's make sure we don't even try to create the audit socket
| * | core,nspawn: minor coding style fixesLennart Poettering2015-10-312-6/+3
| | |
| * | nspawn: fix minor memory leakLennart Poettering2015-10-311-0/+1
| | | | | | | | | | | | | | | When rebooting nspawn containers about 400 times we'd otherwise hit the fd limit and refuse further reboots.
| * | core: constify a few thingsLennart Poettering2015-10-313-4/+4
| | |
| * | systemctl: add a way to explicitly request client-side unit installingLennart Poettering2015-10-313-0/+20
|/ / | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | Merge pull request #1734 from evverx/overwrite-sysemd-unit-pathRonny Chevalier2015-10-311-1/+1
|\ \ | | | | | | core: set_unit_path overwrites SYSTEMD_UNIT_PATH
| * | core: set_unit_path overwrites SYSTEMD_UNIT_PATHEvgeny Vereshchagin2015-10-311-1/+1
|/ /
* | Merge pull request #1729 from endocode/dongsu/jr-mhd-memlimit-v3Lennart Poettering2015-10-301-1/+2
|\ \ | | | | | | journal-remote: increase memory limit per connection to avoid errors …
| * | journal-remote: increase memory limit per connection to avoid errors with HTTPSDongsu Park2015-10-301-1/+2
|/ / | | | | | | | | | | | | | | | | | | | | | | | | | | Explicitly set MHD_OPTION_CONNECTION_MEMORY_LIMIT to a larger value, when setting up microhttpd, to give more memory per HTTP(S) connection. This way systemd-journal-remote can now prevent microhttpd from failing in creating response headers with messages like "Not enough memory for write", especially when lots of HTTPS requests arrive. That's precisely because MHD_OPTION_CONNECTION_MEMORY_LIMIT in libmicrohttpd defaults to 32768, which is in practice insufficient in this case. See also https://gnunet.org/bugs/view.php?id=4007 for more details. Fixes: https://github.com/coreos/bugs/issues/927
* | Merge pull request #1720 from evverx/shell-completion-global-modeDaniel Mack2015-10-301-0/+2
|\ \ | | | | | | shell-completion: systemctl: show completions for `user` in `global` …
| * | shell-completion: systemctl: show completions for `user` in `global` modeEvgeny Vereshchagin2015-10-301-0/+2
| | |
* | | hwdb: Update database of Bluetooth company identifiersMarcel Holtmann2015-10-301-0/+84
|/ /
* | Merge pull request #1709 from evverx/set-location-completionDaniel Mack2015-10-291-1/+1
|\ \ | | | | | | shell-completion: hostnamectl: add the command set-location
| * | shell-completion: hostnamectl: add the command set-locationEvgeny Vereshchagin2015-10-291-1/+1
| |/
* | Merge pull request #1717 from ronnychevalier/rc/test_capabilityboundingset2Daniel Mack2015-10-295-2/+53
|\ \ | | | | | | test: add tests to ensure that the capabilities are properly set
| * | test: add tests to ensure that the capabilities are properly setRonny Chevalier2015-10-295-2/+53
|/ /
* | Merge pull request #1713 from evverx/test-cap-bounding-set-mergingRonny Chevalier2015-10-292-1/+47
|\ \ | |/ |/| Another fix of the CapabilityBoundingSet parsing
| * core: fix capability bounding set parsingEvgeny Vereshchagin2015-10-291-1/+1
| | | | | | | | bug: CapabilityBoundingSet= doesn't reset all caps
| * test: add test for capability bounding set parsingEvgeny Vereshchagin2015-10-291-0/+46
|/
* Merge pull request #1700 from ssahani/wordLennart Poettering2015-10-283-24/+31
|\ | | | | Port to extract_first_word
| * nspwan: port to extract_first_wordSusant Sahani2015-10-281-7/+9
| |
| * install: port to extract_first_wordSusant Sahani2015-10-281-9/+10
| |
| * journal-remote: port to extract_first_wordSusant Sahani2015-10-281-8/+12
| |
* | Merge pull request #1707 from dvdhrm/notify-prioLennart Poettering2015-10-281-79/+77
|\ \ | | | | | | core: fix priority ordering in notify-handling
| * | core: fix priority ordering in notify-handlingDavid Herrmann2015-10-281-79/+77
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Currently, we dispatch NOTIFY messages in a tight loop. Regardless how much data is incoming, we always dispatch everything that is queued. This, however, completely breaks priority event-handling of sd-event. When dispatching one NOTIFY event, another completely different event might fire, or might be queued by the NOTIFY handling. However, this event will not get dispatched until all other further NOTIFY messages are handled. Those might even arrive _after_ the other event fired, and as such completely break priority ordering of sd-event (which several code paths rely on). Break this by never dispatching multiple messages. Just return after each message that was read and let sd-event handle everything else. (The patch looks scarier that it is. It basically just drops the for(;;) loop and re-indents the loop-content.)
* | | Merge pull request #1705 from filbranden/testutil1Lennart Poettering2015-10-285-940/+1025
|\ \ \ | | | | | | | | Move tests for extract-word and parse-util into separate test cases
| * | | test-parse-util: Move parse-util tests into their own test caseFilipe Brandenburger2015-10-284-419/+460
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Tests for the functions defined in src/basic/parse-util.c. Reorder them to match the order in which the functions are defined in the source file. Adjusted the list of include files to remove the ones no longer needed in test-util.c. Tested that `make check` still passes as expected. Also checked the number of lines removed from test-util.c matches the expected, as an additional verification that no tests were dropped or duplicated in the move.
| * | | test-extract-word: Move extract-word tests into their own test caseFilipe Brandenburger2015-10-284-510/+554
| | | | | | | | | | | | | | | | | | | | | | | | Tests for the functions defined in src/basic/extract-word.c. Tested that `make check` still passes as expected.