summaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAge
* Add (void) where we don't care about return valueZbigniew Jędrzejewski-Szmek2015-03-15
|
* journal-gatewayd: factor out opening of temp fileZbigniew Jędrzejewski-Szmek2015-03-15
| | | | Also use our own mkostemp wrapper, which tries to use O_TMPFILE.
* logind: check return value of session_releaseZbigniew Jędrzejewski-Szmek2015-03-15
| | | | | | It allocates memory, so it can fail. CID #1237527.
* util: check asprintf return valueZbigniew Jędrzejewski-Szmek2015-03-15
| | | | CID #1237546.
* core: remove useless debug messageZbigniew Jędrzejewski-Szmek2015-03-15
| | | | | | | | | | Mar 13 19:48:28 adam.happyassassin.net systemd[1]: Collecting (null) Mar 13 19:48:28 adam.happyassassin.net systemd[1]: Collecting (null) Mar 13 19:48:28 adam.happyassassin.net systemd[1]: Collecting (null) Mar 13 19:48:28 adam.happyassassin.net systemd[1]: Collecting (null) Mar 13 19:48:28 adam.happyassassin.net systemd[1]: Collecting (null) Mar 13 19:48:28 adam.happyassassin.net systemd[1]: Collecting (null) Mar 13 19:48:28 adam.happyassassin.net systemd[1]: Collecting (null)
* libudev-monitor: use initializationZbigniew Jędrzejewski-Szmek2015-03-15
|
* journald: add syslog fields for audit messagesZbigniew Jędrzejewski-Szmek2015-03-14
| | | | | | | Audit messages would be displayed as "unknown[1]". Also specify AUTH as facility... This seems to be the closest match (/* security/authorization messages */).
* sysctl: tweak debug messageZbigniew Jędrzejewski-Szmek2015-03-14
|
* cryptsetup-generator: remove warning about crypttab access modeZbigniew Jędrzejewski-Szmek2015-03-14
| | | | | | This file contains no privileged data — just names of devices to decrypt and files containing keys. On a running system most of this can be inferred from the device tree anyway.
* udev: downgrade "has devpath" and "filled with db file" messagesZbigniew Jędrzejewski-Szmek2015-03-14
| | | | | | Udev debug messages have to be significantly overhauled... For now just downgrade those two. They are responsible for approximately 25% of debug output during boot and are rather useless.
* gpt-auto-generator: prefix messages with device nameZbigniew Jędrzejewski-Szmek2015-03-14
|
* core: do not use quotes around virt and archZbigniew Jędrzejewski-Szmek2015-03-14
| | | | | Quotes are useful when the string can contain spaces or be otherwise confusing. Not possible with those two.
* sysv-generator: initialize LookupPaths just onceZbigniew Jędrzejewski-Szmek2015-03-14
| | | | | | | | With debugging on, sysv-generator would print the full set of lookup paths for *every* sysv script. While at it, pass LookupPaths as a pointer in sysv-generator, and constify it everywhere.
* tmpfiles: remove redundant debug messageZbigniew Jędrzejewski-Szmek2015-03-14
| | | | | Mar 13 19:48:30 adam.happyassassin.net systemd-tmpfiles[970]: "/var/lib/machines" has right mode 40700 Mar 13 19:48:30 adam.happyassassin.net systemd-tmpfiles[970]: /var/lib/machines created successfully.
* util: remove redundant debug messageZbigniew Jędrzejewski-Szmek2015-03-14
| | | | | | | mar 14 20:05:34 fedora22 systemd[4058]: /usr/lib/systemd/system-generators/kdump-dep-generator.sh will be executed. mar 14 20:05:34 fedora22 systemd[4058]: Spawned /usr/lib/systemd/system-generators/kdump-dep-generator.sh as 4059. The second line already says everything.
* core: remove left-over debug messageZbigniew Jędrzejewski-Szmek2015-03-14
|
* service: don't add After= dependencies on .busname units if kdbus support is ↵Michael Biebl2015-03-14
| | | | disabled
* udev-ctrl: fix strict aliasing issuesShawn Landden2015-03-14
| | | | | | | it is ironic that "The only purpose of this structure is to cast the structure pointer passed in addr in order to avoid compiler warnings. See EXAMPLE below." from bind(2)
* sd-dhcp-client: fix strict aliasing issueShawn Landden2015-03-14
|
* sd-event: sd_event_run - only return 0 on timeoutTom Gundersen2015-03-14
| | | | sd_event_dispatch() returns 0 on FINISH, so let's eat that up.
* sd-event: rename PASSIVE/PREPARED to INITIAL/ARMEDTom Gundersen2015-03-14
|
* selinux: fix SEGV during switch-root if SELinux policy loadedWill Woods2015-03-13
| | | | | | | | | | | | | | | | | | If you've got SELinux policy loaded, label_hnd is your labeling handle. When systemd is shutting down, we free that handle via mac_selinux_finish(). But: switch_root() calls mkdir_p_label(), which tries to look up a label using that freed handle, and so we get a bunch of garbage and eventually SEGV in libselinux. (This doesn't happen in the switch-root from initramfs to real root because there's no SELinux policy loaded in initramfs, so label_hnd is NULL and we never attempt any lookups.) So: make sure that mac_selinux_finish() actually sets label_hnd to NULL, so nobody tries to use it after it becomes invalid. https://bugzilla.redhat.com/show_bug.cgi?id=1185604
* sd-daemon: simplify sd_pid_notify_with_fdsZbigniew Jędrzejewski-Szmek2015-03-13
| | | | | | | | Coverity was complaining that CMSG_NXTHDR is used without checking the return value. In this case it cannot fail, but it is a good excuse to simplify the function a bit. CID #1261726.
* udev: properly calculate size of remaining dataZbigniew Jędrzejewski-Szmek2015-03-13
| | | | | | | The data comes from the kernel, so chances of it being garbled are low, but for correctness' sake, add the check. CID #996458.
* test-dhcp-option: conform to usual coding styleZbigniew Jędrzejewski-Szmek2015-03-13
|
* test-dhcp-option: add assert to check index is nonnegativeZbigniew Jędrzejewski-Szmek2015-03-13
| | | | CID #1237623.
* core: check asprintf return valueZbigniew Jędrzejewski-Szmek2015-03-13
| | | | CID #1261729.
* core: print warning on invalid swap pri= fieldZbigniew Jędrzejewski-Szmek2015-03-13
| | | | CID #1264371.
* core: one more (void)Zbigniew Jędrzejewski-Szmek2015-03-13
| | | | CID #996308.
* logind: explicitly ignore errors we can do nothing aboutZbigniew Jędrzejewski-Szmek2015-03-13
| | | | CID #1237545.
* bus: explicitly ignore failure during error handlingZbigniew Jędrzejewski-Szmek2015-03-13
| | | | CID #1237548.
* core: explicitly ignore failure during cleanupZbigniew Jędrzejewski-Szmek2015-03-13
| | | | CID #1237550.
* core: don't wait for reply if writing to pipe failsZbigniew Jędrzejewski-Szmek2015-03-13
| | | | | | | This shouldn't really happen, but it's seems cleaner to continue on error. CID #1237552.
* core: either ignore or handle mount failuresZbigniew Jędrzejewski-Szmek2015-03-13
| | | | | | | | /dev/pts/ptmx is as important as /dev/pts, so error out if that fails. Others seem less important, since the namespace is usable without them, so ignore failures. CID #123755, #123754.
* Use space after a silencing (void)Zbigniew Jędrzejewski-Szmek2015-03-13
| | | | | We were using a space more often than not, and this way is codified in CODING_STYLE.
* core: ignore any issues with setting time on jobs_in_progress_event_sourceZbigniew Jędrzejewski-Szmek2015-03-13
| | | | CID #1237559.
* sd-resolve: use different element of union to make code more readableZbigniew Jędrzejewski-Szmek2015-03-13
| | | | | | They both point to the same location, but the reader is not forced to look back to the beginning of the function to see that.
* journal-remote: explain why source->buf cannot be nullZbigniew Jędrzejewski-Szmek2015-03-13
| | | | In reference to CID #1238956.
* Check that EWOULDBLOCK is the same as EAGAINZbigniew Jędrzejewski-Szmek2015-03-13
| | | | | | It certainly is everywhere on Linux, but as a courtesy to people doing some strange cross-compilation, check that the assumption holds.
* journal-remote: make process_data staticZbigniew Jędrzejewski-Szmek2015-03-13
|
* nspawn: tell coverity that we ignore return valueZbigniew Jędrzejewski-Szmek2015-03-13
| | | | CID #1271353.
* gpt-auto-generator: allow type check to failZbigniew Jędrzejewski-Szmek2015-03-13
| | | | | add_mount() is OK with unknow file type, but we have to initalize the variable to NULL not to pass garbage on error.
* efi: widen operand to avoid overflowZbigniew Jędrzejewski-Szmek2015-03-13
| | | | CID #1287141.
* core: issue error on oom we can do nothing aboutZbigniew Jędrzejewski-Szmek2015-03-13
| | | | CID #1287142.
* µhttp-util: setup gnutls logs in one functionZbigniew Jędrzejewski-Szmek2015-03-13
|
* udev: make set_usec_initialized() internal to libudevTom Gundersen2015-03-13
| | | | | Instead introduce ensure_usec_initialized(), which copies the timestamp if possible otherwise sets it to now(CLOCK_MONOTONIC).
* sd-rtnl: read_message - don't set group if not neededTom Gundersen2015-03-13
|
* sd-rtnl: process - only apply matches to broadcast messagesTom Gundersen2015-03-13
|
* sd-rtnl: improve detection of broadcast messagesTom Gundersen2015-03-13
| | | | | | Do not rely on nl_pid == 0, but check the groups instead. We currently avoid using nl_pid == 0 for unicast anyway, so this should be redundant, but let's try to be correct.
* sd-rtnl: never set serial to 0Tom Gundersen2015-03-13
| | | | | | | In the unlikely event that we wrap the counter, skip 0 as this is used for broadcasts. Suggested by Richard Maw.