Zbigniew Jędrzejewski-Szmek
d99ce93383
units: there is no systemd-udev-hwdb-update.service
2015-03-14 23:03:21 -04:00
Zbigniew Jędrzejewski-Szmek
bdb26d423a
core: remove left-over debug message
2015-03-14 17:42:10 -04:00
Michael Biebl
6962fd3bd2
service: don't add After= dependencies on .busname units if kdbus support is disabled
2015-03-14 16:50:47 +01:00
Shawn Landden
6421348d52
udev-ctrl: fix strict aliasing issues
...
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)
2015-03-14 14:50:45 +01:00
Shawn Landden
6ec8e7c763
sd-dhcp-client: fix strict aliasing issue
2015-03-14 14:50:45 +01:00
Zbigniew Jędrzejewski-Szmek
42f1ab5009
man: add sd_event_{run,wait,prepare,dispatch,loop}
2015-03-14 09:40:51 -04:00
Tom Gundersen
02d30981b1
sd-event: sd_event_run - only return 0 on timeout
...
sd_event_dispatch() returns 0 on FINISH, so let's eat that up.
2015-03-14 12:17:24 +01:00
Tom Gundersen
2b0c9ef735
sd-event: rename PASSIVE/PREPARED to INITIAL/ARMED
2015-03-14 12:17:24 +01:00
Will Woods
f5ce2b4958
selinux: fix SEGV during switch-root if SELinux policy loaded
...
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
2015-03-13 23:42:18 -04:00
Zbigniew Jędrzejewski-Szmek
5de0ccffcc
man: fix indentation of copyright headers
2015-03-13 23:42:18 -04:00
Zbigniew Jędrzejewski-Szmek
299e5aa627
man: no paren in link
2015-03-13 23:42:18 -04:00
Zbigniew Jędrzejewski-Szmek
e530ed5e14
man: fix name of systemd.journal-fields(7)
2015-03-13 23:42:18 -04:00
Zbigniew Jędrzejewski-Szmek
c83478b96c
man: fix link to strerror(3)
2015-03-13 23:42:18 -04:00
Zbigniew Jędrzejewski-Szmek
ae9376394b
man: s/sd_bus_message_get_seqno/sd_bus_message_get_seqnum/
2015-03-13 23:42:18 -04:00
Zbigniew Jędrzejewski-Szmek
ee41f60281
man: fix name of systemd.resource-control(5)
2015-03-13 23:42:18 -04:00
Zbigniew Jędrzejewski-Szmek
3b5cfcdb58
man: link to fd.o for dbus stuff
2015-03-13 23:42:18 -04:00
Zbigniew Jędrzejewski-Szmek
b5c7d097ec
man: link to freebsd.org for inetd(8)
2015-03-13 23:42:18 -04:00
Zbigniew Jędrzejewski-Szmek
3ba3a79df4
man: fix a bunch of links
...
All hail linkchecker!
2015-03-13 23:42:18 -04:00
Zbigniew Jędrzejewski-Szmek
64144440a5
sd-daemon: simplify sd_pid_notify_with_fds
...
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 .
2015-03-13 23:42:17 -04:00
Zbigniew Jędrzejewski-Szmek
24bfda116c
udev: properly calculate size of remaining data
...
The data comes from the kernel, so chances of it being
garbled are low, but for correctness' sake, add the check.
CID #996458 .
2015-03-13 23:42:17 -04:00
Zbigniew Jędrzejewski-Szmek
9116b40692
test-dhcp-option: conform to usual coding style
2015-03-13 23:42:17 -04:00
Zbigniew Jędrzejewski-Szmek
0915fda60a
test-dhcp-option: add assert to check index is nonnegative
...
CID #1237623 .
2015-03-13 23:42:17 -04:00
Zbigniew Jędrzejewski-Szmek
d6483ba783
core: check asprintf return value
...
CID #1261729 .
2015-03-13 23:42:17 -04:00
Zbigniew Jędrzejewski-Szmek
e64d523579
core: print warning on invalid swap pri= field
...
CID #1264371 .
2015-03-13 23:42:17 -04:00
Zbigniew Jędrzejewski-Szmek
8fa158e79d
core: one more (void)
...
CID #996308 .
2015-03-13 23:42:17 -04:00
Zbigniew Jędrzejewski-Szmek
2bf105232f
logind: explicitly ignore errors we can do nothing about
...
CID #1237545 .
2015-03-13 23:42:17 -04:00
Zbigniew Jędrzejewski-Szmek
d3839740fa
bus: explicitly ignore failure during error handling
...
CID #1237548 .
2015-03-13 23:42:17 -04:00
Zbigniew Jędrzejewski-Szmek
42b1b9907d
core: explicitly ignore failure during cleanup
...
CID #1237550 .
2015-03-13 23:42:17 -04:00
Zbigniew Jędrzejewski-Szmek
cd972d6911
core: don't wait for reply if writing to pipe fails
...
This shouldn't really happen, but it's seems cleaner to
continue on error.
CID #1237552 .
2015-03-13 23:42:17 -04:00
Zbigniew Jędrzejewski-Szmek
3164e3cbc5
core: either ignore or handle mount failures
...
/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 .
2015-03-13 23:42:17 -04:00
Zbigniew Jędrzejewski-Szmek
dc75168823
Use space after a silencing (void)
...
We were using a space more often than not, and this way is
codified in CODING_STYLE.
2015-03-13 23:42:17 -04:00
Zbigniew Jędrzejewski-Szmek
2ae56591b5
core: ignore any issues with setting time on jobs_in_progress_event_source
...
CID #1237559 .
2015-03-13 23:42:17 -04:00
Zbigniew Jędrzejewski-Szmek
d448c7927a
sd-resolve: use different element of union to make code more readable
...
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.
2015-03-13 23:42:17 -04:00
Zbigniew Jędrzejewski-Szmek
39d0fd9c0c
journal-remote: explain why source->buf cannot be null
...
In reference to CID #1238956 .
2015-03-13 23:42:17 -04:00
Zbigniew Jędrzejewski-Szmek
012d7b4217
Check that EWOULDBLOCK is the same as EAGAIN
...
It certainly is everywhere on Linux, but as a courtesy
to people doing some strange cross-compilation, check
that the assumption holds.
2015-03-13 23:42:17 -04:00
Zbigniew Jędrzejewski-Szmek
be7e1319ea
journal-remote: make process_data static
2015-03-13 23:42:17 -04:00
Zbigniew Jędrzejewski-Szmek
48861960ac
nspawn: tell coverity that we ignore return value
...
CID #1271353 .
2015-03-13 23:42:16 -04:00
Zbigniew Jędrzejewski-Szmek
a0b1209c4a
gpt-auto-generator: allow type check to fail
...
add_mount() is OK with unknow file type, but we have to initalize
the variable to NULL not to pass garbage on error.
2015-03-13 23:42:16 -04:00
Zbigniew Jędrzejewski-Szmek
7c5925a448
efi: widen operand to avoid overflow
...
CID #1287141 .
2015-03-13 23:42:16 -04:00
Zbigniew Jędrzejewski-Szmek
9fff898181
core: issue error on oom we can do nothing about
...
CID #1287142 .
2015-03-13 23:42:16 -04:00
Zbigniew Jędrzejewski-Szmek
d357562c48
µhttp-util: setup gnutls logs in one function
2015-03-13 23:42:16 -04:00
Tom Gundersen
1b14c3cfbe
udev: make set_usec_initialized() internal to libudev
...
Instead introduce ensure_usec_initialized(), which copies the timestamp if possible otherwise
sets it to now(CLOCK_MONOTONIC).
2015-03-13 18:47:07 +01:00
Tom Gundersen
0964dcd772
sd-rtnl: read_message - don't set group if not needed
2015-03-13 16:15:03 +01:00
Tom Gundersen
f436aa11f7
sd-rtnl: process - only apply matches to broadcast messages
2015-03-13 16:13:24 +01:00
Tom Gundersen
3f42446d28
sd-rtnl: improve detection of broadcast messages
...
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.
2015-03-13 16:12:57 +01:00
Tom Gundersen
913b0eef1a
sd-rtnl: never set serial to 0
...
In the unlikely event that we wrap the counter, skip 0 as this is used
for broadcasts.
Suggested by Richard Maw.
2015-03-13 15:56:08 +01:00
David Herrmann
15411c0cb1
tree-wide: there is no ENOTSUP on linux
...
Replace ENOTSUP by EOPNOTSUPP as this is what linux actually uses.
2015-03-13 14:10:39 +01:00
David Herrmann
32a568fb90
bus: stop using EDEADLOCK
...
The error code is called EDEADLK, stop using legacy names like EDEADLOCK.
Note that _some_ weird architectures define them differently (namely, mips
and sparc), but on all sane architectures they're exactly the same. So
stay with the widely used code, which is EDEADLK.
2015-03-13 14:10:39 +01:00
David Herrmann
ff55c3c732
journal-remote: stop using EWOULDBLOCK
...
There is no reason to ever use EWOULDBLOCK. It's equivalent to EAGAIN on
all architectures on linux.
2015-03-13 14:10:35 +01:00
David Herrmann
ca2031fcc8
udev: dont use EWOULDBLOCK
...
EWOULDBLOCK is the same as EAGAIN, stop using it.
2015-03-13 14:09:55 +01:00