summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2016-04-02compress: fix gcc warnings about void* used in arithmeticZbigniew Jędrzejewski-Szmek
src/journal/compress.c: In function ‘compress_blob_lz4’: src/journal/compress.c:115:49: warning: pointer of type ‘void *’ used in arithmetic [-Wpointer-arith] r = LZ4_compress_limitedOutput(src, dst + 8, src_size, (int) dst_alloc_size - 8); ^ src/journal/compress.c: In function ‘decompress_blob_xz’: src/journal/compress.c:179:35: warning: pointer of type ‘void *’ used in arithmetic [-Wpointer-arith] s.next_out = *dst + used; ^ src/journal/compress.c: In function ‘decompress_blob_lz4’: src/journal/compress.c:218:37: warning: pointer of type ‘void *’ used in arithmetic [-Wpointer-arith] r = LZ4_decompress_safe(src + 8, out, src_size - 8, size); ^ src/journal/compress.c: In function ‘decompress_startswith_xz’: src/journal/compress.c:294:38: warning: pointer of type ‘void *’ used in arithmetic [-Wpointer-arith] s.next_out = *buffer + *buffer_size - s.avail_out; ^ src/journal/compress.c:294:53: warning: pointer of type ‘void *’ used in arithmetic [-Wpointer-arith] s.next_out = *buffer + *buffer_size - s.avail_out; ^ src/journal/compress.c: In function ‘decompress_startswith_lz4’: src/journal/compress.c:327:45: warning: pointer of type ‘void *’ used in arithmetic [-Wpointer-arith] r = LZ4_decompress_safe_partial(src + 8, *buffer, src_size - 8, ^ LZ4 and XZ functions use char* and unsigned char*, respectively, so keep void* in our internal APIs and add casts.
2016-04-02basic/copy: remove unnecessary castZbigniew Jędrzejewski-Szmek
Both types are unsigned, so the cast to the longer type is automatic.
2016-04-02test-compress-benchmark: fix argument parsing on 32bitZbigniew Jędrzejewski-Szmek
The patch is not minimal, but a function to parse size_t is probably going to come in handy in other places, so I think it's nicer to define a proper parsing function than to open-code the cast.
2016-04-02Add networkd-gperf.c to gitignoreZbigniew Jędrzejewski-Szmek
For #2915.
2016-04-02sd-lldp.h: remove double newlineZbigniew Jędrzejewski-Szmek
For #2898.
2016-04-02man: describe how to reload sysctl configurationZbigniew Jędrzejewski-Szmek
Also fixes option name (s/--path/--prefix/).
2016-04-02man: add more cross-references to coredump.conf(5) and systemd-coredump(8)Zbigniew Jędrzejewski-Szmek
Fixes #2901.
2016-04-02coredumpctl: grammaro fixZbigniew Jędrzejewski-Szmek
Mentioned in #2901.
2016-04-02rpm triggers: add note about minimum supported versionZbigniew Jędrzejewski-Szmek
2016-04-02man: move KillSignal in the right section in directives listZbigniew Jędrzejewski-Szmek
2016-03-31Merge pull request #2915 from vinaykul/masterZbigniew Jędrzejewski-Szmek
2016-03-30DHCP DUID, IAID configuration optionsVinay Kulkarni
2016-03-30Merge pull request #2919 from ColdPie1/udev_get_parent_docsDaniel Mack
man: Fix documented parameters for udev_device_get_ functions
2016-03-30man: Fix documented parameters for udev_device_get_ functionsAndrew Eikum
2016-03-30Merge pull request #2915 from lnykryn/templateZbigniew Jędrzejewski-Szmek
core: improve error message when starting template without instance
2016-03-30core: improve error message when starting template without instanceLukas Nykryn
2016-03-29Merge pull request #2898 from bengal/lldp-apiZbigniew Jędrzejewski-Szmek
lldp: move public macros to sd-lldp.h and namespace them
2016-03-29Merge pull request #2903 from keszybz/cgroup2-v3Zbigniew Jędrzejewski-Szmek
core: cgroup2 support
2016-03-29Merge pull request #2911 from evverx/shutdown-watchdog-infinityDaniel Mack
core: ShutdownWatchdogSec=infinity disables the watchdog logic too
2016-03-29core: ShutdownWatchdogSec=infinity disables the watchdog logic tooEvgeny Vereshchagin
This is a follow-up for 947292eef
2016-03-29Merge pull request #2907 from evverx/runtime-watchdog-infinityDaniel Mack
core: RuntimeWatchdogSec=infinity disables the watchdog logic
2016-03-29Merge pull request #2905 from keszybz/gcrypt-compilationDaniel Mack
build-sys: fix build with libgrcypt disabled
2016-03-28core: RuntimeWatchdogSec=infinity disables the watchdog logicEvgeny Vereshchagin
2016-03-28Merge pull request #2906 from Lu-Biao/sharedZbigniew Jędrzejewski-Szmek
shared: fix a misspelling of "journalctl"
2016-03-29shared: fix a misspelling of "journalctl"Biao Lu
2016-03-27build-sys: fix build with libgrcypt disabledZbigniew Jędrzejewski-Szmek
- Move gcrypt.h include inside grcrypt-util.h. - Allow gcrypt-util.[ch] to be compiled even without gcrypt. This allows the logic in files using gcrypt to be simplified. - Fix compilation of systemd-resolve without gcrypt. systemd-resolved already supported that. Fixes #2711.
2016-03-26core: update invoke_sigchld_event() to handle NULL ->sigchld_event()Tejun Heo
After receiving SIGCHLD, one of the ways manager_dispatch_sigchld() maps the now zombie $PID to its unit is through manager_get_unit_by_pid_cgroup() which reads /proc/$PID/cgroup and looks up the unit associated with the cgroup path. On non-unified cgroup hierarchies, a process is immediately migrated to the root cgroup on death and the cgroup lookup would always have returned the unit associated with it, making it rather pointless but safe. On unified hierarchy, a zombie remains associated with the cgroup that it was associated with at the time of death and thus manager_get_unit_by_pid_cgroup() will look up the unit properly. However, by the time manager_dispatch_sigchld() is running, the original cgroup may have become empty and it and its associated unit might already have been removed. If the cgroup path doesn't yield a match, manager_dispatch_sigchld() keeps pruning the leaf component. This means that the function may return a slice unit for a pid and as a slice doesn't have ->sigchld_event() handler, calling invoke_sigchld_event() on it causes a segfault. This patch updates invoke_sigchld_event() so that it skips calling if the handler is not set.
2016-03-26core: update populated event handling in unified hierarchyTejun Heo
Earlier during the development of unified hierarchy, the populated event was reported through by the dedicated "cgroup.populated" file; however, the interface was updated so that it's reported through the "populated" field of "cgroup.events" file. Update populated event handling logic accordingly.
2016-03-26cgroup2: use new fstype for unified hierarchyAlban Crequy
Since Linux v4.4-rc1, __DEVEL__sane_behavior does not exist anymore and is replaced by a new fstype "cgroup2". With this patch, systemd no longer supports the old (unstable) way of doing unified hierarchy with __DEVEL__sane_behavior and systemd now requires Linux v4.4 for unified hierarchy. Non-unified hierarchy is still the default and is unchanged by this patch. https://github.com/torvalds/linux/commit/67e9c74b8a873408c27ac9a8e4c1d1c8d72c93ff
2016-03-25Merge pull request #2887 from martinpitt/masterZbigniew Jędrzejewski-Szmek
Fix logind crash if shutdown is called from a non-tty
2016-03-24lldp: move public macros to sd-lldp.h and namespace themBeniamino Galvani
lldp.h contains definitions of LLDP types, subtypes and capabilities which should be exposed in public headers. Get rid of the file and move those definitions to sd-lldp.h with the SD_ prefix.
2016-03-24Merge pull request #2892 from yuwata/localectlDaniel Mack
localectl: remove an unnecessary line break from and align the output of status command
2016-03-24logind: fix crash when shutdown is not issued from a ttyMartin Pitt
It's possible that sd_bus_creds_get_tty() fails and thus scheduled_shutdown_tty is NULL in method_schedule_shutdown(). Fix logind_wall_tty_filter() to get along with that, by showing the message on all TTYs, instead of crashing in strcmp(). https://launchpad.net/bugs/1553040
2016-03-24core: fix "stoppping" typoMartin Pitt
2016-03-24localectl: align output of 'localectl status' commandYu Watanabe
If kernel command line options for locale are given, the output of 'localectl status' command is not aligned, for example, ============= Warning: Settings on kernel command line override system locale settings in /etc/locale.conf. Command Line: LANG=C System Locale: LANG=C VC Keymap: n/a X11 Layout: n/a ============= This commit fixes the alignment.
2016-03-24localectl: remove unnecessary line breakYu Watanabe
If /etc/locale.conf is empty or does not exist, the output of 'localectl status' command includes an unnecessary line break as follows: ======================= System Locale: n/a VC Keymap: n/a X11 Layout: n/a ======================= This commit removes the line break after the system locale.
2016-03-23Merge pull request #2885 from gbrikis/masterDaniel Mack
core: Fix path for opening ffs endpoint ep0
2016-03-23Merge pull request #2888 from kinvolk/iaguis/remove-dotsDaniel Mack
run: remove period when printing started units
2016-03-23core: Fix path for opening ffs endpoint ep0Georgia Brikis
usbffs_address_create() expects an absolute path to the file that is supposed to be opened. The path specified only leads to the directory containing the endpoint ep0 not the endpoint itself. This commit adds the endpoints name to the path.
2016-03-23run: remove period when printing started unitsIago López Galeiras
If you start a unit with systemd-run you usually need its name to inspect it or stop it. Removing the period makes copying the unit name easier.
2016-03-23Merge pull request #2886 from fbuihuu/systemctl-list-units-inactive-stateDaniel Mack
systemctl: no need to pass --all if inactive is explicitly requested …
2016-03-23Merge pull request #2883 from keszybz/allow-bomsDaniel Mack
Ignore BOM in config files
2016-03-23systemctl: no need to pass --all if inactive is explicitly requested in ↵Franck Bui
list-units If list-units command is explicitly asked to show inactive units by using '--state=inactive' option, there's no need to force the user to pass '--all' option to include inactive units in the search in this case.
2016-03-22Ignore BOM in config filesZbigniew Jędrzejewski-Szmek
Fixes #2823. Also remove unnecessary feof check.
2016-03-22Merge pull request #2844 from yarda/uaccess-3dprintersZbigniew Jędrzejewski-Szmek
Add support for 3D printers to uaccess (ID_3DPRINTER).
2016-03-22Added support for 3D printers to uaccess (ID_MAKER_TOOL)Jaroslav Škarvada
This is to support 3D printers, CNCs, laser cutters, 3D scanners, etc.
2016-03-22Merge pull request #2880 from keszybz/more-testsDaniel Mack
Add some simple tests for env_value_is_valid and env_assignment_is_valid
2016-03-21Merge pull request #2879 from ronnychevalier/rc/test_execute_fixZbigniew Jędrzejewski-Szmek
test-execute: fix execution of AmbientCapabilities tests
2016-03-21Merge pull request #2882 from systemd/revert-2818-masterZbigniew Jędrzejewski-Szmek
Revert "DHCP DUID and IAID configurability"
2016-03-21Revert "DHCP DUID and IAID configurability"Zbigniew Jędrzejewski-Szmek