[systemd-commits] stable Changes to 'v216-stable'
Zbigniew Jędrzejewski-Szmek
zbyszek at kemper.freedesktop.org
Sun Nov 2 19:52:15 PST 2014
New branch 'v216-stable' available with the following commits:
commit 0ce3f7e212c826162b15f8b78b18a4646b791a6d
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Sun Nov 2 21:45:42 2014 -0500
units: order sd-journal-flush after sd-remount-fs
Otherwise we could attempt to flush the journal while /var/log/ was
still ro, and silently skip journal flushing.
The way that errors in flushing are handled should still be changed to
be more transparent and robust.
(cherry picked from commit 1f1926aa5e836caa3bd6df43704aecd606135103)
commit 3c6a000d5c291f998dba2eb4c8e351f4603ca985
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Sun Nov 2 11:39:17 2014 -0500
unit: do not order timers.target before basic.target
Since commit 19f8d037833f2 'timer: order OnCalendar units after
timer-sync.target if DefaultDependencies=no' timers might get a
dependency on time-sync.target, which does not really belong in early
boot. If ntp is enabled, time-sync.target might be delayed until a
network connection is established.
It turns out that majority of timer units found in the wild do not
need to be started in early boot. Out of the timer units available in
Fedora 21, only systemd-readahead-done.timer and mdadm-last-resort at .timer
should be started early, but they both have DefaultDependencies=no,
so are not part of timers.target anyway. All the rest look like they
will be fine with being started a bit later (and the majority even
much later, since they run daily or weekly).
Let timers.target be pulled in by basic.target, but without the
temporal dependency. This means timer units are started on a "best
effort" schedule.
https://bugzilla.redhat.com/show_bug.cgi?id=1158206
(cherry picked from commit 3b0217036040a6013faeab4eb9da7469e3bbcfb3)
Conflicts:
units/basic.target
commit db2241b5259671c2a7435235f5fc560ba4e97077
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Sun Nov 2 12:19:38 2014 -0500
manager: do not print timing when running in test mode
(cherry picked from commit 56dacdbc1ca95cef8bf8c97c0d7af761a71eaab3)
commit b5404292de0a4252b4b7447ef45bf3f334cae529
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Sun Nov 2 12:10:42 2014 -0500
Raise level of 'Found dependency...' lines
This way they always show up together with 'Found ordering cycle...'.
Ordering cycles are a serious error and a major pain to debug. If
quiet is enabled, only the first and the last line of output are
shown:
systemd[1]: Found ordering cycle on basic.target/start
systemd[1]: Breaking ordering cycle by deleting job timers.target/start
systemd[1]: Job timers.target/start deleted to break ordering cycle starting with basic.target/start
which isn't particularly enlightening. So just show the whole message
at the same level.
https://bugzilla.redhat.com/show_bug.cgi?id=1158206
(cherry picked from commit 14fe721b5f6d8457cc8737fa75f2ed79e7fa534b)
commit 5a9b149c96f39d8363e6b2dcb45e95056d2799ea
Author: Colin Walters <walters at verbum.org>
Date: Sat Nov 1 15:49:53 2014 -0400
libudev: Use correct free function
FILE * wants cleanup_fclose().
Spotted by udev hwdb segfaulting in gnome-continuous' buildroot
construction.
(cherry picked from commit ea55caa60c6860e33fa4f1a216c003ff666e9c68)
commit 3db8a5d1b39f88981e979ff01afb4a0c7aa9a126
Author: Joe Lawrence <joe.lawrence at stratus.com>
Date: Sat Nov 1 12:18:08 2014 -0400
scsi_id: fix usage spelling
s/threat/treat/g
(cherry picked from commit 85f13fce322e6303e7e4e55cb43104f81827f36b)
commit b464167132f65d25364d3d22368346ab48981a4a
Author: Michael Chapman <mike at very.puzzling.org>
Date: Wed Oct 29 11:54:07 2014 +1100
kernel-install/90-loaderentry.install: fix cmdline parsing
A recent commit (2f3a215) changed the parsing of /proc/cmdline to use a
shell array. Unfortunately, this introduced a bug: "read -ar line"
populates the shell variable $r, not $line. This breaks installation of
new loader entries:
# kernel-install add 3.17.1-304.fc21.x86_64 \
/boot/vmlinuz-3.17.1-304.fc21.x86_64
Could not determine the kernel command line parameters.
Please specify the kernel command line in /etc/kernel/cmdline!
This commit alters the read command to correctly populate the $line
array instead.
(cherry picked from commit c008f6ee8df9aa36782378d1a3767543b3635a54)
commit 309ce8c2537ae72e2c7a07b7e21bee5fd2da0960
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Sat Nov 1 13:52:14 2014 -0400
systemd-journal-flush.service: remove "trigger" from description
This service is now synchronous, so "trigger" is misleading.
(cherry picked from commit a65b82457735df2ef58736a55846f400124a8dc0)
commit 3169d6cf7f78ab2906b7249466d0c5721890fc7a
Author: Umut Tezduyar Lindskog <umut.tezduyar at axis.com>
Date: Wed Oct 29 11:20:02 2014 +0100
man: explain journalctl --flush correctly
(cherry picked from commit 2a97b03b3b087e724867e7501ae0c1535ee35031)
commit 896050eeb3acbf4106d71204a5173b4984cf1675
Author: Jan Synacek <jsynacek at redhat.com>
Date: Fri Oct 31 10:16:45 2014 +0100
core: improve error message when machine id is missing
(cherry picked from commit 86fb9ca7ae49790880d4b3ce523988b01b13d9ae)
commit acfc0db365d38b1185ab4cb47f03c63b9aa23087
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Sat Nov 1 14:36:29 2014 -0400
man: describe all log levels in udevadm(8)
https://bugs.freedesktop.org/show_bug.cgi?id=85657
(cherry picked from commit e03234a16047dc635d13f7118fc9fcf243744b51)
commit 6c2d3f24672aaa806bbd6b4b5741e315566da35c
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Sat Nov 1 12:06:41 2014 -0400
libudev: do not accept invalid log levels
Invalid log levels lead to a assert failure later on.
https://bugs.freedesktop.org/show_bug.cgi?id=85657
(cherry picked from commit ee7122c0ec6aa11f02e9e8d94254b353f12d2c14)
commit e63854bf942d6f3364e5e69d5e7bcfd5a2ad8ec8
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Sat Nov 1 11:32:44 2014 -0400
libudev: modernization
This brings udev logging style a bit closer to normal systemd convention.
(cherry picked from commit fe756ed9ec2c0fa33c30b1d9a33d745dc1593aed)
commit 077f3bccf730114917c581fb9f47beb4518835bd
Author: Marcel Holtmann <marcel at holtmann.org>
Date: Fri Oct 31 20:37:59 2014 +0100
hwdb: Update database of Bluetooth company identifiers
(cherry picked from commit 5d20fde4a5c4dff4d7c737b545fbd13582d544c1)
commit 860e33966a511e008f80bbfa23450dcc33650290
Author: Lennart Poettering <lennart at poettering.net>
Date: Fri Oct 31 16:22:36 2014 +0100
units: don't order journal flushing afte remote-fs.target
Instead, only depend on the actual file systems we need.
This should solve dep loops on setups where remote-fs.target is moved
into late boot.
(cherry picked from commit 919699ec301ea507edce4a619141ed22e789ac0d)
commit c986f1e5ff7afaa52274ee25a7ba94bec0356d03
Author: Lennart Poettering <lennart at poettering.net>
Date: Thu Oct 30 20:53:23 2014 +0100
nspawn: don't make up -1 as error code
(cherry picked from commit fddbb89c46ea5d39e52e361b390ea34a06cbb67c)
commit deb58970549681f28a7e38ee0f75664523f5066a
Author: Dave Reisner <dreisner at archlinux.org>
Date: Thu Oct 30 20:12:05 2014 -0400
shared/install: avoid prematurely rejecting "missing" units
f7101b7368df copied some logic to prevent enabling masked units, but
also added a check which causes attempts to enable templated units to
fail. Since we know the logic beyond this check will properly handle
units which truly do not exist, we can rely on the unit file state
comparison to suffice for expressing the intent of f7101b7368df.
ref: https://bugs.archlinux.org/task/42616
(cherry picked from commit 0ffce503cd6e5a5ff5ba5cd1cc23684cfb8bb9e3)
commit b994526e7fbc8acc71889120645508ac5f8aca33
Author: Dan Williams <dcbw at redhat.com>
Date: Thu Oct 30 14:23:00 2014 -0500
sd-dhcp-client: clean up raw socket sd_event_source when creating new UDP socket
The raw socket sd_event_source used for DHCP server solicitations
was simply dropped on the floor when creating the new UDP socket
after a lease has been acquired. Clean it up properly so we're
not still listening and responding to events on it.
(cherry picked from commit affaa94fc38a980a70534f70f6a6c58a4129b062)
commit 3db5ad126fcca99e7d341e47f1c2967aa70fc813
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Tue Oct 28 12:36:17 2014 -0400
snapshot: return error when snapshot exists
(cherry picked from commit 7cabba07745b388497e8c0fc19b61984167fd474)
commit c3a8638cf447ae5901dccb89ea766d768febe529
Author: Colin Guthrie <colin at mageia.org>
Date: Wed Oct 29 14:03:41 2014 +0000
sysusers: Preserve ownership and mode on /etc/passwd and friends
When running sysusers we would clobber file ownership and permissions
on the files /etc/passwd, /etc/group and /etc/[g]shadow.
This simply preserves the ownership and mode if existing files are
found.
(cherry picked from commit e3c72c21d62aadabf4df436c3e2c7219eeeccc1c)
commit b9ae7f976b524c712b7b98062087adaa662f3cf8
Author: Hans de Goede <hdegoede at redhat.com>
Date: Thu Oct 30 10:15:54 2014 +0100
keymap: Ignore brightness keys on Dell Inspiron 1520 to avoid double events
On the Dell Inspiron 1520 both the atkbd and acpi-video input devices report
an event for pressing the brightness up / down key-combos, resulting in user
space seeing double events and increasing / decreasing the brightness 2 steps
for each keypress.
This hwdb snippet suppresses the atkbd events, making the Inspiron 1520 work
like most modern laptops which emit brightness up / down events through
acpi-video only.
Reported by Pavel Malyshev <p.malishev at gmail.com>
https://bugzilla.redhat.com/show_bug.cgi?id=1141525
(cherry picked from commit aba248ee6b1eb10baf3d89eca2ad7569459af6ab)
commit 8b2735073009dcb855d65a3aa85eec25d8100a2a
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Wed Oct 29 23:47:55 2014 -0400
zsh-completion: update start/restart completions
Now zsh should behave the same for those two subcommands as bash.
(cherry picked from commit 81333ecf9d5497f8aa95f7fec23c67b869d5abf9)
commit fef18888ca215c0600b95cd4dfd9b469c9936043
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Wed Oct 29 23:06:58 2014 -0400
bash-completion: use improved filtering to make things faster
(cherry picked from commit 372b221166eb586c4f767969f442ed940e21f353)
commit ff0c10038b7dc58ad13dce492806e6781a0f34fc
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Wed Oct 29 22:51:00 2014 -0400
systemctl: obey --state in list-unit-files
(cherry picked from commit fec1530e6b5b8d6dc352c7338010357126e84621)
commit 4ffc2172253c5ac6ad49bee3c87e5740ae520c8a
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Wed Oct 29 22:46:30 2014 -0400
systemctl: let list-{units,unit-files } honour --type
The docs don't clarify what is expected, but I don't see any reason
why --type should be ignored.
Also restucture the compund conditions into separate clauses for
easier reading.
(cherry picked from commit 6c71341aeecc3d092ed90f66e1b2c481b8e260ff)
commit 1c7a80d7748ee8c4117ccbb628274413f2c7cb59
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Wed Oct 29 22:25:33 2014 -0400
bash-completion: rework startable/restartable units once more
I tried to use 'systemctl --all list-units' to filter unit files, but
this always filters out unit files which are not loaded. We want to complete
systemctl start with those units too, so this approach is not going to work.
New version is rather slow, but hopefully correct.
(cherry picked from commit 9ff8af5460d57dfab78a1137ec743b539715e82a)
commit c96c14e1f545e6533c781e33c2238d1433deb30f
Author: Kay Sievers <kay at vrfy.org>
Date: Thu Oct 30 01:18:34 2014 +0100
udev: path_id - update comments
(cherry picked from commit a42cdff19f2d34f12ceca0f40707421a8aaa2c2f)
commit 5b6b524662ddc3178b4d8c2e51eba5d023ad08c4
Author: Dave Reisner <dreisner at archlinux.org>
Date: Wed Oct 29 13:32:43 2014 -0400
nspawn: ignore EEXIST when creating mount point
A combination of commits f3c80515c and 79d80fc14 cause nspawn to
silently fail with a commandline such as:
# systemd-nspawn -D /build/extra-x86_64 --bind=/usr
strace shows the culprit:
[pid 27868] writev(2, [{"Failed to create mount point /build/extra-x86_64/usr: File exists", 82}, {"\n", 1}], 2) = 83
(cherry picked from commit 1ab19cb167b32967556eefd8f6d3df0e3de7d67d)
commit 8207682d7a40270e6581515e3537adaff885a072
Author: Lennart Poettering <lennart at poettering.net>
Date: Wed Oct 29 17:58:43 2014 +0100
sd-bus: properly handle removals of non-existing matches
(cherry picked from commit ef7b6c0190fefaacf6d8f8e1a6dda4ba8b98091b)
commit 6bb37d22af95d11df7f487f3e34abc97fa5fa9bf
Author: Lennart Poettering <lennart at poettering.net>
Date: Tue Oct 28 20:36:32 2014 +0100
NEWS: well, it's Options= now, not Discard=
(cherry picked from commit c4ac990007cd0069bb7e76ec15dd731320f382fd)
commit d5cd1a02f0da4de24cce433b1759e3e297df0f5f
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Sun Nov 2 10:25:06 2014 -0500
Revert "core: send sigabrt on watchdog timeout to get the stacktrace"
This reverts commit db2cb23b5b179707000d28a11efb3d888d06ee80.
commit 9bbe7b209c31fb3b31f7b0e1a66ae82b4c2768d9
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Sun Nov 2 10:24:58 2014 -0500
Revert "service: add missing state table entry"
This reverts commit 1378a3b5a10444e6c9a17084c65032b4e1061c8e.
commit 32e659e2d7a50ebe19dd82db116518eb150f7317
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Sun Nov 2 10:05:51 2014 -0500
Revert "login: remove multi-seat-x"
This reverts commit 3769415e6573da64fb80e31f4bb3f850cd99031e.
Conflicts:
NEWS
commit 2f0a6c615496777ec37f6815b8516f8b3a25e82e
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Sun Nov 2 10:03:49 2014 -0500
Revert "Update NEWS"
This reverts commit 4ffd29fda1a2621d8f1711ccaad723d327fef93a.
commit 93871b345b76480e99b9a135006cad47e10acd7f
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Sun Nov 2 10:02:41 2014 -0500
Revert "units: define appropriate job timeout actions when boot or shutdown timeouts are hit"
This reverts commit 3898b80d409ae16b049d46f883bf763417bb4c8a.
We have various jobs that run during early boot and might cause
basic.target not to be reached within 15 minutes. E.g. Fedora has
fedora-autorelabel.service, which can take an arbitrarily long time on
a large and slow drive.
commit 2ed2be30664faa7076edd819ea4ae429fab8ac08
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Sun Nov 2 09:42:01 2014 -0500
Revert "sysctl.d: default to fq_codel, fight bufferbloat"
This reverts commit e6c253e363dee77ef7e5c5f44c4ca55cded3fd47.
Conflicts:
NEWS
commit a8caf8eabad9bd51425c649189955c9fe18c9418
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Sun Nov 2 09:20:39 2014 -0500
Revert "timedated: manage systemd-timesyncd directly instead of lists of alternatives"
This reverts commit b72ddf0f4f552dd53d6404b6ddbc9f17d02b8e12.
Conflicts:
Makefile.am
NEWS
commit 1c5d3c9230d1648413410770d42dcbaf57a78e23
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Sun Nov 2 09:16:09 2014 -0500
Revert "readahead: wipe out readahead"
This reverts commit d6bc8348d5be8576a475ac8ced2b0146e60fb71f.
Conflicts:
units/systemd-firstboot.service.in
commit 941a643569dc6b53d0b334276d2a3cc0ed159e88
Author: Kay Sievers <kay at vrfy.org>
Date: Tue Oct 28 18:46:53 2014 +0100
build-sys: do not use "label" functions in libsystemd_shared
commit 3b187c5cee0a9584d7c31e10f9fe008b94cf6d58
Author: Lennart Poettering <lennart at poettering.net>
Date: Tue Oct 28 18:10:48 2014 +0100
update NEWS
commit 288c0991d5a0b24084e27efff4bca80170ea4456
Author: Lennart Poettering <lennart at poettering.net>
Date: Tue Oct 28 18:07:20 2014 +0100
test: use assert_se() when testing tables so that we get a useful error when something fails
commit 1378a3b5a10444e6c9a17084c65032b4e1061c8e
Author: Lennart Poettering <lennart at poettering.net>
Date: Tue Oct 28 18:06:58 2014 +0100
service: add missing state table entry
commit db2cb23b5b179707000d28a11efb3d888d06ee80
Author: Umut Tezduyar Lindskog <umut.tezduyar at axis.com>
Date: Tue Oct 28 16:35:40 2014 +0100
core: send sigabrt on watchdog timeout to get the stacktrace
if sigabrt doesn't do the job, follow regular shutdown
routine, sigterm > sigkill.
commit f10af76de5e6589e35ed620c75f3f6eb02cdf345
Author: Lennart Poettering <lennart at poettering.net>
Date: Tue Oct 28 17:27:38 2014 +0100
swap: don't add too many deps for swap files form /proc/swap
commit cc821d02a37c8c76aaf15bae2d33fee1bdc4b2e0
Author: Kay Sievers <kay at vrfy.org>
Date: Tue Oct 28 16:50:24 2014 +0100
udev: path_id - set supported_parent for well-known SCSI setups
commit f6d1de8547b1e957773f8b6764420579c8378aaf
Author: Ronny Chevalier <chevalier.ronny at gmail.com>
Date: Tue Oct 28 16:04:21 2014 +0100
NEWS: fix typos
commit ba8df74bb643c0f7c343fef78bba3661b0f9c31c
Author: Kay Sievers <kay at vrfy.org>
Date: Tue Oct 28 15:53:44 2014 +0100
NEWS: update
commit d4474c41ca3854db1b7a7b30765bb59fc570e1c4
Author: Tom Gundersen <teg at jklm.no>
Date: Tue Oct 28 15:42:57 2014 +0100
NEWS
commit 7e63dd1015c9ac6fc2042e45b0a87a3f9f8b9336
Author: Lennart Poettering <lennart at poettering.net>
Date: Tue Oct 28 15:44:00 2014 +0100
update NEWS
commit cfa1571b7f5a45927f76e54790974183a273d17a
Author: Lennart Poettering <lennart at poettering.net>
Date: Tue Oct 28 15:35:35 2014 +0100
update NEWS
commit 9a4f7f5ef7a0895962d5c9b9e0bc8579fd792aef
Author: Lennart Poettering <lennart at poettering.net>
Date: Tue Oct 28 15:29:49 2014 +0100
build-sys: bump version number in preparation for release
commit cfc59d713d6d8e4536c4103368a9a48ca6cea833
Author: Lennart Poettering <lennart at poettering.net>
Date: Tue Oct 28 15:29:36 2014 +0100
build-sys: bump library versions in preparation for 217 release
commit 4b08dd87eebb4b634bdd5708ac1ba68dcee205b3
Author: Lennart Poettering <lennart at poettering.net>
Date: Tue Oct 28 15:20:16 2014 +0100
NEWS: add contributor list in preparation for 217 release
commit fae9332b140ffa3c1b04c80ac4cd3f2796e8cf3c
Author: Lennart Poettering <lennart at poettering.net>
Date: Tue Oct 28 15:17:53 2014 +0100
update NEWS
commit f2288cc63fcd428860479ba43122341c39e3a926
Author: Lennart Poettering <lennart at poettering.net>
Date: Tue Oct 28 15:11:39 2014 +0100
polkit: actually generate new InteractiveAuthorizationRequired error on the right occasions
commit 665ea24caf4ca8c4ee32a48cd1b47abaf9ead6c4
Author: Lennart Poettering <lennart at poettering.net>
Date: Tue Oct 28 15:06:30 2014 +0100
update TODO
commit 1b3a797f6f3c32dc10d8af928d936d87b1edea43
Author: Lennart Poettering <lennart at poettering.net>
Date: Tue Oct 28 14:59:08 2014 +0100
sd-bus: add support for new InteractiveAuthorizationRequired error from dbus spec
commit fccabcb48dfc6698e3181c2907a15d7736e356c1
Author: Lennart Poettering <lennart at poettering.net>
Date: Tue Oct 28 14:47:35 2014 +0100
update TODO
commit 1fdfa094ddc87039c4d21388c89f1b19f236dea7
Author: Lennart Poettering <lennart at poettering.net>
Date: Tue Oct 28 14:38:47 2014 +0100
man: minor corrections on how the overall system states are actually defined
commit 8a188de9e0ea41509beda12084126d7a75ebe86e
Author: WaLyong Cho <walyong.cho at samsung.com>
Date: Fri Oct 24 21:15:25 2014 +0900
mac: add mac_ prefix to distinguish origin security apis
commit 07788ab9d89db17a11ebfced35d2fad663cd180d
Author: Lennart Poettering <lennart at poettering.net>
Date: Tue Oct 28 14:31:17 2014 +0100
update TODO
commit ddb7d6b9420275fb4451185cd63bd0cbb74ad8e5
Author: Lennart Poettering <lennart at poettering.net>
Date: Tue Oct 28 14:30:30 2014 +0100
swap: drop noauto/nofail bools from Swap structure
We nowadays always set them to "false" anyway, hence let's get rid of
them entirely.
commit 47cb901e38cd7092576fc8e76cc4a14f39bf719d
Author: Lennart Poettering <lennart at poettering.net>
Date: Tue Oct 28 14:24:46 2014 +0100
swap: replace Discard= setting by a more generic Options= setting
For now, it's systemd itself that parses the options string, but as soon
as util-linux' swapon can take the option string directly with -o we
should pass it on unmodified.
commit 33488f19793dc0a86fdee27266c5319b5b78d695
Author: Martin Pitt <martin.pitt at ubuntu.com>
Date: Fri Oct 17 15:01:01 2014 +0200
udev hwdb: Support shipping pre-compiled database in system images
In some cases it is preferable to ship system images with a pre-generated
binary hwdb database, to avoid having to build it at runtime, avoid shipping
the source hwdb files, or avoid storing large binary files in /etc.
So if hwdb.bin does not exist in /etc/udev/, fall back to looking for it in
UDEVLIBEXECDIR. This keeps the possibility to add files to /etc/udev/hwdb.d/
and re-generating the database which trumps the one in /usr/lib.
Add a new --usr flag to "udevadm hwdb --update" which puts the database
into UDEVLIBEXECDIR.
Adjust systemd-udev-hwdb-update.service to not generate the file in /etc if we
already have it in /usr.
commit 2f952a25772a690eb03b6af2ad5998086a03234c
Author: Lennart Poettering <lennart at poettering.net>
Date: Tue Oct 28 12:33:25 2014 +0100
update TODO
commit d1b6f12e07a304476ac29fc7306205f384db746f
Author: Lennart Poettering <lennart at poettering.net>
Date: Tue Oct 28 12:32:25 2014 +0100
man: document that $XDG_SESSION_DESKTOP only takes a single item, not a list, unlike $XDG_CURRENT_DESKTOP
commit 090771492f155cebe7075171530e96c1cd515d71
Author: Lennart Poettering <lennart at poettering.net>
Date: Tue Oct 28 12:31:11 2014 +0100
sd-login: let's not needlessly yell at users
While GNOME/KDE are generally capitalized, systemd tools generally are
not, hence let's not start doing so in the XDG_CURRENT_SESSION
environment variable.
commit ebc5788e88eb9e1ebd032bd61507c196142acbab
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Mon Oct 27 23:14:23 2014 -0400
manager: print warning on console before reboot
It will be printed even if a prompt is blocking other messages.
commit 127d5fd1563a74411aaceeadd251f98fd52216d7
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Mon Oct 27 23:02:54 2014 -0400
manager: convert ephemeral to enum
In preparation for subsequent changes.
commit 2de51fdc5218d6c4f148989f8907cf0fc842abea
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Mon Oct 27 22:16:11 2014 -0400
man: add table of manager states
commit 1cf3c30c0787f941b0f6d0b11ab504ddee3b0b8f
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Mon Oct 27 21:34:28 2014 -0500
shell-completion: systemctl set-default,get-default,is-system-running
commit 7c67f0f71a2a4e64264e925977645e306816a3ab
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Mon Oct 27 21:34:09 2014 -0500
rpm: add user macros
commit e46b13c8c7f48f81d4e09912f2265daaa7f6d27e
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Sat Oct 25 20:30:51 2014 -0400
manager: do not print anything while passwords are being queried
https://bugs.freedesktop.org/show_bug.cgi?id=73942
commit 3fcd09602c0dfff8c0fafe6c4f9bba6b0fd72c30
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Mon Oct 27 21:52:38 2014 -0400
cdrom_id: do not attempt to read past end of buffer
CID #1238437
commit dec23413ecc90d4a547aa41f02af0482b4513495
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Mon Oct 27 21:31:29 2014 -0400
selinux: make sure we do not try to print missing fields
UID or GID of 0 is valid, so we cannot use that to distinguish whether
calls to sd_bus_creds_get_* succeeded, and the return value from the
function is the only way to know about missing fields. Print "n/a" if
the fields are missing.
CID #1238779
commit 3769415e6573da64fb80e31f4bb3f850cd99031e
Author: Timofey Titovets <nefelim4ag at gmail.com>
Date: Sun Oct 26 00:17:24 2014 +0300
login: remove multi-seat-x
commit ca4a7a9a364fba4396ebed393bc4e9194cd9caea
Author: Lennart Poettering <lennart at poettering.net>
Date: Tue Oct 28 02:19:37 2014 +0100
update TODO
commit 4ffd29fda1a2621d8f1711ccaad723d327fef93a
Author: Lennart Poettering <lennart at poettering.net>
Date: Tue Oct 28 02:17:12 2014 +0100
Update NEWS
commit 3898b80d409ae16b049d46f883bf763417bb4c8a
Author: Lennart Poettering <lennart at poettering.net>
Date: Tue Oct 28 01:49:39 2014 +0100
units: define appropriate job timeout actions when boot or shutdown timeouts are hit
Using the new JobTimeoutAction= setting make sure we power off the
machine after basic.target is queued for longer than 15min but not
executed. Similar, if poweroff.target is queued for longer than 30min
but does not complete, forcibly turn off the system. Similar, if
reboot.target is queued for longer than 30min but does not complete,
forcibly reboot the system.
commit f189ab18de69d3dee81117d7925fb370cd038f0f
Author: Lennart Poettering <lennart at poettering.net>
Date: Tue Oct 28 01:49:07 2014 +0100
job: optionally, when a job timeout is hit, also execute a failure action
commit fa1b91632c5220e6589007af4cd573ca909f915a
Author: Lennart Poettering <lennart at poettering.net>
Date: Tue Oct 28 01:42:13 2014 +0100
core: remove system start timeout logic again
The system start timeout as previously implemented would get confused by
long-running services that are included in the initial system startup
transaction for example by being cron-job-like long-running services
triggered immediately at boot. Such long-running jobs would be subject
to the default 15min timeout, esily triggering it.
Hence, remove this again. In a subsequent commit, introduce per-target
job timeouts instead, that allow us to control these timeouts more
finegrained.
commit cea358fe1b600c40670da96e62c9187f0a7c2bed
Author: Lennart Poettering <lennart at poettering.net>
Date: Tue Oct 28 00:52:48 2014 +0100
update TODO
commit 294330896d1ad26c10eecf6c3bf20d73b5ec624b
Author: Lennart Poettering <lennart at poettering.net>
Date: Mon Oct 27 23:50:51 2014 +0100
journald: be nice to coverity, add an extra assert
coverity otherwise assumes that the chain object might be NULL.
commit 7f8bf08f9036de419ad14c55b61eda74c6659d3a
Author: Lennart Poettering <lennart at poettering.net>
Date: Mon Oct 27 18:09:07 2014 +0100
CODING_STYLE: don't clobber arguments on failure
commit dbfd41e2df44113d1d2d07fb751db11b443f186b
Author: Lennart Poettering <lennart at poettering.net>
Date: Mon Oct 27 18:08:46 2014 +0100
calendarspec: parse 'quarterly' and 'semi-annually' as shortcuts
commit a2a85a22b3c82386633ab898012c4b249706d535
Author: Tom Gundersen <teg at jklm.no>
Date: Mon Oct 27 17:39:18 2014 +0100
networkd: network - if no prefixlength is given, try to deduce one from the address class
In case of a class E or F address, ignore the address.
commit df40eee8edccb6bf09a57c2b96f69d233032ce52
Author: Tom Gundersen <teg at jklm.no>
Date: Mon Oct 27 17:38:03 2014 +0100
shared: in-addr-utils - add default_subnet_mask and default_prefixlen methods
These use the (deprecated) IPv4 address classes to deduce the corresponding subnet masks. This is useful when addresses
without subnet masks and prefix lengths are given.
Make use of these new functions from sd-dhcp-lease.
commit 1dfcee5985e8097fdbe0a77ca31fa23f683fadc2
Author: Tom Gundersen <teg at jklm.no>
Date: Mon Oct 27 17:28:29 2014 +0100
man: tmpfiles.d - recommend using b! and c!
We should avoid creating static device nodes at runtime.
commit 8c94052ee543c3598a3c7b0c46688150aa2c6168
Author: Tom Gundersen <teg at jklm.no>
Date: Mon Oct 27 17:15:42 2014 +0100
units: tmpfiles-setup-dev - allow unsafe file creation to happen in /dev at boot
This will allow us to mark static device nodes with '!' to indicate that they should only be created at early boot.
commit 5ebe2ce782a5f4614b3381ba093cbebded3d3ce6
Author: Daniel Mack <daniel at zonque.org>
Date: Mon Oct 27 17:02:31 2014 +0100
sd-bus: sync kdbus.h (ABI break)
Some comment fixes and header cleanups in kdbus.h, and the task capability
meta information has been factored out to its own struct.
commit e0104622b33f39ea8fd54f0a286d938401c08e3d
Author: Lennart Poettering <lennart at poettering.net>
Date: Mon Oct 27 13:54:19 2014 +0100
man: document what "minutely" now means
commit 272ac205176dc922a2da87d212fd2c88ece4231e
Author: Daniele Medri <dmedri at gmail.com>
Date: Mon Oct 27 08:42:42 2014 +0100
calendar: new case 'minutely'
commit 2d1239ea20f65b3d6ab5aeaef0efc464103be977
Author: Lennart Poettering <lennart at poettering.net>
Date: Mon Oct 27 13:32:04 2014 +0100
update TODO
commit 78b6b7ceb2c76a3e29aeaa4b00c257be0706bffc
Author: Lennart Poettering <lennart at poettering.net>
Date: Mon Oct 27 13:31:56 2014 +0100
update NEWS
commit 24f6fc22c10fe4fbb3c24fd90ff09085dc402bbf
Author: Lennart Poettering <lennart at poettering.net>
Date: Mon Oct 27 13:06:11 2014 +0100
sd-bus: explicitly cast asprintf() return value away we are not interested in
Let's give coverity a hint what's going on here.
commit 54ad51e3e92c92240205aab2f9479c041cdaaf8f
Author: Lennart Poettering <lennart at poettering.net>
Date: Mon Oct 27 13:04:12 2014 +0100
Revert "sd-bus: check return value of asprintf()"
This reverts commit b1543c4c93855b61b40118e9f14a0423dac2e078.
We check b->address anyway, no need to check the return value,
especially given that the other #ifdef branch don't get the same
treatment.
commit d89b5fed9ea5d9ec293585cb85bb27b56ea6ac9c
Author: Michal Sekletar <msekleta at redhat.com>
Date: Tue Oct 21 18:38:42 2014 +0200
shutdown: do final unmounting only if not running inside the container
If we run in the container then we run in a mount namespace. If namespace dies
then kernel should do unmounting for us, hence we skip unmounting in containers.
Also, it may be the case that we no longer have capability to do umount,
because we are running in the unprivileged container.
See: http://lists.freedesktop.org/archives/systemd-devel/2014-October/023536.html
commit 281a92f80c215d6e07526d33563adb6d37c531c6
Author: Ivan Shapovalov <intelfx100 at gmail.com>
Date: Mon Oct 27 12:07:36 2014 +0300
man: fix typos in description of SELinuxContextFromNet=
commit dbafa734d8d6ba4cb5efcbb2260105babcdcde1e
Author: Tom Gundersen <teg at jklm.no>
Date: Sun Oct 26 14:01:27 2014 +0100
networkd: don't stop the dhcp server when link goes down
commit a9169c1c589bf7c7a29e7905d17e350ce7c7c48e
Author: Michal Sekletar <msekleta at redhat.com>
Date: Mon Oct 27 11:08:26 2014 +0100
util: fix copy-paste error and actually set the new hostname
Reported-by: sztanpet on irc
commit 605f81a8968b2df8a28cca2cf11db99ab948a2af
Author: Michal Sekletar <msekleta at redhat.com>
Date: Tue Oct 21 18:17:54 2014 +0200
util: introduce sethostname_idempotent
Function queries system hostname and applies changes only when necessary. Also,
migrate all client of sethostname to sethostname_idempotent while at it.
commit caa2f4c0c9613b2e02aafa308c8fb092576014a9
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Sun Oct 26 00:14:30 2014 -0400
journald: fix flushing
Commit 74055aa762 'journalctl: add new --flush command and make use of
it in systemd-journal-flush.service' broke flushing because journald
checks for the /run/systemd/journal/flushed file before opening the
permanent journal. When the creation of this file was postponed,
flushing stoppage ensued.
commit e95c98378ac2d34df864de4a9b785fd17defb77b
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Sat Oct 25 15:15:28 2014 -0400
systemctl: do not ignore errors in symlink removal
On an ro fs, systemctl disable ... would fail silently.
commit 7c52a17b1a31eedd40093a4fbb460cf492087d9b
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Fri Oct 24 16:09:35 2014 -0400
Rearrange Unit to make pahole happy
After all we have lots of those.
commit e90efc70900f8e69cfbafd9e9508bdeb4d40dad7
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Sat Oct 25 11:59:36 2014 -0400
calendarspec: fix typo in "annually"
https://bugs.freedesktop.org/show_bug.cgi?id=85447
commit 7558251eef610e71595a0aa48952479906cb899a
Author: Santiago Vila <sanvila at unex.es>
Date: Sat Oct 25 10:40:30 2014 -0400
journalctl: correct help text for --until
http://bugs.debian.org/766598
commit 96343c3039020d55ee64fb4746abee483e05fc29
Author: Lennart Poettering <lennart at poettering.net>
Date: Fri Oct 24 19:29:01 2014 +0200
bus-proxy: it's OK if getpeercred doesn't work
We should use the data if we can (if stdin/stdout is an AF_UNIX socket),
but still work if we can't (if stdin/stdout are pipes, like in the SSH
case).
This effectively reverts 55534fb5e4742b0db9ae5e1e0202c53804147697
commit 455cd8b137b8ef45d04889f2d967c562a097f1e6
Author: Lennart Poettering <lennart at poettering.net>
Date: Fri Oct 24 19:24:53 2014 +0200
sd-bus: if we don't manage to properly allocate the error message for an sd_bus_error, just go on
sd_bus_error_setfv() must initialize the sd_bus_error value to some
sensible value and then return a good errno code matching that. If it
cannot work at all it should set the error statically to the OOM error.
But if it can work half-way (i.e. initialize the name, but not the
message) it should do so and still return the correct errno number for
it.
This effectively reverts 8bf13eb1e02b9977ae1cd331ae5dc7305a305a09
commit bb1fada8cc691821ade680c36dfb2be13e0658d6
Author: Lennart Poettering <lennart at poettering.net>
Date: Fri Oct 24 19:10:09 2014 +0200
time: don't do comparison twice
commit 75a5f1d837739fc84a7c5af14797490774a10646
Author: Lennart Poettering <lennart at poettering.net>
Date: Fri Oct 24 19:09:36 2014 +0200
time: minor simplification
commit 65de0395ffe1cfb0f9af86504e8588fb31bb0fbc
Author: Lennart Poettering <lennart at poettering.net>
Date: Fri Oct 24 19:08:22 2014 +0200
time: earlier exit from format_timestamp_relative() on special times
commit e73c78c27511b03c7abc55aed87896092c0de699
Author: Lennart Poettering <lennart at poettering.net>
Date: Fri Oct 24 19:07:26 2014 +0200
time: also support 'infinity' syntax in parse_nsec()
Let's make parse_usec() and parse_nsec() work similar
commit afe3ab588a6b2992efe5a9b22ed038545ba3cdbf
Author: Lennart Poettering <lennart at poettering.net>
Date: Fri Oct 24 19:07:01 2014 +0200
update TODO
commit 4bdc60cb6fab336d455abbbd269e5bfccf760c91
Author: Lennart Poettering <lennart at poettering.net>
Date: Fri Oct 24 19:06:23 2014 +0200
NEWS: more preparations for 217
commit a572b2e00685af01b8b593e2f20c263b22840b32
Author: Lennart Poettering <lennart at poettering.net>
Date: Fri Oct 24 18:48:11 2014 +0200
delta: use wait_for_terminate_and_warn() to generate warnin when diff fails
commit 0b76b4d8c28e8d82422ddeea2cc3c079fe4bb3dc
Author: Lennart Poettering <lennart at poettering.net>
Date: Fri Oct 24 18:33:29 2014 +0200
calendar: make freeing a calendar spec object deal fine with NULL
In order to make object destruction easier (in particular in combination
with _cleanup_) we usually make destructors deal with NULL objects as
NOPs. Change the calendar spec destructor to follow the same scheme.
commit 69f0081748fb4be1b7b772815e5c4202cdb88d3d
Author: Lennart Poettering <lennart at poettering.net>
Date: Fri Oct 24 18:32:30 2014 +0200
timesyncd: the IP_TOS sockopt is really just an optimization, we shouldn't fail if we can't set it
This partially undos 2f905e821e0342c36f5a5d3a51d53aabccc800bd
commit 06cbf7f24e5053e70c74731a12c2368b5704a4a4
Author: Lennart Poettering <lennart at poettering.net>
Date: Fri Oct 24 16:52:55 2014 +0200
update TODO
commit ea7061e4d431c3e03212243f65148f2e985d80b7
Author: Jan Janssen <medhefgo at web.de>
Date: Thu Oct 23 19:37:29 2014 +0200
journalctl: Unify boot id lookup into common function get_boots
commit 2ec62d8e846a8d15f6e3002690da70500168ff46
Author: WaLyong Cho <walyong.cho at samsung.com>
Date: Fri Oct 24 13:51:09 2014 +0900
udev: do NOT re-label smack
If selinux is disabled and smack is only enabled, smack label is
relable-ed by label_fix. To avoid, make only be labeled for selinux.
commit 4dffec1459f50ac9f8f67ccfcb79836b4ed5a50e
Author: Lennart Poettering <lennart at poettering.net>
Date: Fri Oct 24 13:44:45 2014 +0200
manager: Linux on hppa has fewer rtsigs, hence avoid using the higher ones there
https://bugs.freedesktop.org/show_bug.cgi?id=84931
commit 820c095831a352e669be23e5471f11e15b6db344
Author: Klaus Purer <klaus.purer at gmail.com>
Date: Fri Oct 24 13:03:15 2014 +0200
man: remove another gendered pronoun
commit b26c631ac99ac7f4f5cfa5b9b933f0bb22cace97
Author: Klaus Purer <klaus.purer at gmail.com>
Date: Fri Oct 24 13:00:57 2014 +0200
journald: removed gendered pronouns in comment
commit 5aaeda04a231d61a15521f7a273986feaad31e80
Author: Lennart Poettering <lennart at poettering.net>
Date: Fri Oct 24 12:30:43 2014 +0200
man: fix minor typo
commit 4a9dfff9bd981a0cfbeab97b6f3a2ee0e13b719c
Author: Lennart Poettering <lennart at poettering.net>
Date: Fri Oct 24 12:07:05 2014 +0200
man: add a link to the XDG basedir spec from the pam_sytemd man page
commit c1405e4f313768519d66f49e0ffcbe964409d150
Author: Lennart Poettering <lennart at poettering.net>
Date: Fri Oct 24 12:02:44 2014 +0200
man: avoid gendered singular pronouns
Using "their" as pronoun in these places is confusing since it is more
associated with plural rather than singular, and the sentence already
contains a plural. The word "her/his" apparently offends some people,
hence let's avoid the problem altogether and just name the noun again.
commit 08cb4bdd70309c5d8e56e0469358c53f49079b74
Author: Lennart Poettering <lennart at poettering.net>
Date: Fri Oct 24 02:22:57 2014 +0200
man: minor addition to coredumpctl example
commit a6fb0dc138d4e7895f8e607493279dbe4df117a1
Author: Hugo Grostabussiat <bonstra at bonstra.fr.eu.org>
Date: Sun Sep 28 03:05:41 2014 +0200
cryptsetup: Fix timeout on dm device.
Fix a bug in systemd-cryptsetup-generator which caused the drop-in
setting the job timeout for the dm device unit to be written with a
name different than the unit name.
https://bugs.freedesktop.org/show_bug.cgi?id=84409
commit a2726e5cedfa5edeabd7e0784be11bc578555ac5
Author: Marius Tessmann <mus.svz at gmail.com>
Date: Fri Aug 29 17:51:45 2014 +0200
shutdown: pass own argv to /run/initramfs/shutdown
Since commit b1e90ec515408aec2702522f6f68c4920b56375b systemd passes
its log settings to systemd-shutdown via command line parameters.
However, systemd-shutdown doesn't pass these parameters to
/run/initramfs/shutdown, causing it to fall back to the default log
settings.
This fixes the following bugs about the shutdown not being quiet
despite "quiet" being in the kernel parameters:
https://bugs.freedesktop.org/show_bug.cgi?id=79582
https://bugs.freedesktop.org/show_bug.cgi?id=57216
commit a07e9cfb790f3f5f492f2ff895a9de65e2b00a09
Author: Lennart Poettering <lennart at poettering.net>
Date: Fri Oct 24 01:15:53 2014 +0200
selinux: fix handling of relative paths when setting up create label
commit 989fc2c61cb3c5376bd8bff6b2cfba9e4d740ffc
Author: Lennart Poettering <lennart at poettering.net>
Date: Fri Oct 24 01:14:38 2014 +0200
man: in pam_systemd, it must be "his" (or "her"), not their
commit 43b133b4e09a0e991ba1680b9ef5458b24f9dcc9
Author: Lennart Poettering <lennart at poettering.net>
Date: Thu Oct 23 23:58:01 2014 +0200
socket: properly label socket symlinks
commit 75514a707c74b69d64a5326ad075728212091cb4
Author: Lennart Poettering <lennart at poettering.net>
Date: Thu Oct 23 23:57:50 2014 +0200
socket: fix error comparison
commit be57e297acd0ae41044c99a7c41f95a8339a314c
Author: Lennart Poettering <lennart at poettering.net>
Date: Thu Oct 23 21:36:38 2014 +0200
label: move is_dir() to util.c
commit c34255bdb217c2a1d3ac6348252437ab8be9ca46
Author: Lennart Poettering <lennart at poettering.net>
Date: Thu Oct 23 19:58:45 2014 +0200
label: unify code to make directories, symlinks
commit f3c80515c191b4447a2b0bc5a582dbffeca4679f
Author: Lennart Poettering <lennart at poettering.net>
Date: Thu Oct 23 19:41:56 2014 +0200
label: don't try to create labelled directories more than once
commit ecabcf8b6edcc856ec2fd5bd43fc675a8fe04731
Author: Lennart Poettering <lennart at poettering.net>
Date: Thu Oct 23 19:41:27 2014 +0200
selinux: clean up selinux label function naming
commit 66cedb3078ebe78174efd51673632eb3bfb9be61
Author: Lennart Poettering <lennart at poettering.net>
Date: Thu Oct 23 19:07:02 2014 +0200
selinux: simplify and unify logging
Normally we shouldn#t log from "library" functions, but SELinux is
weird, hence upgrade security messages uniformly to LOG_ERR when in
enforcing mode.
commit 7f416dae9bcf1cfb63689ee9ac851adf738f072b
Author: Lennart Poettering <lennart at poettering.net>
Date: Thu Oct 23 18:58:18 2014 +0200
selinux: rework label query APIs
APIs that query and return something cannot silently fail, they must
either return something useful, or an error. Fix that.
Also, properly rollback socket unit fd creation when something goes
wrong with the security framework.
commit 376a2980960baba22b9bee6b227c27c373215b5a
Author: Lennart Poettering <lennart at poettering.net>
Date: Thu Oct 23 18:40:03 2014 +0200
smack: we don't need the special labels exported, hence don't
commit 29621421753991b0f10aabfbba89d4ae3c3f033a
Author: Lennart Poettering <lennart at poettering.net>
Date: Thu Oct 23 18:38:01 2014 +0200
selinux: drop 3 unused function prototypes
commit 5dfc54615a1eacea18106383c964425cebd67c30
Author: Lennart Poettering <lennart at poettering.net>
Date: Thu Oct 23 18:34:58 2014 +0200
smack: rework SMACK label fixing code to follow more closely the semantics of the matching selinux code
commit d1ce2089b4b2fb1f1d8faba9a0aa6d9f8fbb0638
Author: Lennart Poettering <lennart at poettering.net>
Date: Thu Oct 23 18:32:22 2014 +0200
smack: never follow symlinks when relabelling
previously mac_smack_apply(path, NULL) would operate on the symlink
itself while mac_smack_apply(path, "foo") would follow the symlink.
Let's clean this up an always operate on the symlink, which appears to
be the safer option.
commit d53e386db62ee7f03e7d493ae0e6db7a31a5d811
Author: Lennart Poettering <lennart at poettering.net>
Date: Thu Oct 23 18:06:51 2014 +0200
smack: rework smack APIs a bit
a) always return negative errno error codes
b) always become a noop if smack is off
c) always take a NULL label as a request to remove it
commit c80d766c8072dd0be311dcd31c17f9719775be44
Author: Lennart Poettering <lennart at poettering.net>
Date: Thu Oct 23 17:49:29 2014 +0200
mac: rename all calls that apply a label mac_{selinux|smack}_apply_xyz(), and all that reset it to defaults mac_{selinux|smack}_fix()
Let's clean up the naming schemes a bit and use the same one for SMACK
and for SELINUX.
commit 1ec220bcda127b63c88f71c4de083d03a547cc53
Author: Lennart Poettering <lennart at poettering.net>
Date: Thu Oct 23 17:40:11 2014 +0200
selinux: make use of cleanup gcc magic
commit 157a180e4fc827606833a6724834ba7b0246d650
Author: Tom Gundersen <teg at jklm.no>
Date: Thu Oct 23 20:14:38 2014 +0200
TODO
commit af951ff5e9964c877c64896dcd76f67eb42d2393
Author: Daniel Mack <daniel at zonque.org>
Date: Thu Oct 23 19:17:19 2014 +0200
man: pam_systemd: some typos fixed, some info added
Just some minor nits that I stumbled over when reading the man page.
commit 7c0b05e58ba6a74317a332c475196c656b321829
Author: Michal Schmidt <mschmidt at redhat.com>
Date: Wed Oct 15 00:23:21 2014 +0200
unit: adjust for the possibility of set_move() failing
commit 7ad63f57b6ce7ae9e3cc19dcb441f0a4494fa3f2
Author: Michal Schmidt <mschmidt at redhat.com>
Date: Wed Oct 15 00:17:51 2014 +0200
hashmap: allow hashmap_move() to fail
It cannot fail in the current hashmap implementation, but it may fail in
alternative implementations (unless a sufficiently large reservation has
been placed beforehand).
commit 09a65f92994445d8fecca34e71b423a8be1769bf
Author: Michal Schmidt <mschmidt at redhat.com>
Date: Wed Oct 15 00:00:30 2014 +0200
unit: place reservations before merging other's dependencies
With the hashmap implementation that uses chaining the reservations
merely ensure that the merging won't result in long bucket chains.
With a future alternative implementation it will additionally reserve
memory to make sure the merging won't fail.
commit 2d5c93c7af05bfa25cad85909acdb7b0bfc3f4e1
Author: Michal Schmidt <mschmidt at redhat.com>
Date: Sat Oct 4 21:29:10 2014 +0200
install, cgtop: adjust hashmap_move_one() callers for -ENOMEM possibility
That hashmap_move_one() currently cannot fail with -ENOMEM is an
implementation detail, which is not possible to guarantee in general.
Hashmap implementations based on anything else than chaining of
individual entries may have to allocate.
hashmap_move_one will not fail with -ENOMEM if a proper reservation has
been made beforehand. Use reservations in install.c.
In cgtop.c simply propagate the error instead of asserting.
commit 8f88aed740ded77af443bb1b7c79bb229b50f8f8
Author: Michal Schmidt <mschmidt at redhat.com>
Date: Wed Oct 15 00:30:54 2014 +0200
test: add test for hashmap_reserve()
commit e4c691b59db60ef2e6d8e64766d6ae02cd0dd457
Author: Michal Schmidt <mschmidt at redhat.com>
Date: Tue Oct 14 23:35:24 2014 +0200
hashmap: introduce hashmap_reserve()
With the current hashmap implementation that uses chaining, placing a
reservation can serve two purposes:
- To optimize putting of entries if the number of entries to put is
known. The reservation allocates buckets, so later resizing can be
avoided.
- To avoid having very long bucket chains after using
hashmap_move(_one).
In an alternative hashmap implementation it will serve an additional
purpose:
- To guarantee a subsequent hashmap_move(_one) will not fail with
-ENOMEM (this never happens in the current implementation).
commit 9700d6980f7c212b10a69399e6430b82a6f45587
Author: Michal Schmidt <mschmidt at redhat.com>
Date: Wed Oct 15 00:36:45 2014 +0200
hashmap: return more information from resize_buckets()
Return 0 if no resize was needed, 1 if successfully resized and
negative on error.
commit b3dcf58e283ff1bcb2c1ffacccb158d6e0c271e6
Author: Michal Schmidt <mschmidt at redhat.com>
Date: Tue Aug 12 23:35:23 2014 +0200
shared: split mempool implementation from hashmaps
commit 1e43061b67336052b5b231840a38508a5397a363
Author: Michal Schmidt <mschmidt at redhat.com>
Date: Fri Aug 22 13:56:51 2014 +0200
resolve: make DnsScope::conflict_queue an OrderedHashmap
on_conflict_dispatch() uses hashmap_steal_first() and then does
something non-trivial with it. It may care about the order.
commit c9fe4af70d2c884c1f95714a81ad6d1de31d5186
Author: Michal Schmidt <mschmidt at redhat.com>
Date: Tue Oct 14 18:27:55 2014 +0200
sd-bus: make sd_bus::reply_callbacks a OrderedHashmap
The way process_closing() picks the first entry from reply_callbacks
and works with it makes it likely that it cares about the order.
commit c1f906bd91c388fd84a006a56e1e6692e23f8ae3
Author: Michal Schmidt <mschmidt at redhat.com>
Date: Tue Aug 19 13:38:53 2014 +0200
journal: make sd_journal::files a OrderedHashmap
Anything that uses hashmap_next() almost certainly cares about the order
and needs to be an OrderedHashmap.
commit 43cf8388ea4ffed1801468d4b650d6e48eefce9e
Author: Michal Schmidt <mschmidt at redhat.com>
Date: Fri Aug 22 13:44:14 2014 +0200
journal: make Server::user_journals an OrderedHashmap
Order matters here. It replaces oldest entries first when
USER_JOURNALS_MAX is reached.
commit 4743015db6ad394bd43efadb0651e3906b4efc25
Author: Michal Schmidt <mschmidt at redhat.com>
Date: Tue Oct 14 17:58:13 2014 +0200
journal: make JournalFile::chain_cache an OrderedHashmap
The order of entries may matter here. Oldest entries are evicted first
when the cache is full.
(Though I don't see anything to rejuvenate entries on cache hits.)
commit 9f03ee51a2207954ef18be79ca3e11cd14ca56fd
Author: Michal Schmidt <mschmidt at redhat.com>
Date: Fri Aug 22 10:35:59 2014 +0200
install: make InstallContext::{will_install,have_installed} OrderedHashmaps
It appears order may matter here. Use OrderedHashmaps to be safe.
commit dd0124f6cb6ff7da1ce8be23ec7e1137fe15958d
Author: Michal Schmidt <mschmidt at redhat.com>
Date: Fri Oct 10 23:30:21 2014 +0200
hashmap: drop assert(h) from hashmap_next()
It's handled just fine by returning NULL.
commit bf3d3e2bb7ae2d3854be57f28dd1403c8f7e4c3c
Author: Michal Schmidt <mschmidt at redhat.com>
Date: Mon Oct 13 18:14:07 2014 +0200
hashmap: hashmap_move_one() should return -ENOENT when 'other' is NULL
-ENOENT is the same return value as if 'other' were an allocated hashmap
that does not contain the key. A NULL hashmap is a possible way of
expressing a hashmap that contains no key.
commit 9ba81d5a61b7c992a1d2e5e02f334b8e2a0b0c22
Author: Michal Schmidt <mschmidt at redhat.com>
Date: Wed Oct 15 11:06:08 2014 +0200
test: add and improve hashmap tests
Test more corner cases and error states in several tests.
Add new tests for:
hashmap_move
hashmap_remove
hashmap_remove2
hashmap_remove_value
hashmap_remove_and_replace
hashmap_get2
hashmap_first
In test_hashmap_many additionally test with an intentionally bad hash
function.
commit 32a4456cc252689f51f383d150d34ed636bfec4d
Author: Michal Schmidt <mschmidt at redhat.com>
Date: Wed Oct 15 11:00:46 2014 +0200
test: generate tests for OrderedHashmap from Hashmap tests
test-hashmap-ordered.c is generated from test-hashmap-plain.c simply by
substituting "ordered_hashmap" for "hashmap" etc.
In the cases where tests rely on the order of entries, a distinction
between plain and ordered hashmaps is made using the ORDERED macro,
which is defined only for test-hashmap-ordered.c.
commit 5ba43716f345e205eba33156c0171fb657f4451f
Author: Michal Schmidt <mschmidt at redhat.com>
Date: Mon Oct 13 18:11:16 2014 +0200
hashmap: add OrderedHashmap as a distinct type
Few Hashmaps/Sets need to remember the insertion order. Most don't care
about the order when iterating. It would be possible to use more compact
hashmap storage in the latter cases.
Add OrderedHashmap as a distinct type from Hashmap, with functions
prefixed with "ordered_". For now, the functions are nothing more than
inline wrappers for plain Hashmap functions.
commit 6baa7db00812437bbc87e73faa1a11b6cf631958
Author: Lennart Poettering <lennart at poettering.net>
Date: Thu Oct 23 17:34:30 2014 +0200
mac: also rename use_{smack,selinux,apparmor}() calls so that they share the new mac_{smack,selinux,apparmor}_xyz() convention
commit cc56fafeebf814ef035e549115cf1850e6473fa5
Author: WaLyong Cho <walyong.cho at samsung.com>
Date: Thu Oct 23 17:23:46 2014 +0900
mac: rename apis with mac_{selinux/smack}_ prefix
commit 66b6d9d5b5b13a97c9f275aed0d9fe5608495be9
Author: WaLyong Cho <walyong.cho at samsung.com>
Date: Thu Oct 23 17:23:45 2014 +0900
label: rearrange mandatory access control(MAC) apis
move label apis to selinux-util.ch or smack-util.ch appropriately.
commit 99a1ab10b05251220ff94a867f198b9302afe346
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Thu Oct 23 00:43:49 2014 -0400
man: add example how to generate certificates with openssl
commit 36d4739a68c3edafe4d145d525a26de4ef0b8e5a
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Wed Oct 22 23:31:56 2014 -0500
journal-upload: return proper exit code
Even when termninated normally, systemd-journal-upload would return
something positive which would be interpreted as failure.
commit cb41ff2922b8a555c01d52e1038ac26360253c15
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Wed Oct 22 23:27:57 2014 -0500
shared/log: add log_trace as compile-time optional debugging
Repetetive messages can be annoying when running with
SYSTEMD_LOG_LEVEL=debug, but they are sometimes very useful
when debugging problems. Add log_trace which is like log_debug
but becomes a noop unless LOG_TRACE is defined during compilation.
This makes it easy to enable very verbose logging for a subset
of programs when compiling from source.
commit 8847551bcbfa8265bae04f567bb1aadc7b480325
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Tue Oct 21 22:32:17 2014 -0400
journal-upload: fix --trust=all option
commit 30776485c5bc2d9c356e875f2aee874d22c393b7
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Wed Oct 22 23:27:25 2014 -0500
journal-upload: avoid calling printf with maximum precision
Precision of INT_MAX does not work as I expected it to.
https://bugzilla.redhat.com/show_bug.cgi?id=1154334
commit d71839afd88589247d8dd42b2b09d024f521749d
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Tue Oct 21 23:34:29 2014 -0400
journal-upload: verify state file can be saved before uploading
Do our best verify that we can actually write the state file
before upload commences to avoid duplicate messages on the server.
commit cb6518345fcc057ca6ed3d037253bb4eeab4d94e
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Tue Oct 21 23:20:59 2014 -0400
socket-util: use IP address when hostname is not found
socknameinfo_pretty() would fail for addresses without reverse DNS,
but we do not want that to happen.
commit a7736b14de340c01580dd4c09145c846d21211b9
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Tue Oct 21 21:05:04 2014 -0400
journal-remote: add --split-mode to help
commit 9ce998b93770708ce992b53e93c3c7781ec9a8a2
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Wed Oct 22 23:18:47 2014 -0500
journal-remote: better error message on failure
Return a proper code instead of simply NULL for failure.
commit 50a0b0717563d08c027a16a896bff8d7754eab9e
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Sat Oct 18 01:36:58 2014 -0400
journal-upload: do not require port to be set
commit 1af719edc5958c01c19204fb68d6fc45c9eea85c
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Sat Oct 18 01:30:54 2014 -0400
systemd-upload: print paths in help()
commit 43300d9d38dd26b197c70401d3054483ba248b95
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Sat Oct 18 01:28:37 2014 -0400
journal-remote: give names to event sources
This possibility was recently added, and it makes debugging much nicer.
commit 42b6bf75e414c4e6ff5b92cda1c76b6b73677cb7
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Sat Oct 18 01:27:10 2014 -0400
journal-upload: fix socket activation
commit a9becdd65bb4b64675bc0c109d14ab12b1ecd2b7
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Tue Oct 21 18:44:09 2014 -0400
sd-daemon,man: ignore missing $WATCHDOG_PID
Systemd 209 started setting $WATCHDOG_PID, and sd-daemon watch was
modified to check for this variable. This means that
sd_watchdog_enabled() stopped working with previous versions of
systemd. But sd-event is a public library and API and we must keep it
working even when a program compiled with a newer version of the
libary is used on a system running an older version of the manager.
getenv() and unsetenv() are fairly expensive calls, so optimize
sd_watchdog_enabled() by not calling them when unnecessary.
man: centralize the description of $WATCHDOG_PID and $WATCHDOG_USEC in
the sd_watchdog_enabled manpage. It is better not to repeat the same
stuff in two places.
commit 203af57fcdced5debfc26e1083eaefa031e322f4
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Wed Oct 22 23:12:50 2014 -0500
man: make udev.event-timeout more visible
Evidently some people had trouble finding it in the documentation.
commit b825ab1a99b69956057c79838faaf7b44afee474
Author: Lennart Poettering <lennart at poettering.net>
Date: Thu Oct 23 01:24:59 2014 +0200
units: run firstboot before sysusers, so that firstboot can initialize the root password
commit 758c4d7a391c0e024737053c815bf3924653b8c5
Author: Lennart Poettering <lennart at poettering.net>
Date: Thu Oct 23 01:09:38 2014 +0200
update TODO
commit 821cc13ddae40fb7608458b44aaa7a3fd33d56d9
Author: Lennart Poettering <lennart at poettering.net>
Date: Thu Oct 23 00:52:21 2014 +0200
update TODO
commit 74055aa76278232ff05574fc47c4e6b3560554a7
Author: Lennart Poettering <lennart at poettering.net>
Date: Thu Oct 23 00:28:17 2014 +0200
journalctl: add new --flush command and make use of it in systemd-journal-flush.service
This new command will ask the journal daemon to flush all log data
stored in /run to /var, and wait for it to complete. This is useful, so
that in case of Storage=persistent we can order systemd-tmpfiles-setup
afterwards, to ensure any possibly newly created directory in /var/log
gets proper access mode and owners.
commit 0e2f14014c65b4d8b30146e414579154cfa932da
Author: Lennart Poettering <lennart at poettering.net>
Date: Thu Oct 23 00:30:04 2014 +0200
cryptsetup: fix an OOM check
commit affcf189153714f0de4d0986d18e2bc1b35c1b20
Author: Lennart Poettering <lennart at poettering.net>
Date: Wed Oct 22 23:20:59 2014 +0200
machine: validate machine names using machine_name_is_valid() instead of string_is_safe()
After all, we know have this as generic validator, so let's be correct
and use it wherver applicable.
commit 505e77caa5cafce27b0dbfcf23e9b28315d167ae
Author: Daniel Mack <daniel at zonque.org>
Date: Wed Oct 22 22:06:53 2014 +0200
sd-bus: fix transition left-overs in sd_bus_get_owner_creds()
sd_bus_get_owner_creds() was only halfly ported over to
_cleanup_bus_creds_unref_.
commit 3bfd4e0c6341b0ef946d2198f089743fa99e0a97
Author: WaLyong Cho <walyong.cho at samsung.com>
Date: Thu Aug 28 21:33:03 2014 +0900
journal: do server_vacuum for sigusr1
runtime journal is migrated to system journal when only
"/run/systemd/journal/flushed" exist. It's ok but according to this
the system journal directory size(max use) can be over the config. If
journal is not rotated during some time the journal directory can be
remained as over the config(or default) size. To avoid, do
server_vacuum just after the system journal migration from runtime.
commit 07a60cc13c48c5f79616b07aad2808bfe809de22
Author: Lennart Poettering <lennart at poettering.net>
Date: Wed Oct 22 20:29:25 2014 +0200
firstboot: don't prohibit re-generating the machine id on the current root fs
If it really is missing it should be safe to create it.
Also see:
http://lists.freedesktop.org/archives/systemd-devel/2014-August/022726.html
commit 8483d73ff158ee0d51ccbba09a470cc6ae9b071a
Author: Lennart Poettering <lennart at poettering.net>
Date: Wed Oct 22 20:24:16 2014 +0200
update TODO
commit 97e1cc8b591ee508382863ae805ed89c00775cf3
Author: Lennart Poettering <lennart at poettering.net>
Date: Wed Oct 22 20:23:45 2014 +0200
journalctl: don't introduce numeric constants with special names, give them names
commit 8f44e3ea3e0821625e584938e54623e7fb381bb8
Author: Daniel Mack <daniel at zonque.org>
Date: Wed Oct 22 19:43:09 2014 +0200
sd-bus: implement sd_bus_get_owner_creds() for kdbus
kdbus learned a new ioctl to tell userspace about a bus creator's
credentials, which is what we need to implement sd_bus_get_owner_creds() for
kdbus.
Move the function from sd-bus.c to bus-control.c to be able to reuse
the bus_populate_creds_from_items() helper.
commit 056f95d0a70413e10e4a4ea9966baabb5a1450ed
Author: Daniel Mack <daniel at zonque.org>
Date: Wed Oct 22 19:17:24 2014 +0200
sd-bus: rename sd_bus_get_owner_uid(), sd_bus_get_owner_machine_id() and sd_bus_get_peer_creds()
Clean up the function namespace by renaming the following:
sd_bus_get_owner_uid() → sd_bus_get_name_creds_uid()
sd_bus_get_owner_machine_id() → sd_bus_get_name_machine_id()
sd_bus_get_peer_creds() → sd_bus_get_owner_creds()
commit 370d7a9c0fe558c5846a2abd919e397639b69506
Author: Daniel Mack <daniel at zonque.org>
Date: Wed Oct 22 19:04:27 2014 +0200
sd-bus: factor out creds item iterator
We will re-use the code to walk items in order to populate a creds object,
so let's factor it out first.
commit a1783d61a8a74dd91028cd065b8a23067419fe0a
Author: Daniel Mack <daniel at zonque.org>
Date: Wed Oct 22 18:44:40 2014 +0200
sd-bus: sync kdbus.h
kdbus learned a new command to query a bus creator's credentials. Sync
kdbus.h first, which also renames some struct to more generic terms.
That is, however, not an ABI break this time.
commit f2a474aea8f82fa9b695515d4590f4f3398358a7
Author: Juho Son <juho80.son at samsung.com>
Date: Thu Sep 11 16:06:38 2014 +0900
journald: add CAP_MAC_OVERRIDE in journald for SMACK issue
systemd-journald check the cgroup id to support rate limit option for
every messages. so journald should be available to access cgroup node in
each process send messages to journald.
In system using SMACK, cgroup node in proc is assigned execute label
as each process's execute label.
so if journald don't want to denied for every process, journald
should have all of access rule for all process's label.
It's too heavy. so we could give special smack label for journald te get
all accesses's permission.
'^' label.
When assign '^' execute smack label to systemd-journald,
systemd-journald need to add CAP_MAC_OVERRIDE capability to get that smack privilege.
so I want to notice this information and set default capability to
journald whether system use SMACK or not.
because that capability affect to only smack enabled kernel
commit fc1ae82cae69d8dbbd9e7a31938810a486fac782
Author: Hans de Goede <hdegoede at redhat.com>
Date: Wed Oct 22 14:09:21 2014 +0200
hwdb: Add mapping for special keys on compaq ku 0133 keyboards
The compaq ku 0133 keyboard has 8 special keys at the top:
http://lackof.org/taggart/hacking/keyboard/cpqwireless.jpg
3 of these use standard HID usage codes from the consumer page, the 5
others use part of the reserved 0x07 - 0x1f range.
This commit adds mapping for this keyboard for these reserved codes, making
the other 5 keys work.
Cc: Hans de Goede <hdegoede at redhat.com>
Signed-off-by: Hans de Goede <hdegoede at redhat.com>
commit f62531c57204d25530491cfc6dda8d69c60f692e
Author: Lennart Poettering <lennart at poettering.net>
Date: Wed Oct 22 16:54:06 2014 +0200
update TODO
commit a5f035960006556beab51c42e6948985635e261a
Author: Lennart Poettering <lennart at poettering.net>
Date: Wed Oct 22 16:52:38 2014 +0200
resolved: simplify detection of packets from the loopback device
We can simplify our code quite a bit if we explicitly check for the
ifindex being 1 on Linux as a loopback check. Apparently, this is
hardcoded on Linux on the kernel, and effectively exported to userspace
via rtnl and such, hence we should be able to rely on it.
commit 91c40d86120f3bf033539a53c971d99f5dd70708
Author: Torstein Husebø <torstein at huseboe.net>
Date: Wed Oct 22 16:00:46 2014 +0200
networkd: Fix a couple of typos
commit b680a194bf9ed4c6470f07da1d88421e643b8a63
Author: Daniel Mack <daniel at zonque.org>
Date: Wed Oct 22 13:39:51 2014 +0200
sd-bus: assert clock_gettime()'s return value
Don't handle clock_gettime() errors gracefully but use assert_se().
commit b857e042d621ffb98a652f33850b431fafbece43
Author: Lennart Poettering <lennart at poettering.net>
Date: Wed Oct 22 12:40:49 2014 +0200
update TODO
commit fdbbad981cc5da8bb4ed7e9b6646e7a114745ec5
Author: Lennart Poettering <lennart at poettering.net>
Date: Wed Oct 22 12:37:08 2014 +0200
README: simplify documented dependency on util-linux
we stritcly require features from util-linux v2.25, such a new version
is not optional, hence document this.
commit 48d3e8d07f2978f001cc85b2dddb7f8ec9d07006
Author: Karel Zak <kzak at redhat.com>
Date: Wed Oct 22 10:28:42 2014 +0200
fsck: re-enable fsck -l
The -l (lock) has been temporary disabled due to conflict with
udev (https://bugs.freedesktop.org/show_bug.cgi?id=79576)
The problem is fixed since util-linux v2.25 (Jul 2014).
commit 39bb33c19203bdcd8857e9dc9ee6c8f03da77b71
Author: Lennart Poettering <lennart at poettering.net>
Date: Wed Oct 22 11:45:01 2014 +0200
Update TODO
commit 61f33134fc9231e07e1b9519b140d68139e9fad0
Author: Lennart Poettering <lennart at poettering.net>
Date: Wed Oct 22 11:09:00 2014 +0200
CODING_STYLE: clarify that single-line if blocks should not be enclosed in {}
commit 03785ad0e51b061efb9f9b3f2e328685f9a866aa
Author: Daniel Mack <daniel at zonque.org>
Date: Tue Oct 21 22:14:03 2014 +0200
sd-bus: sync kdbus.h (API change: switch to absolute timeouts)
kdbus_msg.timeout_ns now takes an absolute value, based on CLOCK_MONOTONIC,
in order to eventually support automatically restarted syscalls.
Signed-off-by: Daniel Mack <daniel at zonque.org>
commit bc75205c773313a38a6958a6905a99bd56029196
Author: Daniel Mack <daniel at zonque.org>
Date: Tue Oct 21 19:19:44 2014 +0200
sd-bus: sync kdbus.h (ABI break)
In kdbus.h, the following details changed:
* All commands gained a 'kernel_flags' field to report the flags supported
by the driver. Before, this was done in the 'flags' field in a
bidirectional way, which turned out to be a problem for the code in
sd-bus, as many parts of it reuse the same ioctl struct more than once
and consider them to be owned by userspace.
* Name listings are now returned by a new struct instead of reusing struct
kdbus_cmd_name for that matter. This way, we don't add more unneeded
fields to it and make the API cleaner.
* 'conn_flags' was renamed to 'flags' in struct kdbus_cmd_hello to make
the API a bit more unified.
commit 14f27b4e3b009d10bb9a3b43b74585c73a7c7626
Author: Michal Schmidt <mschmidt at redhat.com>
Date: Tue Oct 21 14:36:03 2014 +0200
strv: use realloc_multiply() to check for multiplication overflow
This could overflow on 32bit, where size_t is the same as unsigned.
commit 97569e154b80541cbad39d78231b7f360d4ff058
Author: Lennart Poettering <lennart at poettering.net>
Date: Tue Oct 21 14:01:28 2014 +0200
strv: add an additional overflow check when enlarging strv()s
https://bugs.freedesktop.org/show_bug.cgi?id=76745
commit bb604b2f42e8769947c6cf1c0242760ceb320929
Author: Ronny Chevalier <chevalier.ronny at gmail.com>
Date: Sun Oct 12 00:37:21 2014 +0200
man: add examples for coredumpctl
Add examples to clarify how to use coredumpctl
See https://bugs.freedesktop.org/show_bug.cgi?id=83437
commit c45827d6e70baf6b683d7cafb13a9a6f02852731
Author: Ronny Chevalier <chevalier.ronny at gmail.com>
Date: Sun Oct 12 00:37:24 2014 +0200
man: fix project reference for archlinux
commit d4873485cf4fb223598f3b2fcf81e22cc8bb9456
Author: Ronny Chevalier <chevalier.ronny at gmail.com>
Date: Sun Oct 12 00:37:22 2014 +0200
man: add missing commas
commit 0b3b83e59b637660524e90a07f9ef691856b19bf
Author: Lennart Poettering <lennart at poettering.net>
Date: Tue Oct 21 01:11:14 2014 +0200
man: move one more nspawn example into a proper <example> section
commit 1db8c66f2e500272cb5582f9087b8e2a123aee10
Author: Ronny Chevalier <chevalier.ronny at gmail.com>
Date: Sun Oct 12 00:37:23 2014 +0200
man: use <example> instead of multiple <refsect1> for examples
commit e2e07fec7b3002a19da48845a0985c7e8dc6cc84
Author: Ronny Chevalier <chevalier.ronny at gmail.com>
Date: Sat Oct 11 18:43:12 2014 +0200
shared: remove unused functions
- mkdir_p_prefix: It has never been used
- mkdir_parents_prefix_label: Unused since 1434ae6fd49f8377b0ddbd4c675736e0d3226ea6
commit e4746b57387ffaf8be01c177ed4bbf02c8088341
Author: Ronny Chevalier <chevalier.ronny at gmail.com>
Date: Sat Oct 11 18:45:11 2014 +0200
util: avoid duplication of TIME_T_MAX
commit 6dab5bb18151c80fc39bd51f03dcff40b920de3e
Author: Lennart Poettering <lennart at poettering.net>
Date: Mon Oct 20 22:03:36 2014 +0200
update TODO
commit 1cdf717550971ea4e3c637dc964822062645eaed
Author: Christian Hesse <mail at eworm.de>
Date: Mon Oct 13 22:12:33 2014 +0200
sd-journal: consistently use ternary operator for all direction checks
commit 2dd1ca3fd696dfeffadf35ad6847af4df84f51e4
Author: Lennart Poettering <lennart at poettering.net>
Date: Mon Oct 20 21:50:37 2014 +0200
bus-proxy: let's make use of the translated errors get_creds_by_name() provides us with
commit 24078eebf3eb1fbda9a4a4478a85ea36c028f0ec
Author: Lennart Poettering <lennart at poettering.net>
Date: Mon Oct 20 21:46:09 2014 +0200
Revert "bus-proxyd: improve compatibility with dbus-1"
This reverts commit b0f84d4d7832659f2216bda7a7cdf51f5e79c6eb.
get_creds_by_name() already translate the error nicely, we just need to
make use of it.
commit 388ce34425fe838dc47583e6686b93bac2f7c617
Author: Lennart Poettering <lennart at poettering.net>
Date: Mon Oct 20 21:06:14 2014 +0200
man: try to reword explanation of Sockets= a bit
commit 659b937e670a5cb423a274b97b1eb60abd7d218f
Author: Lukasz Skalski <l.skalski at samsung.com>
Date: Thu Oct 16 19:01:12 2014 +0200
kdbus: free returned buffer when the memory is no longer needed
commit cd4c6fb12598435fe24431f1dd616f9582f0e3bd
Author: Jan Synacek <jsynacek at redhat.com>
Date: Mon Oct 20 12:43:39 2014 +0200
man: fix localectl set-x11-keymap syntax description
commit 78366f6ee043a99b837945d9ac39997d4fc92fdf
Author: Lennart Poettering <lennart at poettering.net>
Date: Sat Oct 18 16:20:48 2014 +0200
update TODO
commit 5c20a8bca1dd16d64b2dd959a2552f6452448932
Author: Lennart Poettering <lennart at poettering.net>
Date: Sat Oct 18 16:20:36 2014 +0200
man: document sd_bus_creds_get_connection_name()
commit b7ea3f3ed6204dca31f8f2a84b667c1783259c5b
Author: Lennart Poettering <lennart at poettering.net>
Date: Sat Oct 18 16:20:24 2014 +0200
man: suffix C functions with ()
commit 5c8da64734d7dbf4058b3f9f89268f1e093a47b6
Author: Lennart Poettering <lennart at poettering.net>
Date: Sat Oct 18 16:06:21 2014 +0200
man: document sd_machine_get_class() and sd_machine_get_ifindices()
commit e6c253e363dee77ef7e5c5f44c4ca55cded3fd47
Author: Michal Schmidt <mschmidt at redhat.com>
Date: Thu Oct 16 13:49:04 2014 +0200
sysctl.d: default to fq_codel, fight bufferbloat
Quoting from Jon Corbet's report of Stephen Hemminger's talk at Linux
Plumbers Conference 2014 (https://lwn.net/Articles/616241/):
[...] So Stephen encouraged everybody to run a command like:
sysctl -w net.core.default_qdisc=fq_codel
That will cause fq_codel to be used for all future connections
[Qdiscs apply to interfaces, not connections. Pointed out by TomH
in the article comments. -- mschmidt] (up to the next reboot).
Unfortunately, the default queuing discipline cannot be changed,
since it will certainly disturb some user's workload somewhere.
Let's have the recommended default in systemd.
Thanks to Dave Täht for advice and the summary at
https://lists.bufferbloat.net/pipermail/cerowrt-devel/2014-October/003701.html
commit a2243d548830d2aff6b768a0b47a0f0a513012a5
Author: Daniel Mack <daniel at zonque.org>
Date: Mon Oct 20 15:26:00 2014 +0200
sd-bus: sync kdbus.h (ABI break)
kdbus.h now has KDBUS_ATTACH_COMM split into KDBUS_ATTACH_TID_COMM and
KDBUS_ATTACH_PID_COMM. The items were split already, so the change in
systemd is easy.
commit 8fc5cd71be8e7ca3dabc74f487fc7e969ce808f5
Author: Lukas Nykryn <lnykryn at redhat.com>
Date: Thu Oct 16 09:41:02 2014 +0200
shell-completion/bash: add add-wants and add-requires
commit 4a3e79e1b6ac12b15efb46df0c42275376ee8e7b
Author: Daniel Mack <daniel at zonque.org>
Date: Sat Oct 18 20:57:53 2014 +0200
sd-bus: sync kdbus.h (ABI break)
In kdbus.h, the 'features' field has been dropped again. Instead of
negotiating features that way, we decided to make the kernel return the
set of supported flags in each ioctl struct's .flags field, in both the
success and error cases.
commit e7bc519620cb7bcdbe2166fc2a446453769d827e
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Thu Oct 16 19:15:38 2014 -0500
systemd: try harder to bind to notify socket
Without the socket open we are going to crash and burn. If for
whatever reason we fail during deserialization we will fail when
trying to open the socket. In this case it is better to unlink the old
socket and maybe lose some messages, than to continue without the
notification socket.
Of course this situation should not happen, but we should handle
it as gracefully as possible anyway.
https://bugzilla.redhat.com/show_bug.cgi?id=1099299
commit 46849c3fb1d92882ec456fdbf445a175c13fba9c
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Thu Oct 16 19:13:45 2014 -0500
systemd: log deserialization errors as warnings
If we failed to parse something that we wrote ourselves,
things are seriously off. This is also likely to lead to
problems futher on.
commit d677d4df80e0ea1c66c691f50867fedd63c6770a
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Thu Oct 16 19:12:55 2014 -0500
systemd: continue switch-root even if umount fails
Leaving the old root around seems better than aborting the
switch.
commit 317cde8b80a611f6194aaba2dad418cc21eefe55
Author: Daniel Mack <daniel at zonque.org>
Date: Fri Oct 17 16:04:49 2014 +0200
nspawn: fix DeviceAllow list
Commit 864e17068 ("nspawn: actually allow access to /dev/net/tun in the
container") added "/dev/net/tun" to the list of allowed devices but forgot
to tweak the array length, which caused "/dev/kdbus/*" to be missed.
commit 7491ccf2cb237a2a88b831b2c7374ba2bb255cba
Author: Lukas Nykryn <lnykryn at redhat.com>
Date: Fri Oct 17 11:46:01 2014 +0200
environment: append unit_id to error messages regarding EnvironmentFile
commit c7e4a7bece7a5c4484d229dd5e8ff01a5d49c62e
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Thu Oct 16 18:29:45 2014 -0400
missing: remove fanotify
It was only used in readahead.
commit 8fa6cbe1a9f3f3353224116772619a4d3eb26f88
Author: Lennart Poettering <lennart at poettering.net>
Date: Fri Oct 17 13:54:27 2014 +0200
execute: downgrade namespace error to "warning"
Also, extend the printed warning a bit, explaining the situation more
verbosely.
commit 8a25e11e6c4b74b7e5299792601e352ee96b8207
Author: Lennart Poettering <lennart at poettering.net>
Date: Fri Oct 17 13:49:01 2014 +0200
update TODO
commit a004cb4cb2271e04e87d4fd6f7353307038e83ea
Author: Lennart Poettering <lennart at poettering.net>
Date: Fri Oct 17 13:48:55 2014 +0200
namespace: add missing 'const' to parameters
commit 342641fb47618b783aeb3cdb65733afdb85b2260
Author: Lennart Poettering <lennart at poettering.net>
Date: Mon Oct 13 17:44:37 2014 +0200
systemctl: by default interactively ask for polkit authorization, if possible
Also, allow using --no-ask-password to turn off ineractive polkit
authorization.
commit 0015ebf3fa524d414a947bdf0814782a8ee00799
Author: Michal Sekletar <msekleta at redhat.com>
Date: Fri Oct 17 11:51:46 2014 +0200
execute: don't fail child when we don't have privileges to setup namespaces
If we don't have privileges to setup the namespaces then we are most likely
running inside some sort of unprivileged container, hence not being able to
create namespace is not a problem because spawned service can't access host
system anyway.
commit c32195e057e5bf903c2645e273ba82f32c0106d3
Author: Kay Sievers <kay at vrfy.org>
Date: Fri Oct 17 10:09:14 2014 +0200
Revert "sd-bus: sync kdbus.h (ABI break)"
This reverts commit 1a2409e262da65a4b0ca8ab18fcf5eabd2d404ca.
Support from the kdbus interface was removed. We require
memfds to be supported by all clients.
commit f60e98b33646e7a3317553e13bac591a98ce41c0
Author: Lukasz Skalski <l.skalski at samsung.com>
Date: Thu Oct 16 18:50:13 2014 +0200
resolve: add missing header
Change-Id: I64f7c6b446f6d92057c35cc3d4e29bd2bad8f75b
commit 9536cf93b9830257a133ea142f0627fad84ab30c
Author: Tom Gundersen <teg at jklm.no>
Date: Thu Oct 16 14:29:06 2014 +0200
terminal: log unsupported ANSI or DEC mode changes
commit 7ee738ec330620e97f47068cc2474fcf810b0c86
Author: Tom Gundersen <teg at jklm.no>
Date: Thu Oct 16 14:27:34 2014 +0200
terminal: split ANSI from DEC mode changes
commit 80d3d25d0989c25245bd27df006dcaa8c4a5c14a
Author: David Strauss <david at davidstrauss.net>
Date: Wed Oct 15 16:50:44 2014 +0200
man: fix copy/paste error in CPUQuota= section of resource-control
commit 97426dcfca64b2a259d81335da1dab63fe6f51dd
Author: Jan Synacek <jsynacek at redhat.com>
Date: Wed Oct 15 10:46:20 2014 +0200
man: fix typos
commit 5e78424f4a27c07be50e246308035c877f204038
Author: Michal Sekletar <msekleta at redhat.com>
Date: Mon Oct 13 15:25:09 2014 +0200
selinux: fix potential double free crash in child process
Before returning from function we should reset ret to NULL, thus cleanup
function is nop.
Also context_str() returns pointer to a string containing context but not a
copy, hence we must make copy it explicitly.
commit 3e883473a0f36c220fc45ecf61d6878c9ac308b4
Author: Lukas Nykryn <lnykryn at redhat.com>
Date: Wed Oct 15 09:28:31 2014 +0200
man: we don't have 'Wanted' dependency
commit 14759eeb7180902e3e1405b9aec225f063ee213a
Author: Lukasz Skalski <l.skalski at samsung.com>
Date: Tue Oct 14 16:13:05 2014 +0200
bus-proxyd: add missing flag translation for RequestName
commit e9a19bd882ff8a2c8aef5c63b39525ea231e5fb9
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Tue Oct 14 21:10:02 2014 -0400
shell-completion: propose templates for disable/[re]enable/[re]start
Templates can be [re]enabled, on their own if the have DefaultInstance set,
and with an instance suffix in all cases. Propose just the template name
ending in @, to underline the instance suffix may have to be appended.
Likewise for start/restart.
This means that sometimes superflous units that one will not really
want to operate on will be proposed, but this seems better than
proposing a very incomplete set of names.
https://bugs.freedesktop.org/show_bug.cgi?id=66912
commit f29c77bc0179b0fa57407dbe30b495be9f5ad2e8
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Tue Oct 14 20:20:07 2014 -0400
shell-completion: fix completion of inactive units
Units which not loaded were not proposed properly. OTOH, we should
filter units from get-unit-files by their state if they are currently
loaded. Bring zsh completions in line with bash completion, the same
logic should be used in both implementations.
https://bugzilla.redhat.com/show_bug.cgi?id=1024379
https://bugzilla.redhat.com/show_bug.cgi?id=790768
https://bugs.freedesktop.org/show_bug.cgi?id=84720
commit 1f8af042d99cf40543dad0ec049cf7aa2911feba
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Sun Oct 12 22:27:20 2014 -0400
journal-remote: fix mem leak on error
commit 1a2409e262da65a4b0ca8ab18fcf5eabd2d404ca
Author: Daniel Mack <daniel at zonque.org>
Date: Tue Oct 14 20:03:06 2014 +0200
sd-bus: sync kdbus.h (ABI break)
kdbus learned KDBUS_HELLO_ACCEPT_MEMFD as new connection negotiation
flag. Set it by default in systemd for now.
commit b0f84d4d7832659f2216bda7a7cdf51f5e79c6eb
Author: Lukasz Skalski <l.skalski at samsung.com>
Date: Mon Oct 13 15:29:57 2014 +0200
bus-proxyd: improve compatibility with dbus-1
'GetConnectionUnixProcessID', 'GetConnectionUnixUser' and
'GetConnectionSELinuxSecurityContext' methods should return
'NameHasNoOwner' error (if chosen name is not available on bus)
with more detailed description - like dbus-1:
Could not get PID of name 'org.freedesktop.test': no such name.
Could not get UID of name 'org.freedesktop.test': no such name.
Could not get security context of name 'org.freedesktop.test': no such name.
Otherwise we have only laconic message without proper dbus error:
Error System.Error.ENXIO: No such device or address
commit 9ff5ff320ec71fec7f2c841223380665794afd07
Author: Dave Reisner <dreisner at archlinux.org>
Date: Tue Oct 14 07:54:56 2014 -0400
python-systemd: avoid hitting assert in __exit__
Reader_close() asserts that 'args' is always NULL, but the __exit__
function forwards a non-NULL args.
commit a5a807e63a50314e190e9166d8a453cd8dd258e3
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Mon Oct 13 22:27:43 2014 -0400
resolved: apply label to /run/systemd/resolve/resolv.conf
Under an SELinux system, we want the file that is created to
have a proper context, different from the default for files in /run.
This is so that the policy can give access to almost everyone to
this file.
commit 4713135eae4f7b6b670a98476fe413edfa1d9f41
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Mon Oct 13 21:28:32 2014 -0400
resolved: split out writing of resolv.conf
manager_write_resolv_conf() is quite long anyway.
commit b911eb15602ad173b1b938f351e2116789bd2c71
Author: Lennart Poettering <lennart at poettering.net>
Date: Mon Oct 13 17:17:48 2014 +0200
bus: check allow-interactive-auhtorization flag when doing polkit
commit 53a83f4bc037379b48a078b748287d333569ccfb
Author: Lennart Poettering <lennart at poettering.net>
Date: Mon Oct 13 17:16:56 2014 +0200
sd-bus: add support for new allow-interactive-authorization message header flag
commit b576fcf43a32c0bb2e3f8a4f61770d2cdac00fcb
Author: Lennart Poettering <lennart at poettering.net>
Date: Mon Oct 13 17:16:12 2014 +0200
polkit: as we dropped support for the polkit bus transport, also drop its polkit policy
commit 0f0cf2f00f576160661873bb2f15580145ee30a9
Author: Lennart Poettering <lennart at poettering.net>
Date: Mon Oct 13 15:45:56 2014 +0200
update TODO
commit 08073121d8171f8e6be27b0c80e2ec283064760e
Author: Lennart Poettering <lennart at poettering.net>
Date: Mon Oct 13 15:43:09 2014 +0200
systemctl: when mangle unit names for the "isolate", suffix with ".target" rather than ".service" by default
After all, we set AllowIsolate exclusively for target units so far, and
this is more or less the only thing tht makes sense, hence also use
".target" as completion suffix by default.
commit 2fc9a280cc47f455e7dffd3c4321da3f8ab65a58
Author: Lennart Poettering <lennart at poettering.net>
Date: Mon Oct 13 15:41:42 2014 +0200
systemctl: move unit action table closer to the functions that use them
All other static tables we placed next to the functions that access
them, so let's do this for the unit action table too.
commit 70ae006b4380ed6a72211ff8aa70aac2ff381a42
Author: Marko Myllynen <myllynen at redhat.com>
Date: Mon Oct 13 10:45:00 2014 +0300
fi-latin1 console keymap is no more
http://git.altlinux.org/people/legion/packages/kbd.git?p=kbd.git;a=commitdiff;h=a88711232f3216debbb02d0171187442863ccedb
commit fc292b5f5854f83379301affe97d909c7c18d702
Author: Tom Gundersen <teg at jklm.no>
Date: Mon Oct 13 10:07:05 2014 +0200
test-dhcp-client: add more asserts
commit e7aab5412829ed6b50d109f670bd0b1b365838a7
Author: Dave Reisner <dreisner at archlinux.org>
Date: Sat Oct 11 20:35:06 2014 -0400
tmpfiles: compare return against correct errno
name_to_handle_at returns -EOPNOTSUPP, not -ENOTSUP.
commit 654c2d478f50ffbb367dbdc3745f795fcc34574b
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Sun Oct 12 17:27:53 2014 -0500
man: join tables in systemd-detect-virt(1)
I think it is more readable and nicer if everything is in
one table.
Also, describe what the return value, since it seems awkward to
describe the change in behaviour with --quiet before describing
what the default is.
commit 8d1d1bf20a1a6175decff979f6b95d831e0b3fc8
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Sun Oct 12 16:05:49 2014 -0400
tests: fix some tests to pass in koji
FAIL: test-engine
=================
Cannot find cgroup mount point: No such file or directory
Assertion 'r >= 0' failed at ../src/test/test-engine.c:46, function main(). Aborting.
FAIL: test-sched-prio
=====================
Cannot find cgroup mount point: No such file or directory
Assertion 'r >= 0' failed at ../src/test/test-sched-prio.c:42, function main(). Aborting.
FAIL: test-bus-cleanup
======================
Assertion 'sd_bus_open_system(&bus) >= 0' failed at ../src/libsystemd/sd-bus/test-bus-cleanup.c:40, function test_bus_open(). Aborting.
after new: refcount 1
commit a158dbf156acc8899806fe07daa295464e82b52b
Author: Brandon L Black <blblack at gmail.com>
Date: Sat Oct 11 23:36:06 2014 +0000
Set $NOTIFY_SOCKET for control procs if NotifyAccess=all
commit b1389b0d0805392570085acc7cb10eafcf885405
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Sat Oct 11 11:37:37 2014 -0400
Modernization
commit 4623e36006c1428e876c9a326b43f713cfec658e
Author: David Herrmann <dh.herrmann at gmail.com>
Date: Sat Oct 11 18:53:26 2014 +0200
NEWS: don't mention noinst_* debug programs
systemd-evcat and systemd-modeset are not installed systemd wide and
should really just be used by developers to test the libsystemd-terminal
features. No reason to mention it in NEWS.. despite the undulating
rainbows..
commit f08f302732c0597c83ec6b8022aa82faffb116f9
Author: David Herrmann <dh.herrmann at gmail.com>
Date: Sat Oct 11 18:49:20 2014 +0200
terminal/grdrm: force deep modeset on enter
Usually, when our session is activated (or re-configurated) we should be
able to try a page-flip to our buffer. The kernel driver should reject it
if it is incompatible. As it turns out, drivers don't do this. Therefore,
we now force a deep modeset if we're not sure what mode is set.
This has the side-effect that we might get glitches on session-switches
(depending on driver behavior). However, there's no way around this and it
is what everyone does so far. Most drivers still detect if we keep the
mode and so don't touch the clocks. Therefore, we just get a regular async
flip.
commit 76253e73f9c9c24fec755e485516f3b55d0707b4
Author: Dan Williams <dcbw at redhat.com>
Date: Wed Oct 8 14:15:45 2014 -0500
sd-dhcp-client: support non-Ethernet hardware addresses
Like Infiniband. See RFC 4390 section 2.1 for details on DHCP
and Infiniband; chaddr is zeroed, hlen is set to 0, and htype
is set to ARPHRD_INFINIBAND because IB hardware addresses
are 20 bytes in length.
commit 5482192e5774f52f2af0665a3b58539295e9c0a4
Author: Michael Scherer <misc at zarb.org>
Date: Sat Oct 11 04:13:43 2014 -0400
Report aa_change_onexec error code
Since aa_change_onexec return the error code in errno, and return
-1, the current code do not give any useful information when
something fail. This make apparmor easier to debug, as seen on
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=760526
commit 547e849b722e597d70ba069e2cb8931317d66e00
Author: Lukasz Skalski <l.skalski at samsung.com>
Date: Fri Oct 10 16:42:19 2014 +0200
bus-proxyd: fix compatibility with old dbus-1
'ListQueuedOwners' method should return 'NameHasNoOwner' error
if chosen name is not available on bus.
commit 0fff82e5f867f9494ed631736964d9abfe672673
Author: Emil Renner Berthing <systemd at esmil.dk>
Date: Thu Sep 18 15:24:55 2014 +0200
mount-setup: skip relabelling when SELinux and SMACK not supported
This is also the only place where FTW_ACTIONRETVAL is used, so
this makes systemd compile without SELinux or SMACK support
when the standard library doesn't support this extension.
commit 9f103625b145a397e67c3714766775b615c8b587
Author: Tobias Hunger <tobias.hunger at gmail.com>
Date: Thu Oct 9 21:37:17 2014 +0200
fstab-generator: Honor mount.usr*= on kernel command line
This allows to configure boot loader entries for systems where the
root and usr filesystems are in different subvolumes (or even on
different drives).
commit 82279e696605fe4eeadd1ca3744c76c8790f885b
Author: Lukasz Skalski <l.skalski at samsung.com>
Date: Fri Oct 10 12:29:04 2014 +0200
kdbus: fix buffer overflow in bus_get_owner_kdbus() function
Commit 710fc9779b7c (kdbus repo) introduced attaching items[]
instead of name[] in kdbus_cmd_conn_info struct. Commit 581fe6c81
(systemd repo) caught up with this change, but item size was not
properly calculated.
commit e737ef153c41435f1ad42b51233eedfb279e2ff7
Author: Lennart Poettering <lennart at poettering.net>
Date: Fri Oct 10 12:37:21 2014 +0200
man: reference table in systemd-detect-virt(1) from ConditionVirtualization= documentation
commit 26d32dc5ee6d288108001f3fb7d45e25be441e14
Author: Lennart Poettering <lennart at poettering.net>
Date: Fri Oct 10 12:36:57 2014 +0200
man: include zVM in systemd-detect-virt list
commit a9d9ad1fa7d528f49ecf9c971f840b5fe135119d
Author: Lennart Poettering <lennart at poettering.net>
Date: Fri Oct 10 12:29:08 2014 +0200
man: rework VM/container identifier list into a table, and include descriptions for all entries
(also remove chroot from the list, we don't detect that anymore)
commit 864e17068ce9acf418d42a625141884293170952
Author: Lennart Poettering <lennart at poettering.net>
Date: Fri Oct 10 11:11:25 2014 +0200
nspawn: actually allow access to /dev/net/tun in the container
It's not sufficient to just copy the device node over, we need to update
the policy for it too.
commit 5516ae44198b5128f2afd93c7fb7973f89e2bfd9
Author: Ivan Shapovalov <intelfx100 at gmail.com>
Date: Thu Oct 9 23:52:26 2014 -0400
systemd-hibernate-resume at .service: remove unnecessary ordering
They were left from an early review iteration, when hibernate-resume
functionality was intended to work also outside of initramfs.
Now this is not the case, and these dependencies became redundant
as systemd-fsck-root.service can never be part of initramfs, and
systemd-remount-fs.service makes little sense in it.
commit 65e3a2cf7c3b399853dd309f702ca5078b7d16ea
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Thu Oct 9 22:30:45 2014 -0500
build-sys: use -Wno-gnu-variable-sized-type-not-at-end under clang
Otherwise we get useless warnings about journal code.
commit 4f47bb8c5e5f234c614dc14532a9483328e61002
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Thu Oct 9 22:25:01 2014 -0500
build-sys: use -Wno-typedef-redefinition only for clang
Our checks for -Wno-xxx switches do not work with gcc [1].
[1] https://gcc.gnu.org/wiki/FAQ#wnowarning
commit afea8d3853d0f76b3845729ff00e75d281f43a1b
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Tue Oct 7 20:01:02 2014 -0400
Update TODO
commit b3a2a7ceb7b0db3003c205bc49853fd62df155dc
Author: Rahul Sundaram <metherid at gmail.com>
Date: Thu Oct 9 22:14:36 2014 -0400
man: clarify what "microsoft" and "oracle" stand for
https://bugzilla.redhat.com/show_bug.cgi?id=1150477
commit 8c06592fa10c08d94f0841548516e72d08366e85
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Thu Oct 9 22:57:56 2014 -0400
systemctl: remove casts in formatting
commit cab9b000f28a940e92d1d4241d967cad94c650e3
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Thu Oct 9 19:52:31 2014 -0400
journalctl: use pager for --list-boots
commit 06cc69d44c8ff2b652527357f28acd4cbe77c814
Author: Jan Janssen <medhefgo at web.de>
Date: Sat Sep 6 10:36:34 2014 +0200
sd-journal: fix sd_journal_enumerate_unique skipping values
sd_journal_enumerate_unique will lock its mmap window to prevent it
from being released by calling mmap_cache_get with keep_always=true.
This call may return windows that are wider, but compatible with the
parameters provided to it.
This can result in a mismatch where the window to be released cannot
properly be selected, because we have more than one window matching the
parameters of mmap_cache_release. Therefore, introduce a release_cookie
to be used when releasing the window.
https://bugs.freedesktop.org/show_bug.cgi?id=79380
commit 853bd5cc72a0d4cbdd07cc3cabc65bef333a0c71
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Thu Oct 9 22:51:35 2014 -0400
sd-journal: change check to assert
As of 0f99f74a14 'sd-journal: verify that object start with the field
name' this condition should never happen.
commit 360af4cf6f18469df97c11af4cd5696e0ca8b3ef
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Thu Oct 9 22:44:29 2014 -0400
sd-journal: do not reset sd_j_enumerate_unique position on error
systemctl would call sd_j_enumerate_unique() interleaved with
sd_j_next(). But the latter can remove a file if it detects an
error in it. In those circumstances sd_j_enumerate_unique would
restart with the first file in hashmap. With many corrupted files
sd_j_enumerate_unique might iterate over the list multiple times.
Avoid this by jumping to the next file in unique list if possible,
or setting a flag that tells sd_j_enumerate_unique that it is done
otherwise.
commit f280bcfb21aacce03abf17b3ad732c1351df42b9
Author: Lennart Poettering <lennart at poettering.net>
Date: Thu Oct 9 18:26:47 2014 +0200
man: document the new "rescue" kernel command line option
commit 6041a7ee2c1bbff6301082f192fc1b0882400d42
Author: Michal Schmidt <mschmidt at redhat.com>
Date: Thu Oct 9 17:27:57 2014 +0200
service: enter SERVICE_STOP_SIGTERM state after getting "STOPPING=1"
SERVICE_STOP would mean we're running the ExecStop command. That's not
the case with "STOPPING=1".
Instead we should enter the same state as if we just told the service
to stop, i.e. SERVICE_STOP_SIGTERM.
This fixes a bug where voluntarily exiting services would hang around in
deactivating state until timeout.
commit 384a4be2b00cb95ce215dd343cc9aa77adc9b1ec
Author: Lennart Poettering <lennart at poettering.net>
Date: Thu Oct 9 16:51:31 2014 +0200
update TODO
commit 7ff3bb4e47fe287997ba24a3b3ae719bd9043d74
Author: Daniel Mack <daniel at zonque.org>
Date: Thu Oct 9 15:40:17 2014 +0200
bus-proxy: allow getpeersec() to fail
getpeersec() will fail for non-SELinux enabled machines, so don't make that
a hard error.
commit 25dbe4f50f93fb6398844ba67ea197f76adc237a
Author: Susant Sahani <susant at redhat.com>
Date: Thu Oct 9 19:01:11 2014 +0530
socket-proxyd: Unchecked return value from library
CID 1237543 (#1 of 1): Unchecked return value from library
(CHECKED_RETURN)
commit ee3a5027f7c56df2ef47a774970433d7045c9e9f
Author: Patrik Flykt <patrik.flykt at linux.intel.com>
Date: Wed Oct 8 11:00:07 2014 +0300
sd-dhcp6-lease: Name the structure containing IAADDR data
With this change the DHCP6_OPTION_IAADDR_LEN define can be removed in
favor of using sizeof(). Using the name of the struct and sizeof()
makes it clearer how much and what data is being copied from the
DHCPv6 message.
commit d46fbfb48deff83943355992e55f9ef4431ff5ef
Author: Daniel Mack <daniel at zonque.org>
Date: Thu Oct 9 13:26:53 2014 +0200
bus-policy: move name list iteration to policy users
We need to figure out which of the possible names satisfied the policy,
so we cannot do the iteration in check_policy_item() but have to leave it
to the users.
Test cases amended accordingly.
commit 374738d55b2bc4ab07c22f9a0be95a76de1c9478
Author: Lukasz Skalski <l.skalski at samsung.com>
Date: Thu Oct 9 11:02:47 2014 +0200
logind: mount per-user tmpfs with 'smackfsroot=*' for smack enabled systems
commit 2134b5ef6b5c944036d051381f4bd7b7e61ef373
Author: Lennart Poettering <lennart at poettering.net>
Date: Thu Oct 9 11:36:34 2014 +0200
man: SyslogIdentifier= has an effect on journal logging too
commit b1543c4c93855b61b40118e9f14a0423dac2e078
Author: Daniel Mack <daniel at zonque.org>
Date: Thu Oct 9 11:26:09 2014 +0200
sd-bus: check return value of asprintf()
Check for OOM conditions of asprintf() in bus_set_address_user().
commit b923047d73f412be40ba162e0b664cff3c17a480
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Wed Oct 8 20:22:51 2014 -0400
systemctl: suggest -xe not -xn
https://bugzilla.redhat.com/show_bug.cgi?id=1150289
commit 706d97503df83d141d241b645d2c920d691b3d62
Author: Lennart Poettering <lennart at poettering.net>
Date: Thu Oct 9 01:46:31 2014 +0200
update TODO
commit f95387cda829bc053992c398789ce3aa6f42f81e
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Sat Oct 4 23:17:45 2014 -0400
sd-event: also update signal mask when disconnecting sources
commit 4807d2d068ae9fc08b87121fc0a574394f8acc5b
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Sat Oct 4 22:57:43 2014 -0400
sd-event: be more careful when enabling/disabling signals
When a child event is disabled (in order to be freed) and there is no
SIGCHLD signal event, sd_event_source_set_enabled will disable SIGCHLD
even if there are other child events.
Also remove some unneeded signalfd updates.
https://bugs.freedesktop.org/show_bug.cgi?id=84659
Based-on-a-patch-by: Hristo Venev <mustrumr97 at gmail.com>
commit 751ea8deaf96cabd4f1321735cd86535840a3faf
Author: Jan Synacek <jsynacek at redhat.com>
Date: Wed Oct 8 08:04:52 2014 +0200
man/systemctl: document enable on masked units
commit 6f53e671aa7539cab02c9f739d84d28a343ca5bc
Author: Thomas Hindoe Paaboel Andersen <phomes at gmail.com>
Date: Wed Oct 8 23:57:32 2014 +0200
util: avoid double close of fd
We could end with a double close if we close the fd loop and flush_fd
fails. That would make us goto fail and there we close the fd once
again. This patch sets the fd to the return value for safe_close: -1
A fd with negative value will be ignored by the next call to
safe_close.
CID#996223
commit 5ab99e076c72a44f2e174e48abd9945cd0180d76
Author: Lennart Poettering <lennart at poettering.net>
Date: Wed Oct 8 22:37:45 2014 +0200
time: functions named "internal" really shouldn't be exported
Also, let's try to make function names descriptive, instead of using
bools for flags.
commit 5329ab10ffaf5b4a3fd6ebd9380b1ec09d05cfc8
Author: Mantas Mikulėnas <grawity at gmail.com>
Date: Tue Oct 7 14:55:21 2014 +0300
core: map the 'rescue' argument to rescue.target
Even though the 'emergency' and 'single' aliases come from sysvinit, the
lack of 'rescue' is still quite confusing (caught me by surprise for the
9th time yet) and inconsistent with `systemctl rescue` as well.
commit 402696d787d252d6317e36c5be340d47578bb27b
Author: Lennart Poettering <lennart at poettering.net>
Date: Wed Oct 8 21:32:30 2014 +0200
Update TODO
commit 40885bb29e3f39fc06787075f666a0ec2ac35361
Author: Daniel Mack <daniel at zonque.org>
Date: Wed Oct 8 15:32:41 2014 +0200
sd-bus: sync kdbus.h (ABI break)
Sync kdbus.h once again. Two thing have changed:
a) KDBUS_CMD_EP_* was renamed to KDBUS_CMD_ENDPOINT_*
b) struct kdbus_cmd_hello and struct kdbus_cmd_make gained a
'features' bitfield (which is currently unused)
commit 85614d663e4a09beee1c78aaa67f02943d50d5a0
Author: Tom Gundersen <teg at jklm.no>
Date: Wed Oct 8 15:01:07 2014 +0200
nspawn: copy /dev/net/tun from host
This enables tuntap support in the container (assumning the necessary capabilities are in place).
commit 5a94946cdf38d3574bd32cd3151b32003df60e6a
Author: Rahul Sundaram <metherid at gmail.com>
Date: Wed Oct 8 01:42:59 2014 -0400
note on relative symlink in os-release
commit e94937df954451eb4aa63573f0d7404ed2db987e
Author: Lukas Nykryn <lnykryn at redhat.com>
Date: Wed Oct 8 11:59:46 2014 +0200
systemctl: add add-wants and add-requires verbs
commit cb87a73b45503eaa6bead291423a529b00d27156
Author: Lukas Nykryn <lnykryn at redhat.com>
Date: Wed Oct 8 11:58:57 2014 +0200
unit: move UnitDependency to unit-name
commit b62a309a47dd11e11729616767421397b6ca7053
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Tue Oct 7 22:01:37 2014 -0400
NEWS: update for 217
commit 1e98337f26cb6805a684eff9bc5eb842512ac8fa
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Tue Oct 7 21:41:14 2014 -0400
man: mention docker as type of virtualization
commit f7101b7368dfe41dbc8b7203e06133cccb589c01
Author: Jan Synacek <jsynacek at redhat.com>
Date: Tue Oct 7 13:35:41 2014 +0200
core: don't allow enabling if unit is masked
commit e91c8c201931d6be8229d624c10ed9c7c210d470
Author: Daniel Mack <daniel at zonque.org>
Date: Tue Oct 7 17:58:29 2014 +0200
bus-proxyd: assorted cleanups and fixes
Just some cleanups around policy checks that came up during review.
The code is still not productive.
commit 1b600437bac3c0676cc72f589909c4cbfe38ba10
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Tue Oct 7 02:02:59 2014 -0400
/proc/sys prefixes are not necessary for sysctl anymore
commit d19e85f0d474ed1882561b458d528cbae49f640e
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Tue Oct 7 09:11:03 2014 -0400
Update TODO
commit 5d9a2698e74eefc20ea7cbbaeaffb566e398f2ba
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Tue Oct 7 09:19:41 2014 -0400
man: document stripping of quotes
commit 30d88d54f613f9f7831172876ebfd9e285fb043b
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Tue Oct 7 09:19:24 2014 -0400
man: move commandline parsing to a separate section
It is very long already, and obscures the description of
ExecStart, and it is about to get longer.
commit 55534fb5e4742b0db9ae5e1e0202c53804147697
Author: Daniel Mack <daniel at zonque.org>
Date: Tue Oct 7 12:36:09 2014 +0200
bus-proxyd: check return values of getpeercred() and getpeersec()
If we can't get the remote peer or security creds, bail out.
Spotted by coverity.
commit 8bf13eb1e02b9977ae1cd331ae5dc7305a305a09
Author: Daniel Mack <daniel at zonque.org>
Date: Tue Oct 7 12:10:06 2014 +0200
sd-bus: check return value of vasprintf
Check for OOM situations when vasprintf() returns < 0 in bus_error_setfv().
Spotted by coverity.
commit 53e9dbcdfbae355aae8edb79d49e50a0ec3912d5
Author: Daniel Mack <daniel at zonque.org>
Date: Tue Oct 7 12:02:04 2014 +0200
sd-bus: fix KDBUS_CMD_FREE user
Fix a user of the KDBUS_CMD_FREE ioctl that was missed in the transition.
commit ca794c8e9583eb660f535af32c8c8281a284f270
Author: Daniel Mack <daniel at zonque.org>
Date: Tue Oct 7 11:32:07 2014 +0200
sd-bus: fix use-after-free in close_kdbus_msg()
Walk the items first, then free the memory of the message.
Also, while at it, make coverity happy with an explicit (void) prefix.
We intentionally ignore the return value here.
commit 4e3deeedc15b03197d591850061316289245c9a9
Author: Martin Pitt <martin.pitt at ubuntu.com>
Date: Tue Oct 7 11:22:31 2014 +0200
keymap: Fix touchpad toggle key on Asus laptops
https://launchpad.net/bugs/1377352
commit a046659f8551e1c8f79ba4b66472444e285255df
Author: Martin Pitt <martin.pitt at ubuntu.com>
Date: Tue Oct 7 11:20:04 2014 +0200
keymap: Fix touchpad toggle on Toshiba Satellite P75-A7200
Just like everywhere else we use KEY_F21 instead of KEY_TOUCHPAD_TOGGLE for X
friendliness.
commit 13303f018d066a1c8378511f77fde127b0e14f64
Author: Thomas Hindoe Paaboel Andersen <phomes at gmail.com>
Date: Mon Oct 6 23:58:46 2014 +0200
sd-bus: remove unused variable
It is no longer used after d663f1b1a92a778bcdc68f29b8c08cb49431b4f7
commit d663f1b1a92a778bcdc68f29b8c08cb49431b4f7
Author: Daniel Mack <daniel at zonque.org>
Date: Mon Oct 6 18:36:16 2014 +0200
sd-bus: sync kdbus.h (ABI break)
The KDBUS_CMD_FREE ioctl now uses a struct rather than a direct pointer
to the offset to free.
The KDBUS_CMD_MSG_CANCEL ioctl has also changes, but there's no user of
it yet in systemd.
commit 27c64db6dff88ebe9761dfe3b0c073d2a9bf2e41
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Sun Oct 5 18:41:31 2014 -0400
build-sys: use linux/memfd.h if available
linux/memfd.h was added linux 3.17, so it might not be widely
available for a while.
Also, check if memfd_create is defined, for the HAVE_LINUX_MEMFD_H
check to have a chance of succeeding.
Also, collapse all ifdefs for memfd-related stuff, because they
were all added together so there's no need to check separately.
commit 0077776275cb753e478e0f92d4065dec5276c44a
Author: Thomas Hindoe Paaboel Andersen <phomes at gmail.com>
Date: Sun Oct 5 22:33:20 2014 +0200
terminal: remove an unused initialization
commit 0536ce5d0ceaf87f3e81faaff41d69ffeed2186f
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Sun Oct 5 15:29:20 2014 -0400
Update TODO
commit 64845bdc829d6a6179d0762b7e97ef23828562a3
Author: David Sommerseth <davids at redhat.com>
Date: Fri Oct 3 15:53:45 2014 +0200
ask-password: Add --echo to enable echoing the user input
Programs such as OpenVPN may use ask-password for not only retrieving
passwords, but also usernames. Masking usernames with * seems just silly.
v2 - Don't mess with termios flags, instead print the input
instead of an asterix. Resolves issues with backspace
and TAB input.
v3 - Renamed 'do_echo' variables and argument to 'echo'. Also
modified the ask_password_{tty,agent,auto} API instead of
additional wrapper functions.
[zj: undo changes to ask_password_auto, since no callers were using
the new argument.]
commit 75a0da952f603006d6b3535ecaf8ebe2bded30e7
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Sun Oct 5 14:04:02 2014 -0400
bus: add assert to check that we're not freeing a static structure
CID #996315.
commit 62d5068d631fd655efe3ae4ad51fffe28e13e27a
Author: David Herrmann <dh.herrmann at gmail.com>
Date: Sun Oct 5 17:44:09 2014 +0200
terminal/idev: don't remove consumed-mods from kbd-matches
XKB consumed mods include modifiers that *didn't* affect the translation,
but might affect it if used. This is very misleading, given that we are
usually not interested in that information. Therefore, keep them in real
mods to behave like X11 does. Maybe at some point, XKB introduces proper
shortcut matching...
Also make evcat display consumed modifiers so we can better debug those
situations.
commit 34dbefceb1377ccd7871e183d7791f76fe879e73
Author: David Herrmann <dh.herrmann at gmail.com>
Date: Sun Oct 5 15:49:26 2014 +0200
terminal/screen: perform bold->light conversion only on foreground
Bold glyphs always use light colors. However, this color conversion is
limited to the foreground color, so skip it for backgrounds.
commit 378c4eed029eb37eec31e56bd82ca5df2dee1e73
Author: David Herrmann <dh.herrmann at gmail.com>
Date: Sun Oct 5 15:48:32 2014 +0200
terminal/subterm: leave bold-light conversion to parent
We rely on the parent terminal to do color conversion, so also leave
bold->light conversion to the parent. Otherwise, it will be performed
twice and we might apply it on the wrong color.
commit c7afe4f3d74f0487c913ce49abc58fe59aaeac12
Author: Tom Gundersen <teg at jklm.no>
Date: Sun Oct 5 15:26:54 2014 +0200
terminal/screen: add support for alternate screen buffers
Hook up SM/RM 47/1047-1049 and enable alternate screen buffers for term
applications.
(David: rebased on top of -git, renamed helpers and added docs)
commit 3ae49a8fdb7d21c065fcf2b1f7459a32f963c087
Author: David Herrmann <dh.herrmann at gmail.com>
Date: Sun Oct 5 14:53:18 2014 +0200
terminal/screen: save state in separate object
Terminal state can be saved/restored by applications. To simplify our
internal handling, put all affected state into a separate object.
Especially with alternate screen buffers, this will simplify our code
significantly.
commit 9ed6e68e52f399c10d7e4d7f29bb0212c422e9e9
Author: David Herrmann <dh.herrmann at gmail.com>
Date: Sun Oct 5 14:47:57 2014 +0200
terminal/subterm: skip setting parent's cursor
We draw our own cursor in subterm now, so there's no reason to update the
cursor-position of the parent terminal on each frame. The parent's cursor
is hidden, anyway.
commit 621dbb0569ec318e78cfa7c71646b78eee46e8a5
Author: David Herrmann <dh.herrmann at gmail.com>
Date: Sun Oct 5 14:45:33 2014 +0200
terminal: fix TERM_FLAG_* comment
7BIT mode is enabled by default. Fix the comment to state this correctly.
commit b7af2c8740e91a73348457fade97609b93e70a8d
Author: Tom Gundersen <teg at jklm.no>
Date: Sat Oct 4 23:03:15 2014 +0200
terminal: fix restoring of screen flags
commit bdf7026e9557349cd3eeb291c01655d5f2a55db8
Author: Thomas Hindoe Paaboel Andersen <phomes at gmail.com>
Date: Sat Oct 4 23:51:45 2014 +0200
test: only use assert_se
The asserts used in the tests should never be allowed to be
optimized away
commit 2355af60dc0c0ec2b7fbe69f15a77d980b017b3f
Author: Tom Gundersen <teg at jklm.no>
Date: Sat Oct 4 13:10:41 2014 +0200
consoled: add a unit file
The unit file is statically enabled, but still requires --enable-terminal
to actually get installed.
commit 10595afb4c007a764b91d28ede5faa00bcb28428
Author: Tom Gundersen <teg at jklm.no>
Date: Sat Oct 4 13:12:49 2014 +0200
consoled: move from /bin to /lib/systemd
This should not normally be run manually, but rather through systemd.
commit c71202228f31176eee2aa7c798c9f3ff681cf957
Author: Tom Gundersen <teg at jklm.no>
Date: Sat Oct 4 13:11:40 2014 +0200
systemd-bus-proxyd: distribute the .in file also for the user version
commit f45d32872cb65530b6c7b4818c40e917b44b2633
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Fri Oct 3 22:08:23 2014 -0400
build-sys: fix make distcheck
commit e060073a8f05cfdfad621b1bb59abe944b17d5f9
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Fri Oct 3 21:06:52 2014 -0400
man: say that SecureBits= are space separated
commit cef3566998fcae6936d781e678c309950a8a5787
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Fri Oct 3 20:57:30 2014 -0400
sd-id128: do stricter checking of random boot id
If we are bothering to check whether the kernel is not feeding us
bad data, we might as well do it properly.
CID #1237692.
commit f88dc3edeb9c49622fcc773cb6153238fe9efbe2
Author: Tobias Hunger <tobias.hunger at digia.com>
Date: Fri Oct 3 20:41:43 2014 -0400
fstab-generator: Small cleanup
commit 125dd07483b6836106ff9ad3ce1737d8a6c56c59
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Fri Oct 3 19:47:47 2014 -0400
sd-bus: split out cleanup into separate function
m is always non-null at this point. This function is too long anyway.
commit d267c5aa3d0fe4960165a1e1c00a840eef8b7d00
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Fri Oct 3 19:17:56 2014 -0400
core/namespace: remove invalid check
dir cannot be NULL here, because it was allocated with alloca.
CID #1237768.
commit 1775f1ebc4a8e9e0e2e4a9af3e97e1408c9cb335
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Fri Oct 3 19:16:11 2014 -0400
core/namespace: remove invalid check
root cannot be NULL here, because it was allocated with alloca.
CID #1237769.
commit 7057bd993110c1eff0cd3a8776902ca66417634e
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Fri Oct 3 18:49:45 2014 -0400
sd-event: check the value of received signal
Appease coverity report #1237775.
Also rename ss to n, to make it visually different from ss.
commit 610158048a03f25be88a36cb7c81d11177a2c559
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Fri Oct 3 17:44:23 2014 -0400
man: use more markup in daemon(7)
commit ce7b9f50c3fadbad22feeb28e4429ad9bee02bcc
Author: David Herrmann <dh.herrmann at gmail.com>
Date: Fri Oct 3 15:58:44 2014 +0200
console: add user console daemon
This adds a first draft of systemd-consoled. This is still missing a lot
of features and does some rather primitive rendering. However, it shows
the direction this code is going and serves as basis for further testing.
The systemd-consoled binary should be run as `systemd --user' unit. It
automatically picks up any session marked as Desktop=SYSTEMD-CONSOLE.
Therefore, you can use any login-manager you want (ranging from /bin/login
to gdm) to create sessions for systemd-consoled. However, the sessions
managers must be prepared to set the Desktop= variable properly.
The user-session is called `systemd-console', only the daemon providing
the terminal environment is called `systemd-consoled' (mind the 'd').
So far, only a single terminal session is provided on each opened
user-session. However, we support multiple user-sessions (even across
multiple seats) just fine. In the future, the workspace logic will get
extended so you can have multiple terminal sessions in a single
user-session for easier access.
Note that this is still experimental! Instructions on how to run it will
follow shortly.
commit 48fed5c55b5183e6d44702dfdccd3b5325d8689c
Author: David Herrmann <dh.herrmann at gmail.com>
Date: Fri Oct 3 15:54:21 2014 +0200
pty: optimize read loop
As it turns out, I can actually send data to the pty faster than the
terminal can read. Therefore, make sure we read as much data as possible
but bail out early enough to not cause starvation.
Kernel TTY buffers are 4k, so reduce the overall buffer size, but read
more than once if possible (up to 8 times sounds reasonable).
commit ce04e2335ab80eda5674de3399aa16b5aea2657f
Author: David Herrmann <dh.herrmann at gmail.com>
Date: Fri Oct 3 15:27:25 2014 +0200
terminal/screen: adjust screen age only on update
Instead of increasing the screen-age on redraw, we now increase it only on
real updates. This is effectively the same, but avoids increased age
counters on backbuffer rendering. Therefore, we can now check age counters
against fronbuffers safely, while rendering frames in background.
commit 56dec05d29098b151421625c68525c2c3961e574
Author: David Herrmann <dh.herrmann at gmail.com>
Date: Fri Oct 3 14:44:41 2014 +0200
terminal/screen: add color converter
Terminals use pseudo color-codes mixed with 8bit and 24bit colors. Provide
a color-converter so external renderers only have to deal with ARGB32
colors.
This requires a color-palette as input as there's no fixed mapping. We
provide a default, but maybe we wanna support external palettes in the
future.
commit cad8fe9a2b2ac340ef69233dd32e1bb1e45dae48
Author: David Herrmann <dh.herrmann at gmail.com>
Date: Fri Oct 3 14:42:42 2014 +0200
terminal/screen: add cursor rendering
This is the most simple way to render cursors: flip attr->inverse of the
cursor cell. This causes the background and foreground colors of the
cursor-cell to be inversed.
Now that we render cursors ourselves, make subterm not call into the
parent terminal to render cursors.
commit 2ea8d19b210b62a02ebcb38f035e074dcba66426
Author: David Herrmann <dh.herrmann at gmail.com>
Date: Fri Oct 3 14:30:37 2014 +0200
terminal/screen: mark cursor dirty on enabled/disable
If we hide or show the cursor, we change visual attributes and have to
mark the underlying cell as dirty. Otherwise, the terminal will not be
redrawn.
commit 884964a9639649422d3613500cdacea48a4ccc91
Author: David Herrmann <dh.herrmann at gmail.com>
Date: Fri Oct 3 13:11:08 2014 +0200
terminal/idev: add helper to match keyboard shortcuts
Matching keyboard shortcuts on internationalized keyboards is actually
non-trivial. Matching the actual key is easy, but the modifiers can be
used by both, the matching and the translation step. Therefore, XKB
exports "consumed-modifiers" that we use to figure out whether a modifier
was already used by the translation step.
The new IDEV_KBDMATCH() helper can be used to match on any keyboard
shortcut and it will do the right thing.
commit f8958c3495edf6d1563a5309e84bd68931a46213
Author: David Herrmann <dh.herrmann at gmail.com>
Date: Fri Oct 3 12:50:41 2014 +0200
terminal/screen: add keyboard mapping
Implement the feed_keyboard() handling by mapping XKB keys according to
DEC-VT behavior.
Public information on terminal key-mappings is pretty scarce. We only
implement the most basic mapping for now. Further improvements welcome!
commit fe741a85c1912ead26c1a78251e1d490a8a432b3
Author: David Herrmann <dh.herrmann at gmail.com>
Date: Fri Oct 3 12:48:36 2014 +0200
terminal/idev: don't map XKB_KEY_NoSymbol as ASCII 0
XKB_KEY_NoSymbol is defined as 0 but does not correspond to a VT key with
ASCII value 0. No such key exists, so don't try to find such a key.
commit 61d0326a5b1c11a8f2e8e31ec9093e81daa26588
Author: David Herrmann <dh.herrmann at gmail.com>
Date: Thu Oct 2 19:47:21 2014 +0200
terminal/unifont: add built-in fallback glyph
In case we cannot render a glyph, we want a fallback we can display
instead. If we rely on the font itself to provide the fallback character,
we have nothing to display if that character is not available. Therefore,
add a static fallback that we can use at any time.
commit cb51a41fa632790ea839aa126844dfc2d74eb341
Author: David Herrmann <dh.herrmann at gmail.com>
Date: Thu Oct 2 19:34:14 2014 +0200
terminal/subterm: use screen renderer
Don't hard-code the screen renderer but use the newly introduced
term_screen_draw() helper.
commit be5022138495d2e509735dec7486a040d3e2eb2d
Author: David Herrmann <dh.herrmann at gmail.com>
Date: Thu Oct 2 19:31:43 2014 +0200
terminal: add screen renderer
We don't want to expose the term_screen internals for rendering.
Therefore, provide an iterator that allows external renderers to draw
terminals.
commit 1bfa594cf26a9880c489cdcb5911bfb3440aa566
Author: David Herrmann <dh.herrmann at gmail.com>
Date: Thu Oct 2 18:51:29 2014 +0200
terminal/drm: clear 'applied' flag when changing state
If a pipe is enabled/disabled, we have to clear crtc->applied of the
linked CRTC. Otherwise, we will not run a deep modeset, but leave the crtc
in the pre-configured state.
commit 66695cc343647dcbf654fbb4b3f38bd1ee092a0d
Author: David Herrmann <dh.herrmann at gmail.com>
Date: Thu Oct 2 18:47:01 2014 +0200
terminal/grdev: allow arbitrary fb-age contexts
Instead of limiting fb-aging to 64bit integers, allow any arbitrary
context together with a release function to free it once the FB is
destroyed.
commit 51cff8bdedbc283b2403ab4a688903d8b1f2fab5
Author: David Herrmann <dh.herrmann at gmail.com>
Date: Thu Oct 2 18:26:06 2014 +0200
terminal/grdev: provide front and back buffer to renderers
We really want more sophisticated aging than just 64bit integers. So
always provide front *and* back buffers to renderers so they can compare
arbitrary aging information and decide whether to re-render.
commit aec3f44651998211d559b474bb830aad65680a62
Author: David Herrmann <dh.herrmann at gmail.com>
Date: Thu Oct 2 17:59:26 2014 +0200
terminal/drm: provide pipe->target() callback
Instead of looking for available back-buffers on each operation, set it to
NULL and wait for the next frame request. It will call back into the pipe
to request the back-buffer via ->target(), where we can do the same and
look for an available backbuffer.
This simplifies the code and avoids double lookups if we run short of
buffers.
commit 6a15ce2b3eb852023d77787f96c6a4a72eb4d60d
Author: David Herrmann <dh.herrmann at gmail.com>
Date: Thu Oct 2 17:09:05 2014 +0200
terminal/grdev: simplify DRM event parsing
Coverity complained about this code and is partially right. We are not
really protected against integer overflows. Sure, unlikely, but lets just
avoid any overflows and properly protect our parser loop.
commit f1f5b2a3bdc3178d57c4088a7cd7758afaeba9cb
Author: David Herrmann <dh.herrmann at gmail.com>
Date: Thu Oct 2 16:36:09 2014 +0200
terminal: make utf8 decoder return length
Lets return the parsed length in term_utf8_decode() instead of a buffer
pointer. Store the pointer in the passed argument.
This makes it adhere to the systemd coding-style, were we always avoid
returning pointers, but store them in output arguments. In this case, the
storage is not allocated, so it doesn't fit 100% to this idiom, but still
looks much nicer.
commit db1a606610e5a528903a4380f30c9934a0c5a134
Author: David Herrmann <dh.herrmann at gmail.com>
Date: Thu Oct 2 13:11:53 2014 +0200
terminal: fix back-buffer selection on DRM page-flip
We currently select front-buffers as new back-buffer if they happen to be
the last buffer in our framebuffer-array. Fix this by never selecting a
new front buffer as back buffer.
commit 754fc0c720eb998b8e47e695c12807ced0ff3602
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Fri Oct 3 08:58:40 2014 -0400
fileio-label: return error when writing fails
The status of actually writing the file was totally ignored.
commit a62e83b48cda6a709a796a361abaf6b129650b3c
Author: Jan Synacek <jsynacek at redhat.com>
Date: Fri Oct 3 09:51:33 2014 +0200
journalctl: make --utc work everywhere
The --utc option was introduced by commit
9fd290443f5f99fca0dcd4216b1de70f7d3b8db1.
Howerver, the implementation was incomplete.
commit 1c92ff85b786c423f4436ec26007e79369c9ac05
Author: Thomas Hindoe Paaboel Andersen <phomes at gmail.com>
Date: Fri Sep 26 22:01:32 2014 +0200
bootchart: use 'n/a' if PRETTY_NAME is not found
Spotted with coverity. If parsing both /etc/os-release and
/usr/lib/os-release fails then null would be passed on. The calls
to parse the two files are allowed to fail. A empty /etc may not
have had the /etc/os-release symlink restored yet and we just
try again in the loop. If for whatever reason that does not happen
then we now pass on 'n/a' instead of null.
commit 7889087d6ecf865f332eb325d8f68ff49be8277e
Author: Tom Gundersen <teg at jklm.no>
Date: Fri Oct 3 08:43:53 2014 +0200
man: fix sd_event_set_name compilation
commit c3b128736dbde629db87751cd706a0b68a41e7d0
Author: Tom Gundersen <teg at jklm.no>
Date: Fri Oct 3 08:43:34 2014 +0200
glib-event-glue: remove some unnecessary lines
Not needed in an example. Should still shorten the license, but should make sure it is still complete so people can copy-paste without problems.
commit 2ad8887a12aeff9108606bb31e1557103a3b95df
Author: Thomas Hindoe Paaboel Andersen <phomes at gmail.com>
Date: Fri Oct 3 03:58:51 2014 +0200
test-barrier: add checks after the barrier constructor
Coverity seems to think that we can later end up with the "them"
fd having a negative value. Even after a succesful barrier_create.
Add some test to verify that the constructor went well. If coverity
still complains then it must mean that it thinks the the value is
overwritten later.
commit 043f62949e6eb400ad42fd891a957ecf514c35f3
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Thu Oct 2 21:14:26 2014 -0400
man: add sd_event_set_name(3)
commit ba4b35669ef233fef414b1429fbdc085537b33e7
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Thu Oct 2 20:49:30 2014 -0400
man: add sd_event_get_fd(3)
Example from Tom Gundersen is included using xi:include.
The copyright notice stands out a bit. Maybe it should be removed,
and the code placed in public domain.
commit 94956f8fba498d5d34a88a7e26b0418a4a0e9e6d
Author: Thomas Hindoe Paaboel Andersen <phomes at gmail.com>
Date: Thu Oct 2 21:26:11 2014 +0200
firstboot: silence coverity
CID#1237537
commit 2ff8abbd40feee90dbac8788efba2218b546df6c
Author: Lennart Poettering <lennart at poettering.net>
Date: Thu Oct 2 21:02:03 2014 +0200
Revert "mount: order options before other arguments to mount"
This reverts commit 141a1ceaa62578f1ed14f04cae2113dd0f49fd7f.
People should fix their libc's getopt(), instead of us using a weird
option ordering...
commit cc19881a694c26af2d941246f72221df7e76ee02
Author: Lennart Poettering <lennart at poettering.net>
Date: Thu Oct 2 20:37:50 2014 +0200
systemctl: remove spurious newline
commit 2c652b6bfe816296a5664dae1125e6bb665b9d5e
Author: Lennart Poettering <lennart at poettering.net>
Date: Thu Oct 2 20:37:36 2014 +0200
kdbus: don't clobber return values, use strjoin() instead of asprintf(), keep function invocations and variable declarations separate
commit 8e00bfc234f43f49b16aa0124fb4b3f1c8eae4ef
Author: Lennart Poettering <lennart at poettering.net>
Date: Thu Oct 2 20:36:58 2014 +0200
kdbus: make sure we never invoke free() on an uninitialized pointer on OOM
commit c7eff5ec06c3025d1ef14f955c653259ae7c615b
Author: Lennart Poettering <lennart at poettering.net>
Date: Thu Oct 2 20:36:23 2014 +0200
update TODO
commit fe4b2156256c5bdf52341576571ce9f095d9f085
Author: Tom Gundersen <teg at jklm.no>
Date: Thu Oct 2 16:25:08 2014 +0200
sd-dhcp6: do basic sanity-checking of supplied DUID
commit ebe207d4acf38165adbc45298662982eecdb9e9f
Author: Tom Gundersen <teg at jklm.no>
Date: Thu Oct 2 16:04:20 2014 +0200
sd-dhcp6: specify the type explicitly when setting custom DUID
This would make it simple to verify that the data is on the right format when
the type is known.
commit 9547267dc56d5bf84b8119dfcb8e101202fac7d3
Author: Tom Gundersen <teg at jklm.no>
Date: Thu Oct 2 16:00:55 2014 +0200
sd-dhcp6: support custom DUID's up to the size specified in the RFC
commit 66eac1201a9c1596f5901f8dbbf24bda7e350878
Author: Dan Williams <dcbw at redhat.com>
Date: Fri Sep 26 15:12:36 2014 -0500
sd-dhcp6-client: support custom DUIDs
The caller may have an existing DUID that it wants to use, and may
want to use some other DUID generation scheme than systemd's
default DUID-EN.
[tomegun: whitespace - we never use tabs]
commit 995a1063dbdc94e2c0846216363636e8ebbc60f9
Author: Daniel Mack <daniel at zonque.org>
Date: Thu Oct 2 17:12:13 2014 +0200
sd-bus: sync kdbus.h (ABI break!)
struct kdbus_cmd_match got a flags field, which systemd currently makes no
use of.
commit 893e72da6b27c21b102e1589276e651e9e4f591c
Author: Michal Sekletar <msekleta at redhat.com>
Date: Tue Sep 9 18:14:25 2014 +0200
virt: detect that we are running inside the docker container
commit aa08982d62cf45b59ea6a06c915391f5db1fb86e
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Thu Oct 2 08:11:21 2014 -0400
Fix order and document user unit dirs
Fixup for 718880ba0d 'add a transient user unit directory'.
commit 4d5dec2389d8e6ce78b45d3058220888f4a93db7
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Thu Oct 2 08:01:00 2014 -0400
Rename user_runtime to user_runtime_dir
This makes this function name similar to user_config_home() and makes
it match the name of the environment variable.
commit 718880ba0d557a045e2f969e141cbd59e78c76f4
Author: Steven Allen <steven at stebalien.com>
Date: Sun Sep 28 14:54:25 2014 -0700
add a transient user unit directory
This patch adds a transient user unit directory under
`$XDG_RUNTIME_DIR/systemd/user/` and stores transient user-instance
units (such as those created by `systemd-run --user`) under there
instead of putting them in $XDG_CONFIG_HOME/systemd/user/.
Fixes https://bugs.freedesktop.org/show_bug.cgi?id=67331
commit 9fd290443f5f99fca0dcd4216b1de70f7d3b8db1
Author: Jan Synacek <jsynacek at redhat.com>
Date: Thu Oct 2 14:39:29 2014 +0200
journalctl: add --utc option
Introduce option to display time in UTC.
commit b344bcbbfda8fbe14dadc5aa4b5dfb3ced6d76e2
Author: Lennart Poettering <lennart at poettering.net>
Date: Thu Oct 2 14:35:34 2014 +0200
localectl: always print warnings with log_warning() instead of printf()
They really should got to stderr, not stdout.
commit 63229aa1abdb98aa69fda9819ed2f40c8082762b
Author: Lennart Poettering <lennart at poettering.net>
Date: Thu Oct 2 14:34:55 2014 +0200
localectl: count locale variables from 0, instead of VARIABLE_LANG
That way the we make our code safe regarding reordering of the variables
in the enum.
commit 581fe6c8176c6ea4ad998566df0746bf7b56456f
Author: Daniel Mack <daniel at zonque.org>
Date: Thu Oct 2 13:02:41 2014 +0200
sd-bus: sync kdbus.h (ABI break)
struct kdbus_cmd_conn_info takes a list of items now instead of a string.
Fix the only user in SD of that ioctl.
commit 4cf07da260b6c21596fec9a6a03a615729f617dc
Author: Torstein Husebø <torstein at huseboe.net>
Date: Tue Sep 30 15:25:47 2014 +0200
Correct a few typos
commit fc808616227115ccab8c04f00f8f7472c7353ae5
Author: David Herrmann <dh.herrmann at gmail.com>
Date: Thu Oct 2 08:31:28 2014 +0200
barrier: fix up constructor error handling
We cannot rely on "errno" to be non-zero on failure, if we perform
multiple glibc calls. That is, if the first eventfd() call fails, but the
second succeeds, we cleanup the barrier but return 0.
Fix this by always testing the return value immediately. This should also
fix all the coverity warnings.
commit dda57d9143644d39091207b287f142f91f55d0ad
Author: David Herrmann <dh.herrmann at gmail.com>
Date: Wed Oct 1 11:29:09 2014 +0200
terminal: add helpers to retrieve page dimensions
Allow term users to retrieve the page dimensions of a terminal screen.
This is needed to properly calculate the grid dimensions when rendering.
commit a30f1425133d2b64a1c3f0113a710528872a3cbb
Author: David Herrmann <dh.herrmann at gmail.com>
Date: Wed Oct 1 11:27:46 2014 +0200
terminal: add term.h header for library users
Like all the other parts of libsystemd-terminal, split API of
term-internal.h into term.h so we can use it from systemd-consoled.
commit 056e86ee7fdae86d358aa068303845dff2cbb598
Author: David Herrmann <dh.herrmann at gmail.com>
Date: Wed Oct 1 11:25:27 2014 +0200
terminal: move unifont-map to datadir
Lets avoid putting stuff into /usr/shared/unifont/, but keep it in
/usr/share/systemd/. Upstream lacks interest in this, so don't bother for
now.
commit fa9653457302c106f8d47060ef3dda2b4c8038a8
Author: David Herrmann <dh.herrmann at gmail.com>
Date: Wed Oct 1 11:24:08 2014 +0200
terminal: add unifont_get_width/height()
Allow unifont users to retrieve the width and height of unifont glyphs. In
version 1 this is hard-coded as 8/16, but may be changed in the future.
commit c2977e5cb874e696994bcb93b8148f52c315b901
Author: David Herrmann <dh.herrmann at gmail.com>
Date: Wed Oct 1 11:23:02 2014 +0200
terminal: move unifont-internal.h to unifont.h
All the definitions are for outside users, so drop the -internal suffix.
Internal definitions are in unifont-def.h and unifont.c, no need to share
those.
commit d20a3daaa79edfa4c8d84d243f2a98c82dddd5c6
Author: Simon McVittie <simon.mcvittie at collabora.co.uk>
Date: Wed Oct 1 16:11:59 2014 +0100
sd-bus: use terms from the D-Bus Specification a bit more
D-Bus' type hierarchy as described in the spec is:
\- basic
\- fixed type (u, i, etc.)
\- string-like type (s, o, g)
\- container
Someone seems to have referred to basic types as "simple types" at
some point, but that term isn't defined in the D-Bus Specification,
and seems redundant.
So far I haven't renamed functions that use "trivial" in their names
to mean "fixed type", to avoid confusion about whether a struct of
constant length, like (iu), is a fixed type. The answer is that it is
fixed-length, but is not a "fixed type", so I can see that something
like bus_type_is_fixed() might be ambiguous.
commit e1ffdb90d92849a2bb5c27ebc035e7f885ffdafb
Author: Simon McVittie <simon.mcvittie at collabora.co.uk>
Date: Wed Oct 1 16:12:00 2014 +0100
PORTING-DBUS1: we use :1.%llu not :0.%llu for D-Bus unique bus names
commit 2e3390ea4684b954edce66b7758b5371d3338a9f
Author: Marcel Holtmann <marcel at holtmann.org>
Date: Thu Oct 2 07:53:15 2014 +0200
hwdb: Update database of Bluetooth company identifiers
commit 3018d31238caabc2e204aa161e647dc1c1b5d1c6
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Thu Oct 2 00:11:36 2014 -0400
core/swap: only make configured units part of swap.target
We used to make all .swap units either RequiredBy=swap.target or
WantedBy=swap.target. But swap.target should be the "configured swap
units", either through /etc/fstab or non-generated .swap units. It
is surprising when systemd starts treating a swap device that was
possibly temporarily enabled as a hard dependency for other units.
So do not add dependencies with swap.target for units gleaned from
/proc/swaps.
Similarly, we added dependencies for all aliases of the device name,
which clutters up the dependency graph but does not seem to bring any
value, since the status of those following units is consistent with
the main one anyway.
This should be a fix for [1], and it seems the right thing to do
anyway.
[1] https://bugzilla.redhat.com/show_bug.cgi?id=1114786
commit cf4acf84c6304d34108dadd5e87c9a19ca24dceb
Author: Thomas Hindoe Paaboel Andersen <phomes at gmail.com>
Date: Wed Oct 1 23:15:34 2014 +0200
Remove repeated includes
In pty.c there was both an include of our pty.h and the system installed pty.h.
The latter contains only two functions openpty and forkpty. We use neither so
I assume it was a typo and removed it. We still compile and pass all tests.
commit 56a7dd42d3a680691f417bd8a4c46ea1b6283ff5
Author: Thomas Hindoe Paaboel Andersen <phomes at gmail.com>
Date: Wed Oct 1 23:22:02 2014 +0200
gitignore: add test-set
commit 647f68249f90855814de6eb6b0959c6096b41cae
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Wed Oct 1 09:32:16 2014 -0400
tests: add tests for {hashmap,set}_steal_first
Just to make sure that coverity is wrong.
commit acb3b3ddc082880eaaa1d7773296ad9abd756f23
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Tue Sep 30 07:44:04 2014 -0400
shared: util - use nicer idiom to silence Coverity
Change the other spot too.
commit 9348f0e690c28f86a69c96e3e9b9f19a31c6d466
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Wed Oct 1 07:33:22 2014 -0500
tmpfiles: use allocated buffer for path
Paths can in principle be longer then PATH_MAX, so
simply allocate the buffer with malloc().
CID #1237773
commit fdb14b7ef40d1f19f3bd7c8fa2a3821c2be87a5e
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Wed Oct 1 07:34:05 2014 -0500
core: limit timestamp to sane precision
Anything below .1 s is meaningless anyway.
commit 2b01a801f6c597a60a1e622978bf7ac0105b9666
Author: Thomas Hindoe Paaboel Andersen <phomes at gmail.com>
Date: Tue Sep 30 23:37:10 2014 +0200
test-fileio: Remove dead check
t cannot be null here
commit 14c35ce7c1b9649bef14efeb3121660e541dd97a
Author: Thomas Hindoe Paaboel Andersen <phomes at gmail.com>
Date: Tue Sep 30 23:30:30 2014 +0200
test-date: don't fail test if log_max_level is higher than LOG_INFO
commit 59ae3a957388bb057c3388ee288c8fc96c2b0098
Author: Thomas Hindoe Paaboel Andersen <phomes at gmail.com>
Date: Tue Sep 30 22:18:18 2014 +0200
test-path-util: fix a mem leak and avoid confusing coverity
Found with coverity. Fixes CID#1237754 and #1237790
commit 791a4fd837c713fe742d32cde1ce16f754dd30df
Author: Thomas Hindoe Paaboel Andersen <phomes at gmail.com>
Date: Tue Sep 30 21:14:58 2014 +0200
vconsole: silence coverity
Let's silence coverity here too. There is not much to do if the
ioctls to copy the fonts and character maps should fail.
commit c6828d2794fcd00b6b0d2a040301c90ad424d14f
Author: Tom Gundersen <teg at jklm.no>
Date: Tue Sep 30 11:37:28 2014 +0200
shared: util - use nicer idiom to silence Coverity
Suggested by Zbigniew.
commit e63ff941eaa012ffd003e3791438c73b8a26227d
Author: Tom Gundersen <teg at jklm.no>
Date: Tue Sep 30 11:34:01 2014 +0200
core: execute - don't leak strv
commit 24119cf10c7ed58a8fc0851745149dcc6dd5757f
Author: Stefan Brüns <stefan.bruens at rwth-aachen.de>
Date: Mon Sep 29 22:32:10 2014 -0400
udev/hwdb: New Entry for Dell XPS12 9Q33 keyboard
https://bugs.freedesktop.org/show_bug.cgi?id=84437
commit 9fb02b1d5df153aa522256aec821e422cca7f284
Author: Tom Gundersen <teg at jklm.no>
Date: Mon Sep 29 14:30:15 2014 +0200
util: silence coverity
Make it clear in the code that ignoring a failed safe_ato?() is intentional.
commit e8c8ddccfc63574069c30b7e75f0ccfd5b03eab9
Author: Tom Gundersen <teg at jklm.no>
Date: Mon Sep 29 13:20:54 2014 +0200
nspawn: log when tearing down of loop device fails
commit b1d6dcf5a5c5aa02843c026dede0638f77798cb4
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Mon Sep 29 07:31:14 2014 -0500
Do not format USEC_INFINITY as NULL
systemctl would print 'CPUQuotaPerSecUSec=(null)' for no limit. This
does not look right.
Since USEC_INFINITY is one of the valid values, format_timespan()
could return NULL, and we should wrap every use of it in strna() or
similar. But most callers didn't do that, and it seems more robust to
return a string ("infinity") that makes sense most of the time, even
if in some places the result will not be grammatically correct.
commit ee26bcc0387f6eda83878eb85a08c01ee0d82c44
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Sun Sep 28 23:42:33 2014 -0400
core/dbus: simplify handling of CPUQuotaPerSecUSec
No functional change intended.
commit 4afbccded23f5144e39a7f7b243393799186ba39
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Sun Sep 28 22:13:07 2014 -0400
core/swap: advertise Discard over dbus
commit cdc8982030271785d650af410230397bbb5a4be9
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Sun Sep 28 10:37:52 2014 -0400
core/swap: follow the configured unit by default
Phenomenon: parameters configured in /etc/fstab for swap units are
ignored. E.g. pri= settings have no effect when systemd starts swap
units. What is even more confusing, .swap units for the name used in
/etc/fstab initially show proper values for Priority=, but after
starting them, they are re-initalized from /proc/swaps and show the -1
value from /proc/swaps.
Change swap units to follow the original configured unit. This way
proper settings are used when starting the swap.
commit 4f52d3fe2da7c3449b7fbfaa7c64a83354d3b56c
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Sat Sep 27 22:02:04 2014 -0400
fstab-generator: properly deal with discard as non-last option
Previous code would only return correct results when discard
was the last option.
While at it, avoid incorrect behaviour for (invalid) 'pri' option
not followed by '=...', and also do not return -1 as the error code.
commit 86b23b07c96b185126bfbf217227dad362a20c25
Author: Jan Synacek <jsynacek at redhat.com>
Date: Wed Sep 24 14:29:05 2014 +0200
swap: introduce Discard property
Process possible "discard" values from /etc/fstab.
commit 70f1b2ddc6b94d3fa5539eb8503887b465f7fcc7
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Sat Sep 27 20:00:00 2014 -0400
journal-remote: fix handling of non-blocking sources
In the conversion to sd-event loop, handling of normal files got
broken. We do not want to perform non-blocking reads on them, but
simply do read() in a loop. Install a statically-enabled "source"
to do that.
commit 4bed248505da4da94d82078fe60326a374970e97
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Fri Sep 26 10:49:55 2014 -0400
journalctl: do not output --reboot-- markers when running non-interactively
They are not legal in the export format.
commit 1679ddc4601982a5b3a852c7ac75277e98781136
Author: David Herrmann <dh.herrmann at gmail.com>
Date: Mon Sep 29 15:44:44 2014 +0200
bus: use 2M as maximum message size in benchmark
The kdbus limit is 2M and we removed the bus-owner override. Therefore,
use at most 2M as message size.
commit bfd6d8a322414a7ebd1a64a717c1834e6cb00d7d
Author: David Herrmann <dh.herrmann at gmail.com>
Date: Mon Sep 29 15:36:20 2014 +0200
terminal: add helper to retrieve the seat of a session
Allow sysview users to retrieve the seat that a session is assigned to.
commit 8bf4a42a2efcc53479a422e97240ce347dc3ffae
Author: David Herrmann <dh.herrmann at gmail.com>
Date: Mon Sep 29 15:35:51 2014 +0200
bus: sync kdbus.h (ABI break!)
commit 1c7830cc105bfe217abe6f304f4785bbeab209f6
Author: David Herrmann <dh.herrmann at gmail.com>
Date: Mon Sep 29 14:59:01 2014 +0200
terminal: add sysview_seat_switch_to()
Add helper to perform session switches on a specific seat whenever we
retrieve a VT-switch keyboard event.
commit f0c5e28e58215682c832e1667b346b59c804f6a5
Author: Daniel Mack <daniel at zonque.org>
Date: Sun Sep 28 21:19:22 2014 +0200
sd-bus: clean up string length calculation
Move the +1 calculus onto the definition of the variable, just to make
the code a little easier to read. No functional change.
commit c119700c06b248b1c2a082b40b1a346f58d89da0
Author: Philippe De Swert <philippe.deswert at jollamobile.com>
Date: Sun Sep 28 18:12:51 2014 +0300
bootchart: Do not try to access data for non-existing CPU's
Cpu's are assigned normally, so starting at 0, so the MAX_CPU index will
always be one smaller than the actual number.
Found with Coverity.
commit 5e90b6a978d15efedc5b5cc4a3d2d922a0ecd2a9
Author: Thomas Hindoe Paaboel Andersen <phomes at gmail.com>
Date: Sun Sep 28 18:46:15 2014 +0200
test-bus-policy: silence coverity
Check if strjoin worked and also use _cleanup_free_ since we are
here.
Found with Coverity. Fixes CID#1241962
commit e931d3f4241231e4102eda06adaf7cbfd68c6a5d
Author: Thomas Hindoe Paaboel Andersen <phomes at gmail.com>
Date: Sat Sep 27 22:25:07 2014 +0200
bootchart: check return of strftime
Found by coverity. Fixes: CID#996314 and #996312
commit 9bcf7507fab6e6b022ae3cc7178237e6e0a09e9a
Author: Thomas Hindoe Paaboel Andersen <phomes at gmail.com>
Date: Fri Sep 26 21:41:02 2014 +0200
bootchart: parse userinput with safe_atoi
Found by coverity. Fixes: CID#996409
commit 492d7a3038b154e1813a1ece913a5a27148fec19
Author: Koen Kooi <koen at dominion.thruhere.net>
Date: Sat Sep 27 09:55:44 2014 +0200
logind: add support for TPS65217 Power Button
This PMIC is found on TI AM335x based boards like the beaglebone and
beaglebone black.
root at beaglebone-white:~# udevadm info -a /dev/input/event0
Udevadm info starts with the device specified by the devpath and then
walks up the chain of parent devices. It prints for every device
found, all possible attributes in the udev rules key format.
A rule to match, can be composed by the attributes of the device
and the attributes from one single parent device.
looking at device
'/devices/ocp.3/44e0b000.i2c/i2c-0/0-0024/input/input0/event0':
KERNEL=="event0"
SUBSYSTEM=="input"
DRIVER==""
looking at parent device
'/devices/ocp.3/44e0b000.i2c/i2c-0/0-0024/input/input0':
KERNELS=="input0"
SUBSYSTEMS=="input"
DRIVERS==""
ATTRS{name}=="tps65217_pwr_but"
ATTRS{phys}==""
ATTRS{uniq}==""
ATTRS{properties}=="0"
looking at parent device '/devices/ocp.3/44e0b000.i2c/i2c-0/0-0024':
KERNELS=="0-0024"
SUBSYSTEMS=="i2c"
DRIVERS=="tps65217"
ATTRS{name}=="tps65217"
looking at parent device '/devices/ocp.3/44e0b000.i2c/i2c-0':
KERNELS=="i2c-0"
SUBSYSTEMS=="i2c"
DRIVERS==""
ATTRS{name}=="OMAP I2C adapter"
looking at parent device '/devices/ocp.3/44e0b000.i2c':
KERNELS=="44e0b000.i2c"
SUBSYSTEMS=="platform"
DRIVERS=="omap_i2c"
looking at parent device '/devices/ocp.3':
KERNELS=="ocp.3"
SUBSYSTEMS=="platform"
DRIVERS==""
commit d6740361f2d7cd148856ca4f6f4610c1c71880c8
Author: Piotr Drąg <piotrdrag at gmail.com>
Date: Sat Sep 27 23:30:15 2014 +0200
catalog: add Polish translation
commit c2026f28bdc64c608e9b00e8f7916c82f44ec610
Author: Eric Cook <llua at gmx.com>
Date: Sat Sep 27 08:48:09 2014 -0400
shell-completion(zsh): journalctl's -b changes
removed pointless index sort of bootids.
use `compadd -a' to add each array, instead of expanding possibly hundreds of words needlessly.
optional completion of -b
commit b748c7596f79945be5263a0d1c88de64eb0c5146
Author: Thomas Hindoe Paaboel Andersen <phomes at gmail.com>
Date: Sat Sep 27 00:25:09 2014 +0200
shutdownd: clean up initialization of struct
No functional change. We just don't assign the value twice.
Found by coverity. Fixes: CID#1237616 and #1237617
commit 45f1b67a70a749ca14a7df256a177de74a3e73f6
Author: Daniel Mack <daniel at zonque.org>
Date: Fri Sep 26 17:50:24 2014 +0200
test-bus-policy: load policy files from TEST_DIR
'make distcheck' calls test-bus-policy outside of the source tree, so it
must consider the TEST_DIR variable to access its files.
commit 9ed2a35e93f4a9e82585f860f54cdcbbdf3e1f86
Author: Richard Weinberger <richard at nod.at>
Date: Tue Sep 9 11:09:37 2014 +0200
systemd-tmpfiles: Fix IGNORE_DIRECTORY_PATH age handling
If one has a config like:
d /tmp 1777 root root -
X /tmp/important_mount
All files below /tmp/important_mount will be deleted as the
/tmp/important_mount item will spuriously inherit a max age of 0
from /tmp.
/tmp has a max age of 0 but age_set is (of course) false.
This affects also the PrivateTmp feature of systemd.
All tmp files of such services will be deleted unconditionally
and can cause service failures and data loss.
Fix this by checking ->age_set in the IGNORE_DIRECTORY_PATH logic.
commit 37161c5148396448921841ae1026b281c7949652
Author: Emil Renner Berthing <systemd at esmil.dk>
Date: Wed Sep 24 17:25:00 2014 +0200
make utmp/wtmp support configurable
This adds --disable-utmp option to configure. If it is used, all
utmp-related functionality, including querying runlevel support,
is removed.
commit 440c61c500ead1bdc6f987b8ba7c5e7f7a9c9f59
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Thu Sep 25 19:02:42 2014 -0400
Revert "only build and install systemd-bus-proxyd if --enable-kdbus"
This reverts commit ef99aec4d25087dec995b3f00b6957dcee6b13e9.
systemd-stdio-bridge is used on non-kdbus systems.
commit 2f88c8583aea6626c5f0a84cfc6de4b0a17f2d1c
Author: Gustavo Sverzut Barbieri <gustavo.barbieri at intel.com>
Date: Thu Sep 25 18:12:03 2014 -0300
do not install factory/etc/pam.d if --disable-pam
commit 0b094b10b4268383c836fa4f285e02ba25ed3ad0
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Thu Sep 25 17:39:56 2014 -0400
build-sys: do not distribute make-man-rules.py
It was added to EXTRA_DIST in 3c3e5f4276a893791110b03984735654372aa33a,
but this script only makes sense for developers.
commit ef99aec4d25087dec995b3f00b6957dcee6b13e9
Author: Gustavo Sverzut Barbieri <gustavo.barbieri at intel.com>
Date: Thu Sep 25 18:13:19 2014 -0300
only build and install systemd-bus-proxyd if --enable-kdbus
commit 8474b70c3a3842cdf3d51f331dd117ab6421f6d0
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Thu Sep 25 17:27:46 2014 -0400
man: use <constant> markup for errno value
We were inconsistent, but marking them up as constants makes more
sense then as variables.
commit 4dfefc1914bad6a025e2d6738999e45b74715002
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Thu Sep 25 17:27:40 2014 -0400
man: document sd_event_add_{defer,post,exit}
commit edf2573743b25273bee020230a60f1a054b8ec60
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Thu Sep 25 17:27:33 2014 -0400
man: add sd_event_add_child(3)
commit 3144ebcad37422dd85220915d37e7e9eea36564a
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Thu Sep 25 17:27:27 2014 -0400
man: add sd_event_add_signal(3)
commit 3a17521f5906b8028d6f01da99f0d84e442b02bc
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Thu Sep 25 17:27:21 2014 -0400
build-sys: add sd_session_get_desktop to Makefile-man.am
Fixup for c72d5456e2d.
commit bfe6c07e1b6bd8bf63d662c60fb333a003bb97a1
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Thu Sep 25 17:27:17 2014 -0400
man/sd_event_new: tweaks
commit 10893a5cfa7d792ba171282c2ec46b85ed6aae0c
Author: Gustavo Sverzut Barbieri <gustavo.barbieri at intel.com>
Date: Thu Sep 25 18:08:02 2014 -0300
journal: build fix when LZ4 is enabled but XZ is not
commit dd87b1840c966fd25b81a7aa1071e8488c624db8
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Thu Sep 25 17:26:40 2014 -0400
journal-remote: fix counting of events written
After recent changes the number was always reported as 0, because
the accounting was done server_destroy(), called after the message was
already printed. But even before this change, the counts were wrong
because seqnum start at 0 only for newly created journal files, so when
appending to existing files, the calculated count was wrong anyway.
Also do some variable renaming for consistency and disable some low-level
debug messages.
commit 22259a00fdb54dee818eeb1019421e2c516a330d
Author: Jonathan Liu <net147 at gmail.com>
Date: Wed Sep 24 23:59:06 2014 +1000
journal-remote: initialize writer hashmap before use
https://bugs.freedesktop.org/show_bug.cgi?id=83682
[zj: move the initalization even earlier, before any sockets are
looked at.]
commit 79d80fc1466512d0ca211f4bfcd9de5f2f816a5a
Author: Tom Gundersen <teg at jklm.no>
Date: Thu Sep 25 18:49:56 2014 +0200
nspawn: check some more return values
Most of these failures would anyway get caught later on, but now the error messages are a bit more
specific.
commit 3d1b90bd7fb562fdb3d15e0d7750ae0c36bc15b6
Author: Tom Gundersen <teg at jklm.no>
Date: Thu Sep 25 18:16:04 2014 +0200
delta: warn if diff failed
Found by Coverity. Fixes CID #1237541.
commit d6bc8348d5be8576a475ac8ced2b0146e60fb71f
Author: Daniel Buch <boogiewasthere at gmail.com>
Date: Tue Aug 26 21:17:22 2014 +0200
readahead: wipe out readahead
commit 4a3bb599609d687e0a501a748bfac491f5fb9f6c
Author: Tom Gundersen <teg at jklm.no>
Date: Thu Sep 25 16:21:36 2014 +0200
bus-proxy: drop one wrong assert()
commit 4a690c47260ca507bbcf92e2a68f66d3ec9a23fb
Author: Tom Gundersen <teg at jklm.no>
Date: Thu Sep 25 16:12:41 2014 +0200
shared: path-util - try to make PATH_FORECH_PREFIX look less wrong
We replace the idiom "X && !(*foo = 0)" with "X && ((*foo = 0), true)".
This is not a functional change, but should hopefully make it less
likely that people and static analyzers believe there is a typo here
(i.e., to make it clear that the intention was not "X && *foo != 0").
Thanks to David Herrmann for the suggestion.
commit 94a2c2f64a1379ca5c9ce4dbbee45ce17250ab51
Author: Tom Gundersen <teg at jklm.no>
Date: Thu Sep 25 15:49:43 2014 +0200
bus-proxyd: add some asserts
Both as documentation, and to make Coverity happy.
Fixes CID #1241495 and #1241496.
commit a34286684ebb78dd3db0d7f34feb2c121c9d00cc
Author: Michal Sekletar <msekleta at redhat.com>
Date: Wed Sep 24 13:17:43 2014 +0200
localectl: print warning when there are options given on kernel cmdline
commit a5f6c30da3ac58081108221bf8a0f6f1d84b33a9
Author: Michal Sekletar <msekleta at redhat.com>
Date: Mon Sep 22 09:38:38 2014 +0200
fileio: make parse_env_file() return number of parsed items
This commit introduces possibility to call parse_env_file_internal() and hand
over extra argument where we will accumulate how many items were successfully
parsed and pushed by callback. We make use of this in parse_env_file() and
return number of parsed items on success instead of always returning zero.
As a side-effect this commit should fix bug that locale settings in
/etc/locale.conf are not overriden by options passed via kernel command line.
commit 078ef7b85ad77ba999588f72b31a50ced5907692
Author: Daniel Mack <daniel at zonque.org>
Date: Wed Sep 24 17:02:08 2014 +0200
bus-policy: split API for bus-proxyd
Instead of operating on an sd_bus_message object, expose an API that has 4
functions:
policy_check_own()
policy_check_hello()
policy_check_recv()
policy_check_send()
This also allows dropping extra code to parse message contents - the bus
proxy already has dedicated code paths for that, and we can hook into
those later.
Tests amended accordingly.
commit 04c553e322680b6fcdf5b271e84b0b4b0ad8d5f9
Author: Thomas Hindoe Paaboel Andersen <phomes at gmail.com>
Date: Tue Sep 23 21:34:21 2014 +0200
bus: remove unused check
strerror_r does not return null here and even if it did we would have
problems already at the preceding strlen call.
Found by coverity. Fixes: CID#1237770
commit 158c1e3e0c1e9dd8ebf1b93061e1c81805eac339
Author: David Herrmann <dh.herrmann at gmail.com>
Date: Tue Sep 23 13:52:50 2014 +0200
terminal: provide display dimensions to API users
Allow users to query the display dimensions of a grdev_display. This is
required to properly resize the objects to be rendered.
commit a908d213557cfbe874b7bd1ae3a1b0d3c05c29e9
Author: David Herrmann <dh.herrmann at gmail.com>
Date: Tue Sep 23 13:51:42 2014 +0200
terminal: verify kernel-returned DRM events are not truncated
Make sure the kernel always returns events properly. This is guaranteed
right now, otherwise, we do something really wrong. But lets be sure and
verify the received values properly. This also silences some coverity
warnings.
commit c5e6bfc6bc46dd8bc187e035929d6a49cd23ec09
Author: David Herrmann <dh.herrmann at gmail.com>
Date: Tue Sep 23 13:40:18 2014 +0200
terminal: verify grdev tiles are correctly linked
We used to set "pipe->tile = tile" inside of the leaf allocation. We no
longer do that. Verify that "out" is non-NULL, otherwise we'd leak memory.
This is currently always given, but make sure to add an assert(), so
coverity does not complain.
commit b4170aed36e667e52ce4a353bda1964e3872ab34
Author: David Herrmann <dh.herrmann at gmail.com>
Date: Tue Sep 23 13:38:09 2014 +0200
terminal: fix tile-offset calculation
Binary operators with two pointers as arguments always operate on
object-size, not bytes. That is, "int *a, *b", (a - b) calculates the
number of integers between b and a, not the number of bytes.
Fix our cache-offset calculation to not use sizeof() with full-ptr
arithmetic.
commit ce540a24d53e1751a5b69224d5a7f5a59f2de7ad
Author: David Herrmann <dh.herrmann at gmail.com>
Date: Tue Sep 23 13:33:53 2014 +0200
Silence some "unchecked return-value" warnings
This adds some log-messages to ioctl() calls where we don't really care
for the return value. It isn't strictly necessary to look for those, but
lets be sure and print warnings. This silences gcc and coverity, and also
makes sure we get reports in case something goes wrong and we didn't
expect it to fail that way.
commit 590889ac53c8557493f491b4259669e54074615d
Author: Daniel Mack <daniel at zonque.org>
Date: Tue Sep 23 17:37:44 2014 +0200
sd-bus: sync kdbus.h
commit 619d7a039f9f64ffa593634c2715838ffbc17be4
Author: Daniel Mack <daniel at zonque.org>
Date: Tue Sep 23 16:13:54 2014 +0200
sd-bus: sync kdbus.h (API break)
Just a rename of two struct members to make the header file c++ compatible.
commit e78af5ffe53a0d24854d721d1166a60f8ed0dfb6
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Thu Sep 4 12:30:46 2014 -0400
localed: rename write_data_x11 to x11_write_data
Other functions in this file follow this pattern,
we have vconsole_write_data and locale_write_data.
commit 493d521d9ffe706741665a88ea14929913ea2eaf
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Tue Sep 23 09:22:40 2014 -0400
Fix warning about unused variable with !SELINUX
src/shared/label.c:255:15: warning: unused variable 'l' [-Wunused-variable]
char *l = NULL;
^
commit 0508a4dfb8300000fcfc5fa5147582e5feebf1a8
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Tue Sep 23 09:22:33 2014 -0400
terminal: fix spelling mistake
commit 58d4aabedd415a735efeb8c2608ee73618c07f78
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Mon Sep 22 22:14:39 2014 -0400
logind: add support for Triton2 Power Button
https://bugs.freedesktop.org/show_bug.cgi?id=84201
commit f8c2425287c8362ae3a3c9acfb9e23a16862b38a
Author: Daniel Mack <daniel at zonque.org>
Date: Mon Sep 22 18:20:14 2014 +0200
sd-bus: sync kdbus.h (API+ABI break)
The kdbus logic name registry logic was changed to transport the actual
name to acquire, release or report in a kdbus item.
This brings the name API a little more in line with other calls, and allows
for later augmentation.
Follow that change on the systemd side.
commit 8507eb20b64010b26f23822cbf442bb0bf96511c
Author: Emil Renner Berthing <systemd at esmil.dk>
Date: Fri Sep 19 20:26:53 2014 +0200
util: avoid non-portable __WORDSIZE
Lets not unnecessarily rely on __WORDSIZE, which is not clearly specified
by any spec. Use explicit size comparisons if we're not interested in the
WORDSIZE, anyway.
(David: adjust commit message to explain why we do this)
commit c17091b79773e9c458f03a897b26c2257d7366a7
Author: David Herrmann <dh.herrmann at gmail.com>
Date: Mon Sep 22 18:05:19 2014 +0200
terminal: signal object removal during sysview_context_stop()
Now that we no longer propagate callback return values, we can safely call
into user-callbacks during sysview_context_stop(). This way, users can
rely on all objects to be removed via callbacks (except if they failed
during object creation). This avoids duplicating any object hashtables on
the users' side and reduces memory consumption.
commit ed3a9f6a30958ef90a24bc60aec86493974101d3
Author: David Herrmann <dh.herrmann at gmail.com>
Date: Mon Sep 22 17:55:31 2014 +0200
terminal: handle callback errors in sysview instead of propagating them
We cannot sanely propagate error codes if we call into user-callbacks
multiple times for multiple objects. There is no way to merge those errors
or somehow propagate them.
However, we can just act similar to sd-event and print a log-message while
discarding the values. This way, we allow error-returns, but can properly
continue working on our objects.
commit f2a15d86ccd0729e1442f40679cd393417e1e177
Author: David Herrmann <dh.herrmann at gmail.com>
Date: Mon Sep 22 17:37:21 2014 +0200
terminal: allow user-context to be retrieved/stored
Add "userdata" storage to a bunch of external objects, namely displays and
sessions. Furthermore, add some property retrieval helpers.
This is required if we want external API users to not duplicate our own
object hashtables, but retrieve context from the objects themselves.
commit 5d301b8aecc286d6ec7e92b0864d66360ea57205
Author: David Herrmann <dh.herrmann at gmail.com>
Date: Mon Sep 22 17:34:13 2014 +0200
terminal: make evdev logind-matches per session
Instead of adding matches per device, we now add logind matches per
session. This reduces the number of matches considerably and saves
resources.
commit ffb6c43e7985e837ae50f8831b98c9941c406969
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Mon Sep 22 09:15:49 2014 -0400
exit-status.c: bring EXIT_BUS_ENDPOINT label in line with others
commit 9c77924c29874aa4684c2a9e1a7b9ee547d49d85
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Mon Sep 22 09:13:38 2014 -0400
man: fix typo and add link
commit c72d5456e2d6a6c8cefbfc16a542ae03a769397f
Author: David Herrmann <dh.herrmann at gmail.com>
Date: Sat Sep 20 18:42:29 2014 +0200
login: add public sd_session_get_desktop() API
The desktop brand is stored as DESKTOP variable for sessions. It can be
set arbitrarily by the session owner and identifies the desktop
environment that is running on that session.
commit 7f3d3ba1a61f28a951ca5fbe59ed15c7ce55219c
Author: David Herrmann <dh.herrmann at gmail.com>
Date: Mon Sep 22 12:49:47 2014 +0200
bus: align kdbus ioctl parameters to 8byte
All kdbus ioctl arguments must be 8byte aligned. Make sure we use
alloca_align() and _alignas_(8) in all situations where gcc doesn't
guarantee 8-byte alignment.
Note that objects on the stack are always 8byte aligned as we put
_alignas_(8) into the structure definition in kdbus.h.
commit 95d78c7e7c81a6b788f28c33ef2cafd87471a0d7
Author: David Herrmann <dh.herrmann at gmail.com>
Date: Mon Sep 22 12:05:16 2014 +0200
util: add alloca_align()
The alloca_align() helper is the alloca() equivalent of posix_memalign().
As there is no such function provided by glibc, we simply account for
additional memory and return a pointer offset into the allocated memory to
grant the alignment.
Furthermore, alloca0_align() is added, which simply clears the allocated
memory.
commit eee846339d2f76f568c62b3725bf75bcee728115
Author: David Herrmann <dh.herrmann at gmail.com>
Date: Mon Sep 22 11:27:22 2014 +0200
test-util: make valgrind happy
Properly free all temporary resources to make valgrind not complain about
lost records.
commit f6e3ee1493f20823b2c33465458b92f3581af88d
Author: David Herrmann <dh.herrmann at gmail.com>
Date: Sat Sep 20 17:47:56 2014 +0200
terminal: raise sysview DEVICE_CHANGE events per attachment
Instead of raising DEVICE_CHANGE only per device, we now raise it per
device-session attachment. This is what we want for all sysview users,
anyway, as sessions are meant to be independent of each other. Lets avoid
any external session iterators and just do that in sysview itself.
commit 89febb631a4710992cd41e402a643451b19c11a7
Author: David Herrmann <dh.herrmann at gmail.com>
Date: Sat Sep 20 12:39:59 2014 +0200
terminal: forward evdev RESYNC events to linked devices
Whenever we resync an evdev device (or disable it), we should send RESYNC
events to the linked upper layers. This allows to disable key-repeat and
assume some events got dropped.
commit 6022343476982439dfc2e06bf54db78a0c8c6bff
Author: David Herrmann <dh.herrmann at gmail.com>
Date: Sat Sep 20 12:34:43 2014 +0200
terminal: always call _enable/_disable on evdev devices
The current pause/resume logic kinda intertwines the resume/pause and
enable/disable functions. Lets avoid that non-obvious behavior and always
make resume call into enable, and pause call into disable, if appropriate.
commit 4c4e4128f3763eb3d4836a23b9c46b6122e81d62
Author: David Herrmann <dh.herrmann at gmail.com>
Date: Sat Sep 20 12:33:18 2014 +0200
terminal: print RESYNC state in evcat
Whenever a key-event is part of a RESYNC, we should print that verbosely
as those events are out-of-order.
commit 20725d929ff566e53d7a857d6f0ee94aa8383469
Author: Daniel Mack <daniel at zonque.org>
Date: Fri Sep 19 14:50:53 2014 +0200
bus-policy: add test utility
Add some test files and routines for dbus policy checking.
commit 38349552d8d6418229fee9ee68b1f470b4ad7a52
Author: Daniel Mack <daniel at zonque.org>
Date: Fri Sep 19 14:38:52 2014 +0200
bus-policy: add policy check function
Add policy_check() to actually check whether an incoming message is allowed
by the policy. The code is not yet used from the proxy daemon, though.
commit ed91202f1c237a41a3ee3754a4a1d37139d7f34f
Author: Daniel Mack <daniel at zonque.org>
Date: Sat Sep 20 18:09:00 2014 +0200
bus-policy: print numeric [gu]id in dump_items()
commit e42bb8d4ed7c81abbe416ef30436f7b4b9e07bad
Author: Daniel Mack <daniel at zonque.org>
Date: Sat Sep 20 15:59:40 2014 +0200
bus-policy: do not exit() from policy_dump()
This function is quite useful for debugging. Exiting from it seems
unnecessary.
commit 080edb3484dc3ecf8d914526fdd3090b40fdf5b6
Author: Daniel Mack <daniel at zonque.org>
Date: Fri Sep 19 14:05:18 2014 +0200
bus-policy: implement dump_items() with LIST_FOREACH
Instead of making the function call itself recursively.
commit 9eacea6b51bb86fb2c066bd4fa7cba28a17d12f3
Author: Daniel Mack <daniel at zonque.org>
Date: Sat Sep 20 04:34:30 2014 +0200
bus-policy: resolve [ug]id of POLICY_ITEM_{USER,GROUP}
Do the lookup during parsing already, and set i->uid, or i->gid to the
numerical values.
commit c3502b59ec4e58a877003050e6c2fc668eee3129
Author: Daniel Mack <daniel at zonque.org>
Date: Sat Sep 20 16:34:31 2014 +0200
bus_policy: set i->[ug]id_valid
commit e7eb49db071f9aab2a9bad0660962f2aa4d0c7d1
Author: Daniel Mack <daniel at zonque.org>
Date: Fri Sep 19 22:05:01 2014 +0200
bus-policy: append items rather than prepending them
In the D-Bus policy, the order of items matters, so make sure to store them
in the same order as they are parsed by the sax parser.
commit 303174638af7a8fcf6211fb99b8d07c9d270567e
Author: Daniel Mack <daniel at zonque.org>
Date: Fri Sep 19 17:50:41 2014 +0200
bus-policy: story mandatory items in right list
commit 9158d03e4042876b7627947b3489fd4d49c7553a
Author: Tom Gundersen <teg at jklm.no>
Date: Sat Sep 20 18:12:53 2014 +0200
test: udev - restrict nemuric uid's to existing ones
We now verify the existence of uid's before applying them to devicenodes, so change the
test accordingly. We assume that both uid/gid 1 and 2 exist on the test system.
commit 0fbd4d113e0d2123e896e8005d1b7fe407c28c05
Author: David Herrmann <dh.herrmann at gmail.com>
Date: Sat Sep 20 11:43:32 2014 +0200
terminal: fix mode sync for connectors
The GETXY ioctls of DRM are usually called twice by libdrm: Once to
retrieve the number of objects, a second time with suitably sized buffers
to actually retrieve all objects. In grdrm, we avoid these excessive calls
and instead just call ioctls with cached buffers and resize them if they
were too small.
However, connectors need to read the mode list via EDID, which is horribly
slow. As the kernel still cannot do that asynchronously (seriously, we
need to fix this!), it has a hack to only do it if count_modes==0. This is
fine with libdrm, as it calls every ioctl twice, anyway. However, we fail
horribly with this as we usually never pass 0.
Fix this by calling into GETCONNECTOR ioctls twice in case we received an
hotplug event. Only in those cases, we need to re-read modes, so this
should be totally fine.
commit f919ad9d3dc3e25f6eed268fe7eb5e922bcdb3b6
Author: David Herrmann <dh.herrmann at gmail.com>
Date: Sat Sep 20 11:41:34 2014 +0200
terminal: restructure some logging calls in grdrm
Multiple issues here:
1) Don't print excessive card dumps on each resync. Disable it and make
developers add it themselves.
2) Ignore EINVAL on page-flips. Some cards don't support page-flips, so
we'd print it on each frame. Maybe, at some point, the kernel will add
support to retrieve capabilities for that. Until then, simply ignore
it.
3) Replace the now dropped card-dump with a short message about resyncing
the card.
commit 7b12a45b2dc6993e3f31642df2cc9b528294da40
Author: David Herrmann <dh.herrmann at gmail.com>
Date: Sat Sep 20 11:12:44 2014 +0200
terminal: grdev: schedule virtual frame events if hw doesn't support it
Whenever we cannot use hardware frame events, we now schedule a virtual
frame event to make sure applications don't have to do this. Usually,
applications render only on data changes, but we can further reduce
render-time by also limiting rendering to vsyncs.
commit 3ec19e5d91d3d705682fee62a509801737c56c1e
Author: David Herrmann <dh.herrmann at gmail.com>
Date: Sat Sep 20 11:11:07 2014 +0200
terminal: grdev: raise frame event after DISPLAY_ADD/CHANGE
Whenever a display is added or changed, we suppressed any frame events.
Make sure to raise them manually so we can avoid rendering when handling
anything but FRAME events.
commit 95dbf6b19e8f25e28224b954ef99d96225b4e6e7
Author: David Herrmann <dh.herrmann at gmail.com>
Date: Sat Sep 20 11:10:04 2014 +0200
terminal: split grdrm_crtc_commit() apart
This helper is quite huge, split it apart to make it easier to follow.
commit 6221d249d1f03d235a23a284c597c86676b32d2f
Author: David Herrmann <dh.herrmann at gmail.com>
Date: Sat Sep 20 09:50:10 2014 +0200
terminal: grdev: refresh device state on hotplug events
Whenever we get udev hotplug events, re-read the device state so we
properly detect any changed in the display setups.
commit a3eabec96b872bbf581c9bfa81ecc9c2819b8de8
Author: David Herrmann <dh.herrmann at gmail.com>
Date: Sat Sep 20 09:48:22 2014 +0200
terminal: grdev: treat udev-devices without devnum as hotplug
If we get udev-device events via sysview, but they lack devnum
annotations, we know it cannot be a DRM card. Look through it's parents
and treat it as hotplug event in case we find such a card.
This will treat any new/removed connectors as sub-devices of the real
card, instead of as devices on its own.
commit 46c9a12780ea24ef311682897077423f1825c519
Author: David Herrmann <dh.herrmann at gmail.com>
Date: Sat Sep 20 09:46:13 2014 +0200
terminal: modeset: forward DEVICE_CHANGE events into grdev
Properly forward DEVICE_CHANGE events into grdev so we can react to
changing display setups.
commit 39cf40e846754fe37f5c8a948f37227ce1ef8472
Author: David Herrmann <dh.herrmann at gmail.com>
Date: Sat Sep 20 09:45:26 2014 +0200
terminal: reduce speed of morphing colors in modeset test
The high frequency of the color-morphing is kinda irritating. Reduce it
to a much lower frequency so you can actually look at it longer than few
seconds.
commit c1102405c1c151b693cf92f1b704a4eb8aacee73
Author: David Herrmann <dh.herrmann at gmail.com>
Date: Sat Sep 20 09:44:14 2014 +0200
terminal: make drm-connectors first-level devices
So far, we only forward DRM cards via sysview APIs. However, with MST,
connectors can be hotplugged, too. Forward the connectors as first-level
devices via sysview so API users can react to changing DRM connectors.
commit 965f7a3f9bf7afb85be62198fabc70ffa033d8b1
Author: David Herrmann <dh.herrmann at gmail.com>
Date: Sat Sep 20 09:43:16 2014 +0200
terminal: forward DEVICE_CHANGE events via sysview
Whe need to react to "change" events on devices, but we want to avoid
duplicating udev-monitors everywhere. Therefore, make sysview forward
change events to the sysview controllers, which can then properly react
to it.
commit 3e7f6cf9565e007545112f245e69b2bf45866258
Author: David Herrmann <dh.herrmann at gmail.com>
Date: Sat Sep 20 09:29:11 2014 +0200
terminal: parse ID_SEAT not only for parents but the device itself
When deciding what seat a device is on, we have to traverse all parents
to find one with an ID_SEAT tag, otherwise, input devices plugged on a
seated USB-hub are not automatically attached to the right seat. But any
tags on the main device still overwrite the tags of the childs, so fix our
logic to check the device itself first, before traversing the parents.
commit c00524c9cc7fb498c7244350e25823b8352f078c
Author: Tom Gundersen <teg at jklm.no>
Date: Fri Sep 19 23:02:00 2014 +0200
nspawn: don't try to create veth link with too long ifname
Reported by: James Lott <james at lottspot.com>
commit 810626a80de8361dfbe27110d585023b3d6167a6
Author: David Herrmann <dh.herrmann at gmail.com>
Date: Fri Sep 19 14:48:54 2014 +0200
terminal: add systemd-modeset debugging tool
The systemd-modeset tool is meant to debug grdev issues. It simply
displays morphing colors on any found display. This is pretty handy to
look for tearing in the backends and debug hotplug issues.
Note that this tool requires systemd-logind to be compiled from git
(there're important fixes that haven't been released, yet).
commit f22e0bce3732c1fd005b7a886042394e036bc1b3
Author: David Herrmann <dh.herrmann at gmail.com>
Date: Fri Sep 19 14:13:06 2014 +0200
terminal: add grdev DRM backend
The grdev-drm backend manages DRM cards for grdev. Any DRM card with
DUMB_BUFFER support can be used. So far, our policy is to configure all
available connectors, but keep pipes inactive as long as users don't
enable the displays on top.
We hard-code double-buffering so far, but can easily support
single-buffering or n-buffering. We also require XRGB8888 as format as
this is required to be supported by all DRM drivers and it is what VTs
use. This allows us to switch from VTs to grdev via page-flips instead of
deep modesets.
There is still a lot room for improvements in this backend, but it works
smoothly so far so more enhanced features can be added later.
commit 650c5444273993f969b9cd7df9add6ab2df0414e
Author: David Herrmann <dh.herrmann at gmail.com>
Date: Fri Sep 19 14:05:52 2014 +0200
terminal: add graphics interface
The grdev layer provides graphics-device access via the
libsystemd-terminal library. It will be used by all terminal helpers to
actually access display hardware.
Like idev, the grdev layer is built around session objects. On each
session object you add/remove graphics devices as they appear and vanish.
Any device type can be supported via specific card-backends. The exported
grdev API hides any device details.
Graphics devices are represented by "cards". Those are hidden in the
session and any pipe-configuration is automatically applied. Out of those,
we configure displays which are then exported to the API user. Displays
are meant as lowest hardware entity available outside of grdev. The
underlying pipe configuration is fully hidden and not accessible from the
outside. The grdev tiling layer allows almost arbitrary setups out of
multiple pipes, but so far we only use a small subset of this. More will
follow.
A grdev-display is meant to represent real connected displays/monitors.
The upper level screen arrangements are user policy and not controlled by
grdev. Applications are free to apply any policy they want.
Real card-backends will follow in later patches.
commit 2ec3ff668ff03410e94cfef8e3ee9384a8222211
Author: David Herrmann <dh.herrmann at gmail.com>
Date: Fri Sep 19 13:26:39 2014 +0200
login: pause devices before acknowledging VT switches
If a session controller does not need synchronous VT switches, we allow
them to pass VT control to logind, which acknowledges all VT switches
unconditionally. This works fine with all sessions using the dbus API,
but causes out-of-sync device use if we switch to legacy sessions that
are notified via VT signals. Those are processed before logind notices
the session-switch via sysfs. Therefore, leaving the old session still
active for a short amount of time.
This, in fact, may cause the legacy session to prepare graphics devices
before the old session was deactivated, and thus, maybe causing the old
session to interfer with graphics device usage.
Fix this by releasing devices immediately before acknowledging VT
switches. This way, sessions without VT handlers are required to support
async session switching (which they do in that case, anyway).
commit 16115b0a7b7cdf08fb38084d857d572d8a9088dc
Author: Michal Sekletar <msekleta at redhat.com>
Date: Thu Jul 24 10:40:28 2014 +0200
socket: introduce SELinuxContextFromNet option
This makes possible to spawn service instances triggered by socket with
MLS/MCS SELinux labels which are created based on information provided by
connected peer.
Implementation of label_get_child_mls_label derived from xinetd.
Reviewed-by: Paul Moore <pmoore at redhat.com>
commit 863f3ce0d050f005839f6aa41fe7bac5478a7b5e
Author: Tom Gundersen <teg at jklm.no>
Date: Fri Sep 19 08:03:31 2014 +0200
shared: wtmp-utmp - don't clear store_wtmp in utmp_put_dead_process()
Also modernize a few other things and add comments to explain CID #1237503
and CID #1237504.
commit cbb452e7ef4419666af7ad343786ee54c23dd977
Author: Thomas Hindoe Paaboel Andersen <phomes at gmail.com>
Date: Fri Sep 19 01:43:04 2014 +0200
test: warn if we could not parse the loop count argument
Found by coverity. Fixes: CID#1237512
commit 8e8af4cfc7fa373504a22e58966909161acfb72f
Author: Emil Renner Berthing <systemd at esmil.dk>
Date: Thu Sep 18 15:24:43 2014 +0200
shared/sparse-endian.h: add missing byteswap.h include
commit 45f15021e3524b04d574b9ff4e801cb3219daf3f
Author: Emil Renner Berthing <systemd at esmil.dk>
Date: Thu Sep 18 15:24:42 2014 +0200
shared/label.h: add missing stdio.h include
commit fb1f4170d008315cb9eabe994038977a0366ede5
Author: David Herrmann <dh.herrmann at gmail.com>
Date: Fri Sep 19 00:23:42 2014 +0200
pty: include linux/ioctl.h for TIOCSIG
TIOCSIG is linux specific, so include the linux ioctl header to make sure
it's defined. We currently rely on some rather non-obvious recursive
includes. Make sure its always defined regardless of the system headers.
commit 66a16e7e9fc501d371b57cbe2ae5d130fe930c6d
Author: Thomas Hindoe Paaboel Andersen <phomes at gmail.com>
Date: Thu Sep 18 23:55:46 2014 +0200
nss: remove dead code
c > 0 is already guaranteed from earlier checks.
We go from
ms = ALIGN(l+1) +
sizeof(char*) +
(c > 0 ? c : 1) * ALIGN(alen) +
(c > 0 ? c+1 : 2) * sizeof(char*);
to
ms = ALIGN(l+1) +
sizeof(char*) +
c * ALIGN(alen) +
(c+1) * sizeof(char*);
to
ms = ALIGN(l+1) + c * ALIGN(alen) + (c+2) * sizeof(char*);
Found by coverity. Fixes: CID#1237570 and CID#1237610
commit 2f905e821e0342c36f5a5d3a51d53aabccc800bd
Author: Tom Gundersen <teg at jklm.no>
Date: Thu Sep 18 23:37:07 2014 +0200
timesyncd: check return of setting IP_TOS
Fonud by Coverity. Fixes CID #1237534.
commit 25773e7fc59b4ce53d67da4e18bfe4d13ab0b14b
Author: Tom Gundersen <teg at jklm.no>
Date: Thu Sep 18 21:57:49 2014 +0200
udevd: don't fail if /run/udev exists
commit 65fea570f03df51dadc06a3e0d261a71fe62aa01
Author: Tom Gundersen <teg at jklm.no>
Date: Thu Sep 18 20:25:33 2014 +0200
udev: fix typos
Spotted by Andreas Henriksson.
commit 4bbdff757ed4e718a3348b93439a03055cc5e3bc
Author: Tom Gundersen <teg at jklm.no>
Date: Thu Sep 18 19:26:11 2014 +0200
udev: ctrl - log if setting SO_PASSCRED fails
No functional change.
Found by Coverity. Fixes CID #1237533.
commit 543afdc63c02a5af3cf6bd2a264162f23474346a
Author: Tom Gundersen <teg at jklm.no>
Date: Thu Sep 18 19:22:09 2014 +0200
udev: node - warn if chmod/chown fails
No functional change, just log the warning.
Fonud by Coverity. Fixes CID #1237544.
commit f901aaadd68050bc575c1c15b84f8f31fd4d494d
Author: Tom Gundersen <teg at jklm.no>
Date: Thu Sep 18 19:16:54 2014 +0200
udevadm: hwdb - check return value of fseeko()
Fonud by Coverity. Fixes CID #996255.
commit d457ff8319b1e7c522c146f75e272f1226f4720c
Author: Tom Gundersen <teg at jklm.no>
Date: Thu Sep 18 19:07:02 2014 +0200
udevd: check return of various functions
One reported by Coverity. Fixes CID #996252.
commit 6f5cf8a8b1de763383f7382821147e538b7dbd6d
Author: Tom Gundersen <teg at jklm.no>
Date: Thu Sep 18 19:02:03 2014 +0200
udevd: parse_argv - warn if argumens are invalid
Found by Coverity. Fixes CID #1238780.
commit b1604b341bcd190d67894f416d842990a082a4a4
Author: Andreas Henriksson <andreas at fatal.se>
Date: Thu Sep 18 17:52:54 2014 +0200
journal-remote: check return code of sd_event_default
Handle sd_event_default returning error and bail out properly
as done in every other caller of this function.
Found by coverity. Fixes: CID#1238957
commit 56d21cdebce3ecd3b06189cb2184a84ba909619f
Author: Philippe De Swert <philippedeswert at gmail.com>
Date: Thu Sep 18 18:56:57 2014 +0300
sysusers: Remove some gcc warnings about uninitialized variables
Gcc is spewing some warnings about uninitialized variables.
Let's get rid of the noise.
commit 96f2f3b1b5f44eb59d23d2abeac12b33a18e1e21
Author: Philippe De Swert <philippedeswert at gmail.com>
Date: Thu Sep 18 18:56:56 2014 +0300
core: Remove uninitialized warnings from bus-endpoint.c
Gcc is spewing some warnings about uninitialized variables.
Let's get rid of the noise.
commit b88a40a7e592e0a4a2e6e8eb1ed3721989ba5d0e
Author: Philippe De Swert <philippedeswert at gmail.com>
Date: Thu Sep 18 18:56:55 2014 +0300
journal-upload: Remove compilation warning
When compiling we see this curl warning popping up:
src/journal-remote/journal-upload.c:194:17: warning: call to
‘_curl_easy_setopt_err_error_buffer’ declared with attribute
warning: curl_easy_setopt expects a char buffer of CURL_ERROR_SIZE
as argument for this option [enabled by default]
This patch removes the warning (which occurs twice).
commit 141a1ceaa62578f1ed14f04cae2113dd0f49fd7f
Author: Emil Renner Berthing <systemd at esmil.dk>
Date: Thu Sep 18 15:24:59 2014 +0200
mount: order options before other arguments to mount
commit fdb8bd0fe7244b72ddc1c08e401ebddefdaf4f46
Author: Emil Renner Berthing <systemd at esmil.dk>
Date: Thu Sep 18 15:24:38 2014 +0200
include fcntl.h rather than sys/fcntl.h
commit 1ed96046cb2143f99888383157db16cd184d4b5a
Author: Emil Renner Berthing <systemd at esmil.dk>
Date: Thu Sep 18 15:24:40 2014 +0200
sd-rtnl: rtnl-message: remove unneeded linux includes
commit 58c9846d32e55799b6e4607136a34e2727c919ac
Author: Emil Renner Berthing <systemd at esmil.dk>
Date: Thu Sep 18 15:24:39 2014 +0200
udev: link-config: remove unneded linux/netdevice.h include
commit e8c108ca9f11a382742f212f5b42a02536b3d40f
Author: Philippe De Swert <philippedeswert at gmail.com>
Date: Wed Sep 17 00:27:16 2014 +0300
journal: Do not count on the compiler initializing found_last to false
There is a very unlikely case where this can happen since gcc usually
does the sane thing. But let's make sure found_last is initialized anyway.
Fixes: CID#996386
commit fb7661a6020b5680d5647d3d85b0501a4f3a5042
Author: Michael Marineau <michael.marineau at coreos.com>
Date: Mon Sep 15 14:07:39 2014 -0700
man: use the escape for "-" in example instead of space.
This sentence can be misread to mean that "\x20" is the escape code for
"-" which is the only character explicitly mentioned. This lead to at
least one user loosing hair over why a mount unit for "/foo/bar-baz"
didn't work. The example escape is arbitrary so lets prevent hair loss.
commit 572016d1c2c5a679ea3ac95ff15ce9f3508020f3
Author: Robert Milasan <rmilasan at suse.com>
Date: Sat Sep 13 15:18:37 2014 +0200
udev: fix path for database names on 'change' event
If a device does not have a major/minor number attached, we use different
database names than if it does. On "change" events, we didn't copy the
devnum over, therefore, we used different paths than on 'add' or 'remove'
events (where devnum was properly copied).
Fix this by always copying the devnum into the udev-device.
(David: added commit-log from email)
commit c2fa048c4a70c8386c6d8fe939e5ea9edecf1e98
Author: David Herrmann <dh.herrmann at gmail.com>
Date: Thu Sep 18 13:28:28 2014 +0200
bus: fix bus_print_property() to use "int" for booleans
We always use "int" if we retrieve boolean values from sd-bus, as "bool"
is only a single byte, but full int on va-args.
Thanks to Werner Fink for the report!
commit 77c10205bb337585c320e91af4b416f2dcc6faba
Author: Tom Gundersen <teg at jklm.no>
Date: Thu Sep 18 13:47:00 2014 +0200
shared: conf-parser - don't leak memory on error in DEFINE_CONFIG_PARSE_ENUMV
Found by Coverity. Fixes CID #1237746.
commit 9dedfe7f667a8cb22ba85d0223556c69c4fd0e9a
Author: Tom Gundersen <teg at jklm.no>
Date: Thu Sep 18 09:20:46 2014 +0200
libudev: monitor - warn if we fail to request SO_PASSCRED
The function still succeeds, so there is no functional change. This fixes CID #996288.
commit 76082570b8115c3410bac42bb5842ba201dddb76
Author: Ronny Chevalier <chevalier.ronny at gmail.com>
Date: Thu Sep 18 12:09:10 2014 +0200
tests: fix resource & mem leaks
commit 913b6d70cbfd6151babc77ffc5e8c67b953ddba9
Author: Daniel Mack <daniel at zonque.org>
Date: Thu Sep 18 10:25:35 2014 +0200
sd-bus: sync kdbus.h
(no API/ABI break this time)
commit 48a2900c6612052149a1d0dd88aeacb99b49ce4d
Author: Cristian Rodríguez <crrodriguez at opensuse.org>
Date: Wed Sep 17 21:56:25 2014 -0300
systemctl: fix resource leak CID #1237747
..by simply moving the declaration of "unit" into the STRV_FOREACH
loop as suggested by Andreas.
commit 4edf33d1e3fb551b1b0cee8e4a2a380c71b00dc7
Author: Cristian Rodríguez <crrodriguez at opensuse.org>
Date: Wed Sep 17 18:10:21 2014 -0300
Fix resource leak (coverity CID 1237760)
commit 8c84621c25c563c7428f3d355136fc542389aab8
Author: Thomas Hindoe Paaboel Andersen <phomes at gmail.com>
Date: Wed Sep 17 23:03:27 2014 +0200
sysv-generator: don't check first if hashmap contains the service name
Just test if hashmap_get returns null. hashmap_contains does exactly
same thing internally so this is slightly more efficient for the true
case.
Silences a coverity warning too. CID#1237648
commit 2b2332856bafe25c4aa17db2a90bdcddef1fec1a
Author: Ronny Chevalier <chevalier.ronny at gmail.com>
Date: Wed Sep 17 20:10:44 2014 +0200
logind: fix typo
commit 83e341a637b75f7f592a5dc717c34d8b67ed4ffa
Author: Tom Gundersen <teg at jklm.no>
Date: Wed Sep 17 22:17:53 2014 +0200
shared: conf-parser
Check memory allocation. Found by Coverity.
Fixes CID #1237644.
commit 19c784c414e6f2b35a268034905e1db226e905f6
Author: Tom Gundersen <teg at jklm.no>
Date: Wed Sep 17 21:53:20 2014 +0200
udev: event - modernize spawn_exec()
commit 3f796750b192e62701e91a95f85389f876d1059b
Author: Tom Gundersen <teg at jklm.no>
Date: Wed Sep 17 21:44:56 2014 +0200
udev: event - explicitly don't read() from invalid fd
This fixes CID #1237641.
commit 4cd5d5adb6a573d8ffb336b82325e5f2bb188381
Author: Tom Gundersen <teg at jklm.no>
Date: Wed Sep 17 21:43:57 2014 +0200
udev: event - modernize spawn_read()
commit 4eef5b7441692c962af57eab7bb758f1cfdece35
Author: Thomas Hindoe Paaboel Andersen <phomes at gmail.com>
Date: Wed Sep 17 20:48:39 2014 +0200
nss-resolve: remove dead code
ifindex < 0 was already checked before entering the loop
Found by coverity. Fixes: CID#1237609
commit 6c8aaf0c1bf2a04010ae7125a08ceb51e7058712
Author: Tom Gundersen <teg at jklm.no>
Date: Wed Sep 17 19:53:01 2014 +0200
udev: rules - close empty file
If the file is found to be empty, we exit early without closing the file first.
Found by coverity. Fixes CID #1237759.
commit 6f42877282a7237f3aa840403047b7cc18d7faa6
Author: Tom Gundersen <teg at jklm.no>
Date: Wed Sep 17 19:07:56 2014 +0200
libsystemd-network: dhcp-test - assert that malloc0 succeeds
Otherwise we would get a nullptr dereference later on.
Found by coverity. Fixes CID #1237655.
commit f414a269b378d526b8b26c5b52743360b43965ce
Author: Tom Gundersen <teg at jklm.no>
Date: Wed Sep 17 19:00:55 2014 +0200
networkd: dhcp4 - fix unchecked return value
Found by coverity. CID #1237529 and #1237528.
commit ff02f101cb7db516bf1732bb74c42cb3b6259af1
Author: David Herrmann <dh.herrmann at gmail.com>
Date: Wed Sep 17 10:32:49 2014 +0200
bus: fix error leak in bus_node_exists()
If we call into user callbacks, we must always propagate possible errors.
Fix bus_node_exists() to do that and adjust the callers (which already
partially propagated the error).
Also speed up that function by first checking for registered enumerators
and/or object-managers.
commit 943c3f94e2f8b8b35ef6a40220bbe4c06510930c
Author: David Herrmann <dh.herrmann at gmail.com>
Date: Wed Sep 17 09:28:09 2014 +0200
bus: never respond to GetManagedObjects() on sub-paths
The dbus-spec clearly specifies that GetManagedObjects() should only work
on the root-path of an object-tree. But on that path, it works regardless
whether there are any objects available or not.
We could, technically, define all sub-paths as a root-path of its own
sub-tree. However, if we do that, we enter undefined territory:
Imagine only a fallback vtable is registered. We want
GetManagedObjects() to *NOT* fail with UNKNOWN_METHOD if it is called
on a valid sub-tree of the fallback. On the other hand, we don't want
it to work on arbitrary sub-tree. Something like:
/path/to/fallback/foobar/foobar/foobar/invalid/foobar
should not work.
However, there is no way to know which paths on a fallback are valid
without looking at there registered objects. If no objects are
registered, we have no way to figure it out.
Therefore, we now try to follow the dbus spec by only returning valid data
on registered root-paths. We treat each path as root which was registered
an object-manager on via add_object_manager(). So applications can now
directly control which paths to place an object-manager on.
We also fix the introspection to not return object-manager interfaces on
non-root paths.
Also fixes some dead-code paths initially reported by Philippe De Swert.
commit 0e1f579227b08832437a7ac2227c7e4007a89d23
Author: David Herrmann <dh.herrmann at gmail.com>
Date: Wed Sep 17 09:06:49 2014 +0200
sysctl: make --prefix allow all kinds of sysctl paths
Currently, we save arguments passed as --prefix directly and compare them
later to absolute sysctl file-system paths. That is, you are required to
specify arguments to --prefix with leading /proc/sys/. This is kinda
uselesss. Furthermore, we replace dots by slashes in the name, which makes
it impossible to match on specific sysfs paths that have dots in their
name (like netdev names). The intention of this argument is clear, but it
never worked as expected.
This patch modifies --prefix to accept any kind of sysctl paths. It
supports paths prefixed with /proc/sys for compatibility (but drops the
erroneous dot->slash conversion), but instead applies normalize_sysctl()
which turns any name or path into a proper path. It then appends
/proc/sys/ so we can properly use it in matches.
Thanks to Jan Synacek <jsynacek at redhat.com> for catching this!
commit 42646a8bf24be2c9280554c9d8540c67c835b3c4
Author: Thomas Hindoe Paaboel Andersen <phomes at gmail.com>
Date: Tue Sep 16 22:58:35 2014 +0200
util: remove a unnecessary check
We only break out of the previous loop if fd >= 0 so there is no
use in checking it again.
Found by coverity. Fixes: CID#1237577
commit 1164e944d9689c3e94c100a634fb5a404662e247
Author: David Herrmann <dh.herrmann at gmail.com>
Date: Tue Sep 16 23:00:26 2014 +0200
terminal: remove dead code checking O_WRONLY
We only reject evdev FDs that are O_WRONLY as they're currently pretty
useless. The following check for O_WRONLY is thus never excercised so drop
it.
Thanks to Thomas Andersen (via coverity)!
commit cca0efb0477f9bb7d61b48ba270b885b29c0bb72
Author: Thomas Hindoe Paaboel Andersen <phomes at gmail.com>
Date: Tue Sep 16 21:59:50 2014 +0200
test: silence a coverity report
We check the actual contents of the file on the line after but we
might as well also check the number of bytes read here.
Found by coverity. Fixes: CID#1237521
commit d9ab174bd7ec1dd5b382d3d84737d1c9ed1f4481
Author: Andreas Henriksson <andreas at fatal.se>
Date: Tue Sep 16 21:36:26 2014 +0200
shared: fix resource leak in config_parse_default_instance
The recently allocated "printed" is not freed on error path.
Found by coverity. Fixes: CID#1237745
commit 91e7bad45dced1cb2dfaac79337bb08d6e2b74a9
Author: Andreas Henriksson <andreas at fatal.se>
Date: Tue Sep 16 21:22:59 2014 +0200
sysv-generator: fix resource leak
The "unit" string allocation is not freed on either error or success path.
Found by coverity. Fixes: CID#1237755
commit aa9f8a30fd7dc7aa3aa2575b75b3f9a0ab3f02db
Author: Andreas Henriksson <andreas at fatal.se>
Date: Tue Sep 16 21:11:02 2014 +0200
core: fix resource leak in manager_environment_add
Second error path must free the (potentially) allocated memory in the
first code chunk before returning.
Found by coverity. Fixes: CID#1237750
commit 06b7f7bd7fa8cde840dd693c7a68dbd954c119ec
Author: Cristian Rodríguez <crrodriguez at opensuse.org>
Date: Tue Sep 16 14:17:01 2014 -0300
missing: memfd_create takes unsigned int flags in final version
commit 9169b9a8cc43046f92a4c5c85b0b3fe9ca0fb429
Author: Thomas Hindoe Paaboel Andersen <phomes at gmail.com>
Date: Mon Sep 15 22:55:36 2014 +0200
terminal: sd_bus_error_get_errno returns positive errno
The 3 calls to sd_bus_error_get_errno appear to expect a negative
return value.
This patch negates the returned value so it matches the other error
cases in the 3 functions where sd_bus_error_get_errno is used.
commit b49ffb29ed902f173852707652b3e3c9c303cebb
Author: Thomas Hindoe Paaboel Andersen <phomes at gmail.com>
Date: Mon Sep 15 22:36:43 2014 +0200
sd-bus: sd_bus_message_get_errno should only return positive errno
sd_bus_message_get_errno can currently return either a number of
different poitive errno values (from bus-error-mapping), or a negative
EINVAL if passed null as parameter.
The check for null parameter was introduced in 40ca29a1370379d43e44c0ed425eecc7218dcbca
at the same as the function was renamed from bus_message_to_errno and
made public API. Before becoming public the function used to return
only negative values.
It is weird to have a function return both positive and negative errno
and it generally looks like a mistake. The function is guarded by the
--enable-kdbus flags so I wonder if we still have time to fix it up?
It does not have any documentation yet. However, except for a few details
it is just a convenient way to call sd_bus_error_get_errno which is documented
to return only positive errno.
This patch makes it return only positive errno and fixes up the two
calls to the function that tried to cope with both positive and negative
values.
commit d498a616075ebfd8025d66c4c4f725d24eb3aca3
Author: Andreas Henriksson <andreas at fatal.se>
Date: Tue Sep 16 19:40:25 2014 +0200
bootchart: oom-check correct variable
Coverity warned that we have already dereferenced ps->sample before
null-checking it. I suspect that's not really the issue and that
the check is checking the wrong variable.
Likely the oom-check should be on the just allocated ps->sample->next.
Found by coverity. Fixes: CID#1237765
commit e10f3c431a3bc1a94fbe9d2a14d3025550f9672e
Author: Tom Gundersen <teg at jklm.no>
Date: Tue Sep 16 18:42:22 2014 +0200
bootchart: use safe_atod() rather than strtod()
commit caffbef636ec48958dcb22e4b4140a9889a6a769
Author: David Herrmann <dh.herrmann at gmail.com>
Date: Tue Sep 16 17:33:20 2014 +0200
hostname: add missing EMITS_CHANGE annotation
We call into sd-bus to send PropertiesChanged notifications for
"Hostname", but forgot to add the annotation to the bus-vtable. Fix that!
commit 2833796106420e4634543d06052482f75cbb5762
Author: Andreas Henriksson <andreas at fatal.se>
Date: Tue Sep 16 15:50:58 2014 +0200
libsystemd-network: avoid double-free in error case
Don't manually free 'n' in error path as it's already tagged
_cleanup_free_ and will be freed once it goes out of scope,
leading to double-free in this case.
Found with coverity. Fixes: CID#1237786
commit 821b2e792159e237a1e5a1ea4bb6ae2e55d64be5
Author: Lukas Nykryn <lnykryn at redhat.com>
Date: Tue Sep 16 13:50:11 2014 +0200
gpt-auto-generator: fix typo
commit 85639427b3a3014adf934ee94c86d91f3aaf4cfb
Author: Tom Gundersen <teg at jklm.no>
Date: Mon Sep 15 16:36:07 2014 +0200
udev: rules - add missing whitespace to log message
commit f1e8664e4a86f9b9b8d8a001d886d69f1ac42e9b
Author: Tom Gundersen <teg at jklm.no>
Date: Mon Sep 15 14:41:30 2014 +0200
udevd: use safe_ato*() in place of strto*()
commit ba7408a6e9fa2f79f7e69052de78f82e12c613f6
Author: Tom Gundersen <teg at jklm.no>
Date: Mon Sep 15 14:21:00 2014 +0200
udev: util - use log_level_from_string()
commit 37d522746b67fda0d52111364d81358ce560bcf7
Author: Tom Gundersen <teg at jklm.no>
Date: Mon Sep 15 14:20:32 2014 +0200
libudev: util - drop util_delete_path()
Use rmdir_parents() from src/shared instead.
commit 23bf8dd7d5ce1e2a52f28d5d242109ddb668b3fb
Author: Tom Gundersen <teg at jklm.no>
Date: Tue Sep 9 23:12:14 2014 +0200
libudev: drop util_lookup_{user,group}
Use shared versions instead. Difference is with overwriting of repeated user/group
name, and lack of logging.
commit 4d6dac13ad376cb537647741c45185395beb3e9c
Author: Tom Gundersen <teg at jklm.no>
Date: Mon Sep 15 12:04:29 2014 +0200
udev: apply permissions to static nodes before signallying READY
Processes expecting static nodes to have the right permissions may order themselves after systemd-udevd.service,
make sure that actually guarantees what is expected.
commit ebc164ef40cfa0fa01ce77a6a966129cc611d4ff
Author: Tom Gundersen <teg at jklm.no>
Date: Mon Sep 15 11:53:03 2014 +0200
udev: only print after final log level has been determined
This delays label_init(), and drops the (duplicate) printing of version
information.
commit 3f56f784b98a4b0ad45409a9a19fd787cd7ae455
Author: Tom Gundersen <teg at jklm.no>
Date: Fri Sep 12 16:45:19 2014 +0200
udevd: initialize epoll_event structs on allocation
Also move the rest of event initialization next to the event loop (no functional change).
commit 5c67cf2774a8b964f4d7cd92a4c447da81ac6087
Author: Tom Gundersen <teg at jklm.no>
Date: Fri Sep 12 16:22:44 2014 +0200
udev: don't close std{in,out,err}
Rather than printing debug output to stderr and redirecting this to /dev/null when not wanted,
use the correct log_*() function in the first place.
commit 959d654105c1303d0c475868a51834db2f7b6099
Author: Tom Gundersen <teg at jklm.no>
Date: Fri Sep 12 16:17:00 2014 +0200
udev: drop duplicate logging
Once upon a time logging during early boot was unreliable, so extra logging messages were
sent by udev to stderr. That is no longer a concern, so drop all fprintf() calls from udved.
commit bba7a48439e63defa20641b140522eac55fc1a1e
Author: Tom Gundersen <teg at jklm.no>
Date: Fri Sep 12 14:42:59 2014 +0200
udev: split out parse_argv()
Also rename some global variables to arg_* to make it clearer where they come from.
commit ed216e1ff0fdd7950b662b9ce7cbb5ca40b575a1
Author: Tom Gundersen <teg at jklm.no>
Date: Fri Sep 12 14:18:06 2014 +0200
udev: split out help and modernise a bit
commit f70ca25ae05a92265b59bfb975cc935968d759aa
Author: Thomas Hindoe Paaboel Andersen <phomes at gmail.com>
Date: Mon Sep 15 23:17:57 2014 +0200
man: sd_bus_error typo fix
commit 440046e9220aa418ac0ffbdf126512b3341dce23
Author: David Herrmann <dh.herrmann at gmail.com>
Date: Mon Sep 15 17:12:41 2014 +0200
terminal: fix missing hashmap_new() conversions
hashmap_new() now takes *_ops instead of individual functions. Fix up any
missing invokations of it that haven't been converted already.
commit 1acf16634912d8a35690fff9d7ad2bd0a91ce576
Author: Emil Renner Berthing <systemd at esmil.dk>
Date: Mon Sep 15 15:29:18 2014 +0200
remove unneeded error.h includes
These are the only two places where this glibc-specific
header is included. However none of the definitions in it
seem to be used, so just remove the includes.
commit 4dd6c5726d87a336888c0d871b9260c98f689016
Author: Michal Schmidt <mschmidt at redhat.com>
Date: Mon Aug 4 22:54:10 2014 +0200
sd-bus: use proper ITERATOR_FIRST abstraction
Do not assume hashmap iterators are pointers.
They may be structs in an alternative hashmap implementation.
commit 923041cb0ab7c1795e74fa1ce4b38a6114727a3c
Author: Michal Schmidt <mschmidt at redhat.com>
Date: Sun Aug 10 23:35:27 2014 +0200
hashmap: minor hashmap_replace optimization
When hashmap_replace detects no such key exists yet, it calls hashmap_put that
performs the same check again. Avoid that by splitting the core of hashmap_put
into a separate function.
commit 631b9deefbef76c5f69b165f33cb46690c938c95
Author: Michal Schmidt <mschmidt at redhat.com>
Date: Thu Jul 31 18:04:20 2014 +0200
hashmap, set: remove unused functions
The following hashmap_* and set_* functions/macros have never had any
users in systemd's history:
*_iterate_backwards
*_iterate_skip
*_last
*_FOREACH_BACKWARDS
Remove this dead code.
commit d5099efc47d4e6ac60816b5381a5f607ab03f06e
Author: Michal Schmidt <mschmidt at redhat.com>
Date: Wed Aug 13 01:00:18 2014 +0200
hashmap: introduce hash_ops to make struct Hashmap smaller
It is redundant to store 'hash' and 'compare' function pointers in
struct Hashmap separately. The functions always comprise a pair.
Store a single pointer to struct hash_ops instead.
systemd keeps hundreds of hashmaps, so this saves a little bit of
memory.
commit f44541bc934c6e2b02155559e9eeb17a13a09558
Author: Michal Schmidt <mschmidt at redhat.com>
Date: Fri Aug 15 16:33:03 2014 +0200
build: colorize gcc only if on tty
Rather than forcing gcc to always produce colorized error messages
whether on tty or not, enable automatic colorization by ensuring
GCC_COLORS is set to a non-empty string.
Doing it this way removes the need for workarounds in ~/.emacs or
~/.vimrc for "M-x compile" or ":make", respectively, to work.
commit 20755373b1494f1b718b1ac3a611c6f807905fe6
Author: Thomas Hindoe Paaboel Andersen <phomes at gmail.com>
Date: Sun Sep 14 22:25:58 2014 +0200
test: fix test of uid-range
The number of uid's in the range should be tested instead of written
directly.
The test still passes with the fix checks.
Found with Coverity. Fixes: CID#1237714 - 1237722
commit 86be3e1e6558f4e7e20c537e644656eb6f37b7d0
Author: Thomas Hindoe Paaboel Andersen <phomes at gmail.com>
Date: Sun Sep 14 22:06:37 2014 +0200
sd-dhcp: fix test of magic cookie
The magic cookie is set in dhcp_message_init. Test the magic cookie
value intead of writing the last 3/4 of it directly.
Found with Coverity. Fixes: CID#1237732 CID#1237734 CID#1237735
commit d1c457badfce0dc86b54b2cac2c5eec99d7bc65e
Author: Tom Gundersen <teg at jklm.no>
Date: Sat Sep 13 20:41:35 2014 +0200
resolved: fall back to hardcoded ifindex when checking if a link is the loopback
Reported by Philippe De Swert <philippedeswert at gmail.com>.
Coverity CID#1237656
commit 124f09e8125e1eae5b058b1f287e72c85a46d557
Author: Dave Reisner <dreisner at archlinux.org>
Date: Sat Sep 13 14:10:33 2014 -0400
networkd: remove vestigial event sources
187fe1db took advantage of floating events, but didn't remove pointers
it made superfluous.
commit eed9386748cb6bd7b1aecc62ea723db2e0c541ca
Author: Dave Reisner <dreisner at archlinux.org>
Date: Sat Sep 13 11:18:26 2014 -0400
core: use correct function to free CalendarSpec
commit 4d5e13a125cf8d77d432225ab69826caa1d1cf59
Author: Thomas Hindoe Paaboel Andersen <phomes at gmail.com>
Date: Sat Sep 13 12:35:06 2014 +0200
core: fix a potential mem leak
Found with Coverity. Fixes: CID#996438
commit 0ee9613d98cbe1f36ffc98c6bfa51dd2b798fc6d
Author: Thomas Hindoe Paaboel Andersen <phomes at gmail.com>
Date: Sat Sep 13 12:29:43 2014 +0200
analyze: fix mem leak
Found with Coverity. Fixes: CID#1237756
commit b9289d4c6e13ec5fb67bfce69c826d93b004da6a
Author: Philippe De Swert <philippedeswert at gmail.com>
Date: Fri Sep 12 16:49:48 2014 +0300
core: smack-setup: Actually allow for succesfully loading CIPSO policy
The line under the last switch statement *loaded_policy = true;
would never be executed. As all switch cases return 0. Thus the
policy would never be marked as loaded.
Found with Coverity. Fixes: CID#1237785
commit d725a138c5c311ba06567d6841933aa5b7b6a435
Author: Thomas Hindoe Paaboel Andersen <phomes at gmail.com>
Date: Thu Sep 11 23:41:44 2014 +0200
analyze: avoid a null dereference
If we have an error in the early sd_bus_* calls then unit_times
will still be null.
Found with coverity. Fixes: CID#996464
commit 671174136525ddf208cdbe75d6d6bd159afa961f
Author: Tom Gundersen <teg at jklm.no>
Date: Thu Sep 11 18:49:04 2014 +0200
udev: timeout - warn after a third of the timeout before killing
commit e926f6475d2f7063f8190076a0dc9ff7ecb227c8
Author: Thomas Hindoe Paaboel Andersen <phomes at gmail.com>
Date: Thu Sep 11 21:29:59 2014 +0200
firstboot: silence a warning
No change in behavoir as the fallthrough from ARG_COPY had already
set arg_copy_locale to true.
Found with coverity. Fixes: CID#1237622
commit 807d0cca2b0daf4cd725298c1b5e062b1126f15b
Author: Thomas Hindoe Paaboel Andersen <phomes at gmail.com>
Date: Thu Sep 11 21:14:53 2014 +0200
manager: use correct cleanup function
Close the dir instead of attempt to free it.
Introduced in 874310b7b68c4c0d36ff07397db30a959bb7dae5
Found with coverity. Fixes: CID#996368
commit aa44499da15a8fa7026463555a7a27e55e4e24a8
Author: Philippe De Swert <philippedeswert at gmail.com>
Date: Wed Sep 10 22:14:41 2014 +0300
activate: fix fd leak in do_accept()
Found with Coverity.
commit 3f2e132a197ba3f5172cbbcd285e9aab021de8fc
Author: David Herrmann <dh.herrmann at gmail.com>
Date: Thu Sep 11 17:37:30 2014 +0200
test: fix mem-leak in fdopen() test
We must free FILE* after function return to not leak resources. Note that
this also closes our fd as fdopen() takes ownership of it.
Reported by Philippe De Swert (via coverity).
commit 2b347169b9046ff2d735ef23e62a8c74f5151600
Author: Philippe De Swert <philippedeswert at gmail.com>
Date: Wed Sep 10 12:20:42 2014 +0300
bus: unref buscreds on failure
Actually unref the buscreds when we are not going to return a
pointer to them. As when bus_creds_add_more fails we immediately
return the error code otherwise and leak the new buscreds.
Found with coverity. Fixes: CID#1237761
commit b67ddc7bbe31cde7f69f9814204d9bb1d4623c47
Author: Philippe De Swert <philippedeswert at gmail.com>
Date: Wed Sep 10 12:20:41 2014 +0300
journal: do not leak mmaps on OOM
After a section of memory is succesfully allocated, some of the following
actions can still fail due to lack of memory. In this case -ENOMEM is
returned without actually freeing the already mapped memory.
Found with coverity. Fixes: CID#1237762
commit 21978bc3c90ec192130a9ea9df62a75d1262b80c
Author: David Herrmann <dh.herrmann at gmail.com>
Date: Thu Sep 11 17:20:11 2014 +0200
terminal: fix uninitialized variable in strerror() log message
We currently print weird error-messages if xkbcommon fails (which cannot
fail so far, but might in the future). Fix the uninitialized variable
warnings by setting 'r' correctly.
Thanks to Philippe De Swert for catching this (via coverity).
commit 48d4c7468fb5003ae45ac834de1ca85624cdd56e
Author: Philippe De Swert <philippedeswert at gmail.com>
Date: Wed Sep 10 12:20:39 2014 +0300
journal: do not dereference already freed patterns
In case set_consume goes wrong, the pattern name has already been
freed. So we do not try to print it in the logs, assuming the pattern
addition print will be printed just before the failure anyway. Found
with coverity. Fixes: CID#1237798
commit fd989a0bc999d79719408ac28b126d9c9016bcb5
Author: Philippe De Swert <philippedeswert at gmail.com>
Date: Wed Sep 10 12:20:38 2014 +0300
bus: avoid using m->kdbus after freeing it
m->kdbus could be freed before it is released. Changing the
order fixes the issue.
Found with Coverity. Fixes: CID#1237798
commit 393a5ba09f7c5360d2e5066c23d43bb82d856173
Author: David Herrmann <dh.herrmann at gmail.com>
Date: Thu Sep 11 15:30:56 2014 +0200
terminal: drop redundant assertion
This assertion is already there two lines down. Drop the redundant
assertion.
commit 667b60341f404d8f18aa0909e34d39e7d6baa56b
Author: David Herrmann <dh.herrmann at gmail.com>
Date: Thu Sep 11 15:29:58 2014 +0200
terminal: fix wrong return value in idev if fcntl() fails
This might cause >=0 to be returned, even though the method failed. Fix
this and return -errno.
commit c600022303a10155f48a8eab59c6c0ae1b797699
Author: David Herrmann <dh.herrmann at gmail.com>
Date: Thu Sep 11 15:28:37 2014 +0200
terminal: enable sessions in evcat after taking control
If we enable a session, any probed device might get immediately enabled.
This might cause TakeDevice() messages to be sent before we call
TakeControl(). Therefore, enable sessions *after* sending TakeControl() so
we always succeed if TakeControl() succeeds.
commit 1f3752c81ad5d746f90db751425c39c3ed0970ab
Author: David Herrmann <dh.herrmann at gmail.com>
Date: Thu Sep 11 15:27:56 2014 +0200
terminal: remove unused set.h inclusion in idev
We don't use set.h so no need to include it. We used to include it for
temporary refs on all idev devices of a session, but that never was pushed
upstream.
commit 8e3ba3772cadf6a8292b0da533062dd4d377af67
Author: David Herrmann <dh.herrmann at gmail.com>
Date: Thu Sep 11 13:25:21 2014 +0200
udev: allow removing tags via TAG-="foobar"
This extends the udev parser to support OP_REMOVE (-=) and adds support
for TAG-= to remove previously set tags. We don't fail if the tag didn't
exist.
This is pretty handy if we ship default rules for seat-assignments and
users want to exclude specific devices from that. They can easily add
rules that drop any automatically added "seat" tags again.
commit 2e1dd622ee7020a608c3397768ea245dcb6409d1
Author: David Herrmann <dh.herrmann at gmail.com>
Date: Tue Sep 2 14:19:38 2014 +0200
terminal: remove redundant "struct" prefixes
We define typedefs for all internal types so drop the redundant "struct"
prefix.
commit 98b7fe2ad4055a7978edc28caaadd5a0a9bd97a9
Author: David Herrmann <dh.herrmann at gmail.com>
Date: Tue Sep 2 14:17:59 2014 +0200
terminal: discard async read() errors for evdev
If read() fails on evdev devices, we deal with this in idev_evdev_hup().
It is very likely this is an async revoke, therefore, we must not abort.
Fix our io helper to discard such errors after passing them to
idev_evdev_hup(), so we don't bail out of the event loop.
commit b76388e123e8d73ded1fd53937d816b314948517
Author: Michael Biebl <biebl at debian.org>
Date: Thu Sep 11 00:49:36 2014 +0200
backlight: Avoid error when state restore is disabled
When the state restore is disabled, we would print:
"Unknown verb: load" instead of simply skipping loading the
state.
commit b5338a19864ac3f5632aee48069a669479621dca
Author: Tom Gundersen <teg at jklm.no>
Date: Wed Sep 10 10:56:26 2014 +0200
udev: timeout - increase timeout
Some kernel modules still take more than one minute to insmod, we no longer rely on the timeout
killing insmod within a given period of time, so just bump this to a much higher value. Its only
purpose is to make sure that nothing stays aronud forever.
commit ec3281d3b681b002dfe1a4bea0532a504e37557a
Author: Tom Gundersen <teg at jklm.no>
Date: Wed Sep 10 07:59:22 2014 +0200
udev: fix copy-paste error in log message
commit e9385929c8eb591b64e657a5d53d187af418a3f7
Author: Patrik Flykt <patrik.flykt at linux.intel.com>
Date: Mon Sep 1 13:21:35 2014 +0300
TODO: Remove Elapsed Time DHCPv6 option as it is done
commit d63be95a306bf1e262c7e1c7ad4b2c12b49d371e
Author: Patrik Flykt <patrik.flykt at linux.intel.com>
Date: Mon Sep 1 13:21:34 2014 +0300
test-dhcp6-client: Add checks for Elapsed Time option
Verify that the Elapsed Time option is present.
commit 346e13a25dc6f76d3bc9d8decd40dc4782b02d2a
Author: Patrik Flykt <patrik.flykt at linux.intel.com>
Date: Mon Sep 1 13:21:33 2014 +0300
sd-dhcp6-client: Implement Elapsed Time option
Implement Elapsed Time option as it is defined as MUST in RFC 3315,
section 22.9. The elapsed time value is a 1/100th of a second with
a max value of 0xffff, i.e. 655.35 seconds.
As the main loop might not be running yet when sd_dhcp6_client_start() is
called, fetch the monotonic time directly and not from the event loop
while in state DHCP6_STATE_STOPPED.
commit 9d19a679f23c7a72c326cbbbf44e0c9f423dec5d
Author: Tom Gundersen <teg at jklm.no>
Date: Tue Sep 9 22:48:07 2014 +0200
udev - drop print_kmsg
The only remaining user was 'starting version XXX', which is now logged using log_info().
commit 1187f20655de0c37337ea73e1e55823b83cd7c00
Author: Tom Gundersen <teg at jklm.no>
Date: Tue Sep 9 22:45:03 2014 +0200
udev: netif_rename - don't log to kmsg
As of 3.17, the kernel will do this on its own, so just do regular log_debug() logging from udev.
commit aedca89268ed4fd6be41e55a605f011033ad1fb5
Author: Tom Gundersen <teg at jklm.no>
Date: Tue Sep 9 15:36:56 2014 +0200
udev: net_setup_link - open ethtool and rtnl connections lazily
commit 4c83d994566718043e61e568cc214bdc4587f869
Author: Tom Gundersen <teg at jklm.no>
Date: Tue Sep 9 11:15:37 2014 +0200
udev: event - keep one rtnl per worker, rather than per event
Creating the rtnl context is cheap, but freeing it may not be, due to
synchronous close().
Also drop some excessive logging. We now log about the changing ifname
exactly once.
commit b081b27e1433cdc7ac72b25ae8b4db887d79187f
Author: Tom Gundersen <teg at jklm.no>
Date: Tue Sep 9 12:23:19 2014 +0200
udev: import the full db on MOVE events for devices without dev_t
commit 72ba9f04f95bc6eda1e32fdd21ea56476713a5bc
Author: Ivan Shapovalov <intelfx100 at gmail.com>
Date: Tue Sep 9 01:40:51 2014 +0400
build-sys: make hibernation support configure option also handle hybrid-sleep; fix indentation
commit fea0bfaed5411de43811dc428e763029d3aaabe5
Author: Marcel Holtmann <marcel at holtmann.org>
Date: Tue Sep 9 07:44:02 2014 +0200
hwdb: update
commit 822a59607c4974915db0644b627070f001986825
Author: Thomas Hindoe Paaboel Andersen <phomes at gmail.com>
Date: Mon Sep 8 22:10:36 2014 +0200
execute: silence warnings
Mark two function parameters as const
commit 120d578e5fa11ee3c210121905fb63bc24e3f043
Author: Thomas Hindoe Paaboel Andersen <phomes at gmail.com>
Date: Mon Sep 8 22:05:17 2014 +0200
namespace: avoid posible use of uninitialized variable
commit 52e231b04635400292179cf51b30d7d9b6323fb2
Author: Mantas Mikulėnas <grawity at gmail.com>
Date: Mon Sep 8 22:53:39 2014 +0300
rules: net-setup-link - remove stray linebreak
If not backslash-escaped, it splits the rule in two.
commit e4d7c49050769877c7f10184bbe2a1e77d0b5333
Author: Tom Gundersen <teg at jklm.no>
Date: Mon Sep 8 17:16:24 2014 +0200
rules: net-setup-link - preserve ID_NET_LINK_FILE and ID_NET_NAME after MOVE
commit 4cb40606785c30710bcf39bba33167bee66ad0bd
Author: Dave Reisner <dreisner at archlinux.org>
Date: Mon Sep 8 09:27:41 2014 -0400
machined: remove redundant sd_notify
We already call this on via bus_event_loop_with_idle on exit. This
makes machined consistent with other similar daemons: localed,
hostnamed, timedated.
commit 84b5b79a8f7b423c5b7cad4170eb68d57fe5e26c
Author: Angus Gibson <angus at agibson.me>
Date: Mon Sep 8 20:26:47 2014 +1000
networkd: allow specification of DHCP route metric
This lets the routing metric for links to be specified per-network,
still defaulting to DHCP_ROUTE_METRIC (1024) if unspecified. Hopefully
this helps with multiple interfaces configured via DHCP.
commit af5effc4220dab6c4c87a130bae7be441f6967ca
Author: Tom Gundersen <teg at jklm.no>
Date: Mon Sep 8 14:18:32 2014 +0200
networkctl: show the link file applied to each link
commit d95b83b87d7d7c50e550f7128827f73a321c8934
Author: Tom Gundersen <teg at jklm.no>
Date: Mon Sep 8 14:17:46 2014 +0200
udev: link-config - only set *name on success
commit ad6e5b348fa88f44d6cbfe7aabda7612a1d0463f
Author: Tom Gundersen <teg at jklm.no>
Date: Mon Sep 8 14:00:58 2014 +0200
udev: net_setup_link - export the .link filename applied to the link
commit 373d9f173f910d547159917401c4b1f84af85736
Author: Tom Gundersen <teg at jklm.no>
Date: Mon Sep 8 14:00:34 2014 +0200
networkctl: show the network file applied to each link
commit adc5b2e2ebcb91ee18b6a32681b8ec1e52793473
Author: Tom Gundersen <teg at jklm.no>
Date: Mon Sep 8 13:50:52 2014 +0200
sd-network: add _get_network_file api
commit b70c73fcf1885b717b464353edecaf650a1e520a
Author: Tom Gundersen <teg at jklm.no>
Date: Mon Sep 8 13:12:06 2014 +0200
TODO
commit 46b0c76e2c355c0d0cc4792abb98cde07b28bc53
Author: Emil Renner Berthing <systemd at esmil.dk>
Date: Fri Sep 5 11:56:02 2014 +0200
networkd: add preferred source to dhcp4 gateway route
This makes DHCPv4 and IPv4LL coexist peacefully.
[tomegun: apply to both the dhcp routes, use in_addr_is_null() rather than a
separate variable to indicate when prefsrc should be applied]
commit 4bd5ace3e78ec0ca4c174bc875e3d9f6e1ae7405
Author: Tom Gundersen <teg at jklm.no>
Date: Sat Sep 6 22:37:31 2014 +0200
units: networkd - order after udev
This way we are sure that /dev/net/tun has been given the right permissions before we try to connect to it.
Ideally, we should create tun/tap devices over netlink, and then this whole issue would go away.
commit 1eb808756e3e4cc724ba17725a8513e562551c21
Author: Tom Gundersen <teg at jklm.no>
Date: Sat Sep 6 22:16:20 2014 +0200
networkd: netdev - failing to create a netdev is not fatal, just fail that netdev
commit 6f44acfb48d4b58565d4c14714d082997389afd3
Author: Tom Gundersen <teg at jklm.no>
Date: Sat Sep 6 22:06:58 2014 +0200
networkd: tuntap - return correct error when /dev/net/tun cannot be opened
commit e44da745d19b9e02e67e32ea82c3bad86175120c
Author: Daniel Mack <zonque at gmail.com>
Date: Fri Aug 22 19:02:03 2014 +0200
service: hook up custom endpoint logic
If BusPolicy= was passed, the parser function will have created
an ExecContext->bus_endpoint object, along with policy information.
In that case, create a kdbus endpoint, and pass its path name to the
namespace logic, to it will be mounted over the actual 'bus' node.
At endpoint creation time, no policy is updloaded. That is done after
fork(), through a separate call. This is necessary because we don't
know the real uid of the process earlier than that.
commit 060e088e94852cbe166592429c330e3997c21c4c
Author: Daniel Mack <daniel at zonque.org>
Date: Fri Sep 5 17:24:27 2014 +0200
exit-status: add new exit code for custom endpoint errors
commit a610cc4f18c24a007e5a2cac21b2ecbd81e5f3c3
Author: Daniel Mack <zonque at gmail.com>
Date: Fri Aug 22 18:55:21 2014 +0200
namespace: add support for custom kdbus endpoint
If a path to a previously created custom kdbus endpoint is passed in,
bind-mount a new devtmpfs that contains a 'bus' node, which in turn in
bind-mounted with the custom endpoint. This tmpfs then mounted over the
kdbus subtree that refers to the current bus.
This way, we can fake the bus node in order to lock down services with
a kdbus custom endpoint policy.
commit 501996231293506a85bf4d610938a655ddc8cb92
Author: Daniel Mack <zonque at gmail.com>
Date: Mon Aug 18 22:42:28 2014 +0200
bus: parse BusPolicy directive in service files
Add a new directive called BusPolicy to define custom endpoint policies. If
one such directive is given, an endpoint object in the service's ExecContext is
created and the given policy is added to it.
commit e7d718afdb28b1049d382604e5e7bf1d213a8291
Author: Daniel Mack <zonque at gmail.com>
Date: Mon Aug 18 19:58:42 2014 +0200
bus: add code to create custom endpoints and set their policy
Custom endpoints are alternative connection points to a bus, allowing
specific policy to be uploaded.
Add two functions to bus-kernel. One to create such endpoints, and another
one for setting a policy for them.
commit bb7dd0b04a6e89674100476eed0bbd05c6a4cbd8
Author: Daniel Mack <zonque at gmail.com>
Date: Mon Aug 18 19:55:32 2014 +0200
bus: add kdbus endpoint types
Add types to describe endpoints and associated policy entries,
and add a BusEndpoint instace to ExecContext.
commit 5369c77d2ee864ac0464d4adc0774ee70ba9c4bc
Author: Daniel Mack <zonque at gmail.com>
Date: Mon Aug 18 22:07:47 2014 +0200
bus: factor out bus policy items
In order to re-use the policy definitions, factor them out into their own
files.
commit de68938a2cb3ab535ebd9198723a651753c1a1df
Author: Marcel Holtmann <marcel at holtmann.org>
Date: Mon Sep 8 05:06:18 2014 +0200
hwdb: Update database of Bluetooth company identifiers
commit 67826132adfdf626413f08fb664debd4a7ec35b7
Author: Michael Biebl <biebl at debian.org>
Date: Sat Sep 6 13:43:25 2014 +0200
man: fix references to systemctl man page which is now in section 1
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=760613
commit 3bcde97e8502c48b53f7420e2433ca68e601662d
Author: Lennart Poettering <lennart at poettering.net>
Date: Fri Sep 5 21:49:23 2014 +0200
update TODO
commit 5b89f67f03dce933c0b30408ce81e2ac539ed544
Author: Daniel Mack <daniel at zonque.org>
Date: Fri Sep 5 13:48:05 2014 +0200
exit-status: fix URL in comment
The LSB sites have moved, so update the URL.
commit d35fbf6bdf4377f3a15b084ff812b3ee272e5347
Author: Daniel Mack <zonque at gmail.com>
Date: Sat Aug 23 16:02:21 2014 +0200
exec: move code executed after fork into exec_child()
This factors out one conditional branch that has grown way too big, and
makes the code more readable by using return statements rather than jump
labels.
commit 9fa95f8539a380e93f760956bc6982e57f5bf3af
Author: Daniel Mack <zonque at gmail.com>
Date: Sat Aug 23 15:28:37 2014 +0200
exec: factor out most function arguments of exec_spawn() to ExecParameters
This way, the list of arguments to that function gets more comprehensive,
and we can get around passing lots of NULL and 0 arguments from socket.c,
swap.c and mount.c.
It also allows for splitting up the code in exec_spawn().
While at it, make ExecContext const in execute.c.
commit a4390b6be8869172ccdd16fef208803fc6c7a114
Author: Lennart Poettering <lennart at poettering.net>
Date: Thu Sep 4 21:41:54 2014 +0200
man: make it more clear that the concepts systemctl(1) manage are introduced in systemd(1)
Based on a suggestion of Ken Coar.
commit 782c2652920821fe6b7d5710911630b55f5efcec
Author: Lennart Poettering <lennart at poettering.net>
Date: Thu Sep 4 21:40:00 2014 +0200
hibernate-resume: let's move all hibernate-resume tools into the same directory
They are closely related, so let's move them together, and clean up the
.c file naming while we are at it.
commit 78c958f82e929f015169ce1ed614d1e9c50928aa
Author: Tom Gundersen <teg at jklm.no>
Date: Thu Sep 4 20:54:08 2014 +0200
networkd: link - allow loopback links to be manage, but ignore DHCP/IPv4LL
commit 36e46fe9b625b7a63a6b38f43dc55298c8a0ac89
Author: Michael Biebl <biebl at debian.org>
Date: Wed Sep 3 23:34:29 2014 +0200
build: don't install busname units and target if kdbus support is disabled
commit a821cbb00c3f6e33d99e9e38ec1538a16dd90ce3
Author: Tom Gundersen <teg at jklm.no>
Date: Thu Sep 4 14:16:56 2014 +0200
networkd: link - clarify log message when receiving address for unknown link
commit bd2efe9219a3791b47c2c5c2ef0fe2579ffd547d
Author: Tom Gundersen <teg at jklm.no>
Date: Thu Sep 4 13:40:24 2014 +0200
networkd: link - do not manage loopback links
Fixes https://bugs.freedesktop.org/show_bug.cgi?id=83134.
commit 51d18171529dcdad1366e422e42d538434af0ff6
Author: Tom Gundersen <teg at jklm.no>
Date: Thu Sep 4 14:10:43 2014 +0200
networkd: link - save link flags when the link is added
Don't wait for the link to be fully synchronised.
commit a61bb41c29c370a7e64285525ec35baac8944149
Author: Tom Gundersen <teg at jklm.no>
Date: Thu Sep 4 14:05:54 2014 +0200
networkd: move carrier gained/lost handling from link_update_flags() to link_update()
This allows us also to simplify link_has_carrier() a bit.
commit 83a1ff25e5228b0a5b2cc942fd4f964d10bb73b0
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Wed Sep 3 22:12:51 2014 -0400
Update TODO
commit 7a465961c19036eba2c08223e769ad9e85a766a8
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Wed Sep 3 22:07:29 2014 -0400
man: fix typo
commit eb6c7d20756b60a7c79a373fd27a682a31b5647a
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Wed Sep 3 22:22:38 2014 -0400
systemd: fix argument ordering in UnsetAndSetEnvironment
Fixup for v208-615-g718db96199.
commit 78bd12a05a9252cf573da28394b23e2b891cbba8
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Wed Sep 3 22:55:54 2014 -0400
localed: check for partially matching converted keymaps
If a user specifies multiple X11 keymaps, with a (at least the first
one) nonempty variant, and we don't match the whole combo, use
a converted keymap which includes the variant in preference to
the default, variantless, keymap.
E.g.: We would convert X11 config "layout=fr variant=mac" to "fr-mac",
but "layout=fr,us variant=mac," to "fr", because we don't have a
converted keymap which would match "fr,us", and we don't have a legacy
mapping for "fr,us". This is unexpected, and if we cannot match both,
it is still better to match the primary mapping and use "fr-mac".
commit 81fd105a5f9762fa2f2e42bc949876e32b3a126f
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Wed Sep 3 22:55:52 2014 -0400
localed: introduce helper function to simplify matching
commit 502f961425f9dea1a85239766a3189695194da63
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Wed Sep 3 22:55:16 2014 -0400
localed: log locale/keymap changes in detail
Converting X11 to legacy keymaps and back is a fucking mess. Let's
make it at least possible to request detailed logs of what is being
changed and why (LOG_DEBUG level).
At LOG_INFO level, we would log the requested change of X11 or console
keymap, but not the resulting change after conversion to console or X11.
Make sure that every change of configuration on disk has a matching
line in the logs.
commit af76d302c1e26f916494202f1b3663f15710bdcd
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Wed Sep 3 22:53:23 2014 -0400
localed: remove free_and_copy
It was mostly a duplicate of free_and_strdup().
commit 28efac0d37ceb5093a804da6a00c620034c5484f
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Wed Sep 3 10:28:24 2014 -0400
localed: double free in error path and modernization
Very unlikely to trigger, but in principle strv_free
could be called twice: once explictly, and once from cleanup.
commit 4df5c00b6e5de8733f3bb33ee7980fad1a498789
Author: Umut Tezduyar Lindskog <umut.tezduyar at axis.com>
Date: Tue Sep 2 12:31:49 2014 +0200
build-sys: configure option to disable hibernation
commit 2915a7bdc5c6db2298041cd39fa992cf252cd8a0
Author: Lennart Poettering <lennart at poettering.net>
Date: Wed Sep 3 19:31:22 2014 +0200
man: two fixes, reported on irc by 'wget'
commit 533bb267f13e2f7b4d7b78de30e821dc81c82335
Author: Lennart Poettering <lennart at poettering.net>
Date: Wed Sep 3 18:59:17 2014 +0200
update TODO
commit 6dc2852c643df4aa2580d42fc2d268bea0c5f57b
Author: Lennart Poettering <lennart at poettering.net>
Date: Wed Sep 3 19:00:21 2014 +0200
base-file-system: always generate error messages locally
Functions either should generate error messages for everything they do
themselves, or for nothing and let the caller do it. But they certainly
shouldn't generate errors for some messages but not for others. Since
the function in this case is one that generates messages on its own, it
really should do that for everything, not just for some things, hence.
commit 64e84dbb14463afe63418357e64a17ad5b04040b
Author: Lukas Nykryn <lnykryn at redhat.com>
Date: Wed Sep 3 13:59:59 2014 +0200
update TODO
Yum was creating <container>/var/run/yum.pid and hence this directory
was created before filesystem package could create the symlink
/var/run -> /run.
This should be now fixed in yum.
commit f3b8fbb1da6519e14985ea444f8304673d20ad3f
Author: Harald Hoyer <harald at redhat.com>
Date: Wed Sep 3 13:28:31 2014 +0200
initrd-parse-etc.service: ignore return code of daemon-reload
It seems the return code of systemctl daemon-reload can be !=0 in some
circumstances, which causes a failure of the unit and breaks booting in
the initrd.
commit 6f4f8056d3f972c1e6ee7f5fc40ed283fd93152a
Author: Harald Hoyer <harald at redhat.com>
Date: Wed Sep 3 13:22:40 2014 +0200
base_filesystem_create: do not try to create "/root" if it exists
The check, if the directory/file already exists is only executed, if
there is a symlink target specified. In case of "/root", there is none,
so it is unconditionally tried to create the directory.
In case of a readonly filesystem, errno != EEXIST, but errno == EROFS,
so base_filesystem_create() and switch_root does not succeed.
This patch checks for existance not only in the symlink case.
commit a7a0912a36307567043e1939f6065ff54fa8fd66
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Tue Sep 2 19:37:04 2014 -0400
man: fix file extension in udev rules example
https://bugzilla.redhat.com/show_bug.cgi?id=634736
commit ab4df227d466e881e4279821b5fc1563f0e7e933
Author: Kay Sievers <kay at vrfy.org>
Date: Tue Sep 2 15:28:56 2014 +0200
Revert "timesyncd: remove retry_timer logic which is covered by the server timeout"
This reverts commit 665c6a9eab46b0b253af6566ca9fc70c866b3fcd.
On Tue, Sep 2, 2014 at 3:17 PM, Miroslav Lichvar <mlichvar at redhat.com> wrote:
>
> With the other patch allowing missed replies included it's now getting
> stuck as there is no timer to send the 2nd and 3rd request.
commit 80cd2606b91ce2735a0609c6f964917cf12685aa
Author: Kay Sievers <kay at vrfy.org>
Date: Tue Sep 2 14:33:59 2014 +0200
timesyncd: don't reset polling interval when reselecting server
Original patch from: Miroslav Lichvar <mlichvar at redhat.com>
commit e8206972be6a7ebeb198cd0d400bc7a94a6a5fc5
Author: Miroslav Lichvar <mlichvar at redhat.com>
Date: Tue Sep 2 14:29:51 2014 +0200
timesyncd: allow two missed replies before reselecting server
After receiving a reply from the server, allow two missed replies before
switching to another server to avoid unnecessary clock hopping when
packets are getting lost in the network.
commit 665c6a9eab46b0b253af6566ca9fc70c866b3fcd
Author: Kay Sievers <kay at vrfy.org>
Date: Tue Sep 2 14:27:00 2014 +0200
timesyncd: remove retry_timer logic which is covered by the server timeout
commit 63463bf091949e0178b749016828ec400c106582
Author: Miroslav Lichvar <mlichvar at redhat.com>
Date: Wed Aug 27 16:47:24 2014 +0200
timesyncd: wait before reconnecting to first server
When all servers are exhausted, wait for one poll interval before trying
to connect again to the first server in the list. Also, keep increasing
the polling interval to make sure a client not getting any valid replies
will not send requests to any server more frequently than is allowed by
the maximum polling interval.
commit cedc611207b6a14cdbaf1d73e12b62ee55cc53de
Author: Tom Gundersen <teg at jklm.no>
Date: Mon Sep 1 22:59:52 2014 +0200
sd-rtnl: don't assign to unused variable
Reported by Thomas H.P. Andersen <phomes at gmail.com>.
commit 70e7d754ddb356fb1a2942b262f8cee9650e2a19
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Mon Sep 1 12:55:23 2014 -0400
rules: remove firmware loading rules
blueness> poettering, was there a reason for not removing
50-firmware.rules when you nuked userland firmware
loading?
Followup for v216-119-gbe2ea723b1.
commit b12e56156e5f363ebb8dc4ea5c10f5fd0665dc9d
Author: David Herrmann <dh.herrmann at gmail.com>
Date: Mon Sep 1 14:04:44 2014 +0200
login: simplify controller handling
Simplify the way we handler session-controllers and fix several
shortcomings:
* send ReleaseDevice() signals on forced session takeover
* fix mem-leaks for busnames in case VT preparation fails (non-critical)
* avoid passing pre-allocated names to helpers
commit 13f493dc9ace9861c1f27c4d37e8cd6d52fe6a32
Author: Thomas Hindoe Paaboel Andersen <phomes at gmail.com>
Date: Sun Aug 31 23:34:01 2014 +0200
login: fix mem leak
commit 9e60277835e61597011358afcdbfb3dd712ce128
Author: Thomas Hindoe Paaboel Andersen <phomes at gmail.com>
Date: Sun Aug 31 23:13:12 2014 +0200
config-parser: fix mem leak
commit e4c38cc36e287d46a56a98066cc368ee6fdd1968
Author: Thomas Hindoe Paaboel Andersen <phomes at gmail.com>
Date: Sun Aug 31 22:54:40 2014 +0200
journal-remote: fix check if realloc failed
commit 5bb14c8651b017983bb9cbd1444969c7a1bda14e
Author: Tom Gundersen <teg at jklm.no>
Date: Sun Aug 31 19:22:33 2014 +0200
test-network: fix off-by-one error in test
commit 04d180c8a8641c209eb19d1210b5d4e36f0ae05b
Author: Tom Gundersen <teg at jklm.no>
Date: Sun Aug 31 18:50:23 2014 +0200
missing: add IFF_MULTI_QUEUE
This was added in 3.8, but we should building with 3.7 headers.
Reported by Samuli Suominen <ssuominen at gentoo.org>.
commit 48382487666af141bb4385ceb5fb73c4147f6141
Author: Jan Janssen <medhefgo at web.de>
Date: Sun Aug 31 11:12:22 2014 +0200
journalctl: Allow to disable line cap with --lines=all
commit 8e07fc41f86d41e68c5663b2a3c620a0adedcc11
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Sun Aug 31 00:42:27 2014 -0400
Quote unit names in suggested systemctl commandlines
The fact that unit names have to be quoted can be a bit surprising.
Show quotes in the hint commandline, but only after checking that this
is necessary, since quotes are visually heavy and usually not needed.
https://bugs.freedesktop.org/show_bug.cgi?id=82832
commit 42377d6bb771c31bff931f83163972fdcb224d0c
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Sat Aug 30 22:34:56 2014 -0400
units: update rescue.service and emergency.service
^D works in emergency.service too. One needs to log in when in rescue
mode too.
commit 9c0804278b42261b4dce20ea0ea79bcbad291639
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Sat Aug 30 23:59:37 2014 -0400
units: m4 is not needed for rescue.service
commit 87502e5868a8dbe2fda9a8e66a37ed6996646ef8
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Sat Aug 30 22:33:40 2014 -0400
units: make emergency.service conflict with rescue.service
They both use StandardInput=tty-force so they cannot be run
concurrently.
https://bugs.freedesktop.org/show_bug.cgi?id=82778
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=757072
commit 20f8d3cf1be4ad76234ffb85eeae7f9892ee72cd
Author: Steven Noonan <steven at uplinklabs.net>
Date: Sat Aug 30 05:58:06 2014 -0700
timesyncd-manager: don't clear current_server_name if ServerAddress is NULL
https://bugs.freedesktop.org/show_bug.cgi?id=83091
[zj: add comment]
commit 44481a8b537839cd9ffead4d261491641f5b5260
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Sat Aug 30 18:31:21 2014 -0400
sd-dhcp6-client: properly calculate buffer size when parsing options
Also make pointer calculations more explicit so they are
easier to understand.
commit d182960ae974a0074010a058d0d909846a2f3f79
Author: Patrik Flykt <patrik.flykt at linux.intel.com>
Date: Fri Aug 29 09:20:46 2014 +0300
test-dhcp6-client: Fix option length
The whole DHCPv6 test message length was incorrectly used as the length
of DHCPv6 options causing the following bad memory access:
$ build/test-dhcp6-client
Assertion 'interface_index >= -1' failed at ../src/libsystemd-network/sd-dhcp6-client.c:129, function sd_dhcp6_client_set_index(). Ignoring.
=================================================================
==29135==ERROR: AddressSanitizer: global-buffer-overflow on address 0x7fe204aa9148 at pc 0x7fe204a5958f bp 0x7fff3e47d470 sp 0x7fff3e47d460
READ of size 1 at 0x7fe204aa9148 thread T0
#0 0x7fe204a5958e in option_parse_hdr ../src/libsystemd-network/dhcp6-option.c:145
#1 0x7fe204a59884 in dhcp6_option_parse ../src/libsystemd-network/dhcp6-option.c:165
#2 0x7fe204a4eb9c in test_advertise_option ../src/libsystemd-network/test-dhcp6-client.c:227
#3 0x7fe204a51c58 in main ../src/libsystemd-network/test-dhcp6-client.c:584
#4 0x7fe2031590df in __libc_start_main (/lib64/libc.so.6+0x200df)
#5 0x7fe204a4cc5b (/home/test/systemd/build/test-dhcp6-client+0x25c5b)
0x7fe204aa9148 is located 2 bytes to the right of global variable 'msg_advertise' from '../src/libsystemd-network/test-dhcp6-client.c' (0x7fe204aa9080) of size 198
0x7fe204aa9148 is located 56 bytes to the left of global variable 'msg_reply' from '../src/libsystemd-network/test-dhcp6-client.c' (0x7fe204aa9180) of size 173
SUMMARY: AddressSanitizer: global-buffer-overflow ../src/libsystemd-network/dhcp6-option.c:145 option_parse_hdr
commit a13ee4c792cb5738c3dd13b2a4bb1a828e7994fd
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Fri Aug 29 07:48:33 2014 -0500
cgroup-util: shorten cg_path_get_session
commit 6ad3b2b62cbe34cc02ee98deb5f48047f5e42d26
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Sat Aug 30 17:22:42 2014 -0400
systemd: fix error message
commit c552d602ae784c0261ceeb46ace30e6189f38bb2
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Sat Aug 30 14:47:36 2014 -0400
test-compress: also test with incompressible inputs
commit b4232628f3d4b00c967310d56c0e95715c9d05cd
Author: Evangelos Foutras <evangelos at foutrelis.com>
Date: Sat Aug 30 10:13:43 2014 +0300
journal/compress: use LZ4_compress_continue()
We can't use LZ4_compress_limitedOutput_continue() because in the
worst-case scenario the compressed output can be slightly bigger than
the input block. This generally affects very few blocks and is no reason
to abort the compression process.
I ran into this when I noticed that Chromium core dumps weren't being
compressed. After switching to LZ4_compress_continue() a ~330MB Chromium
core dump gets compressed to ~17M.
commit f697185e5b45287b6a62592129e726d8a636d3ff
Author: Tom Gundersen <teg at jklm.no>
Date: Fri Aug 29 13:08:16 2014 +0200
sd-ipv4ll: name the correct source
commit 06b643e7f5a3b79005dd57497897ab7255fe3659
Author: Ruben Kerkhof <ruben at rubenkerkhof.com>
Date: Sat Aug 30 17:13:16 2014 +0200
Fix a few more typos
commit b12942e67ecbea0b852d4ab8df1d34b04e9853f8
Author: Sylvain Plantefève <sylvain.plantefeve at gmail.com>
Date: Sat Aug 30 16:25:59 2014 +0200
Update french translation
commit 015419c0dfd96bef9401c868137711ca78cce652
Author: Michael Biebl <biebl at debian.org>
Date: Sat Aug 30 02:01:51 2014 +0200
libudev: fix symbol version for udev_queue_flush() and udev_queue_get_fd()
Those symbols were introduced in commit
14cb733684d3c3f50d088a3a370ddf8e8894dfa4 and released in v215.
commit 2e92633dbae52f5ac9b7b2e068935990d475d2cd
Author: Kay Sievers <kay at vrfy.org>
Date: Sat Aug 30 11:36:32 2014 +0200
udev: bump event timeout to 60 seconds
commit be2ea723b1d023b3d385d3b791ee4607cbfb20ca
Author: Kay Sievers <kay at vrfy.org>
Date: Sat Aug 30 11:34:20 2014 +0200
udev: remove userspace firmware loading support
commit ec15977a3cd82eff6c94bb13db72195f7cd512e8
Author: Dave Reisner <dreisner at archlinux.org>
Date: Fri Aug 29 20:35:15 2014 -0400
completion: filter templates from restartable units
Since c6a373a2634854, we might encounter unit templates via the
'list-units' verb. These aren't restartable (and we throw errors), so
make sure they're filtered out of the completion options.
fixes downstream bug: https://bugs.archlinux.org/task/41719
commit f2e104d3e0c43e4efd7c1952065bd4b79eefa427
Author: Sergey Ptashnick <0comffdiz at inbox.ru>
Date: Fri Aug 29 19:48:47 2014 +0400
Update Russian translation
By analogy with commit 1977376274.
commit 3af0442c52090f34ae7a1c8e6b6587c540c06896
Author: Miroslav Lichvar <mlichvar at redhat.com>
Date: Wed Aug 27 16:47:20 2014 +0200
timesyncd: check root distance
NTPv4 servers don't reply with unsynchronized status when they lost
synchronization, they only keep increasing the root dispersion and it's
up to the client to decide at which point they no longer consider it
synchronized.
Ignore replies with root distance over 5 seconds.
commit 487a36821ea214a73e1d0dcbd6d84123b50d1135
Author: Miroslav Lichvar <mlichvar at redhat.com>
Date: Wed Aug 27 16:47:19 2014 +0200
timesyncd: get kernel timestamp in nanoseconds
commit 73c76e6330d31e1d04454fd7408dd56b4eedca9f
Author: Miroslav Lichvar <mlichvar at redhat.com>
Date: Wed Aug 27 16:47:18 2014 +0200
timesyncd: fix calculation of transmit time
The kernel timestamp (recv_time) is made earlier than current time
(now_ts), use the timestamp captured before sending packet directly.
commit 07610e108e2d3f046da683a3a69c4d5cccd2cf8e
Author: Miroslav Lichvar <mlichvar at redhat.com>
Date: Wed Aug 27 16:47:17 2014 +0200
timesyncd: check if stratum is valid
commit 6ff8806e1d20a4d3cbc4b360326ea3786768f0ca
Author: Ruben Kerkhof <ruben at rubenkerkhof.com>
Date: Fri Aug 29 13:28:04 2014 +0200
Fix a few typos in log messages
commit fd5ab841e7582342b23c9c08ba24ce0cca266690
Author: Marius Tessmann <mus.svz at gmail.com>
Date: Thu Aug 28 22:01:46 2014 +0200
systemd-journal-upload: fix invalid After=
After= belongs into [Unit], not [Install]. Found with systemd-analyze
verify.
commit c32e70aa8ea5431c881553c6c609cef5536c4e65
Author: Marius Tessmann <mus.svz at gmail.com>
Date: Thu Aug 28 22:01:45 2014 +0200
systemd-firstboot: fix typo in man page
commit 47542dc8b6f1a85de9968d028cacfb1065979e7c
Author: Marius Tessmann <mus.svz at gmail.com>
Date: Thu Aug 28 22:01:44 2014 +0200
systemd-firstboot.service: fix man page section
Found with systemd-analyze verify.
commit 32b13b2f58b916ea22626e89cdd8cdb70ca6b6c9
Author: David Herrmann <dh.herrmann at gmail.com>
Date: Thu Aug 28 22:44:28 2014 +0200
sd-event: simplify sd_event_source_set_name()
free_and_strdup() does exactly the same as sd_event_source_set_name(), use
it!
commit 9021bb9f935c93b516b10c88db2a212a9e3a8140
Author: Tom Gundersen <teg at jklm.no>
Date: Thu Aug 28 15:46:29 2014 +0200
sd-event: name event sources used in libraries
This should help in debugging failing event sources.
commit 752bbf75b9b52c0faae29bb4b77a99c4bb0d298f
Author: Tom Gundersen <teg at jklm.no>
Date: Thu Aug 28 15:48:07 2014 +0200
sd-event: use event source name rather than address in debug messages
commit f7f53e9e6ebb9f656d880f5e779fc174a1d983bf
Author: Tom Gundersen <teg at jklm.no>
Date: Thu Aug 28 15:47:39 2014 +0200
sd-event: allow naming event sources
commit 5968b1c304188e466759b8ba419fc10f150e5541
Author: Tom Gundersen <teg at jklm.no>
Date: Thu Aug 28 15:59:13 2014 +0200
sd-rtnl: log if kernel buffer is overrun as we currently can't handle that case
commit ac528e3e3b93981cc9692250556b113acce7eb17
Author: Lennart Poettering <lennart at poettering.net>
Date: Thu Aug 28 20:24:12 2014 +0200
hibernate-resume: refuse to run outside of an initrd
commit 202aea456dfb279cd34da7bfd1880f6ac0fd849f
Author: Lennart Poettering <lennart at poettering.net>
Date: Thu Aug 28 20:23:52 2014 +0200
update TODO
commit ddb7f7fc07a31937989afad53edb87b50e2cad72
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Mon Aug 18 17:22:26 2014 -0400
networkctl: do not mix dns and ntp servers
commit 427c71629ea375e4ca1841a55902b40de21f2ab4
Author: David Herrmann <dh.herrmann at gmail.com>
Date: Thu Aug 28 15:24:00 2014 +0200
bus: don't skip interfaces in bus_message_map_properties_changed()
Skipping interfaces randomly without the caller specifying it is nasty.
Avoid this and let the caller do that themselves.
commit c168eb6785bacc2042687bf879259dfc27d5a523
Author: David Herrmann <dh.herrmann at gmail.com>
Date: Thu Aug 28 15:22:26 2014 +0200
locale: fix sending PropertiesChanged for x11 keymap changed
The sd_bus_emit_properties_changed() call for x11 keymap changes lacks
commas.. whoops. Fix it! Now localed emits PropertiesChanged signals
again.
commit 5a4bf02ff57e4dd3453f2b868c72fe45f60033a3
Author: Harald Hoyer <harald at redhat.com>
Date: Thu Aug 21 16:21:26 2014 +0200
use the switch_root function in shutdown
removes code duplication
also move switch-root to shared
commit 667a0377fb25ddb0c3efbc43d186ffd4c097ce41
Author: David Herrmann <dh.herrmann at gmail.com>
Date: Thu Aug 28 14:45:38 2014 +0200
macro: use unique variable names for math-macros
Similar to container_of(), we now use unique variable names for the bascic
math macros MAX, MIN, CLAMP, LESS_BY. Furthermore, unit tests are added to
verify they work as expected.
For a rationale, see:
commit fb835651aff79a1e7fc5795086c9b26e59a8e6ca
Author: David Herrmann <dh.herrmann at gmail.com>
Date: Fri Aug 22 14:41:37 2014 +0200
shared: make container_of() use unique variable names
commit d974ad0524942882f489914013d08ab16d147170
Author: David Herrmann <dh.herrmann at gmail.com>
Date: Thu Aug 28 12:42:03 2014 +0200
bus: fix use-after-free in slot-release
We must not access slot->floating after we possible dropped the last
reference to it. Fix all callback-invocations to first check
slot->floating and possible disconnect the slot, then release the last
reference.
commit fa9838ddd62ea31f8aea99757916a16d76b31cbc
Author: David Herrmann <dh.herrmann at gmail.com>
Date: Thu Aug 28 12:25:58 2014 +0200
terminal: free sysview-device names on destruction
Don't leak the device-names during device destruction in sysview. Somehow,
the device-name is "const char*", so make it "char*" first to avoid
warnings when calling free() on it.
commit 200716a628b70fe723e7d4e09bb2ece10c10bdc0
Author: David Herrmann <dh.herrmann at gmail.com>
Date: Thu Aug 28 12:21:33 2014 +0200
terminal: free xkb state on keyboard destruction
Fix leaking the xkb-state during keyboard destruction, leaking lots of xkb
references into the wild.
commit 3125b3ef5db70d45882c7d6f617705802c5f939e
Author: Tom Gundersen <teg at jklm.no>
Date: Thu Aug 28 12:15:51 2014 +0200
nspawn: fix --network-interface
Use SETLINK when modifying an existing link.
commit 371ad55d460559b4262e25d0f9b64dc37c3f7565
Author: David Herrmann <dh.herrmann at gmail.com>
Date: Thu Aug 28 11:01:31 2014 +0200
terminal: sysview: don't return uninitialized error codes
In case 'scan_evdev' and 'scan_drm' are both false, we never set 'r' to
anyhting, thus return an uninitialized error code. Fix this by always
returning 0 as we catch negative codes earlier, anyway. Thanks to Thomas
H.P. Anderson for the report.
commit 0f99f74a14ef193c1ebde687c5cc76e1d67b85ef
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Tue Aug 26 23:54:31 2014 -0400
sd-journal: verify that object start with the field name
If the journal is corrupted, we might return an object that does
not start with the expected field name and/or is shorter than it
should.
commit 57cd09acf2c63a414aa2131c00a2b3f600eb0133
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Sat Aug 23 22:35:03 2014 -0400
sd-journal: properly convert object->size on big endian
mmap code crashes when attempting to map an object of zero size.
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=758392
https://bugs.freedesktop.org/show_bug.cgi?id=82894
commit 00b333bb1039809a42ba4c7f25ba85f68766477d
Author: Thomas Hindoe Paaboel Andersen <phomes at gmail.com>
Date: Wed Aug 27 23:23:10 2014 +0200
terminal: remove unused variable
commit eff3f4f9e92b56d9dfb90d5094e48cc743c776cc
Author: Lennart Poettering <lennart at poettering.net>
Date: Wed Aug 27 21:43:33 2014 +0200
update TODO
commit 8a7c93d858c342744adf481565d8bb03b9713dcf
Author: Lennart Poettering <lennart at poettering.net>
Date: Wed Aug 27 21:42:20 2014 +0200
util: fix minimal race where we might miss SIGTERMs when forking off an agent
Before forking, block all signals, and unblock them afterwards. This way
the child will have them blocked, and we won't lose them.
commit c609cb9898dc8dec5dcb0b1d111b3f6b6a5e09d4
Author: Tom Gundersen <teg at jklm.no>
Date: Wed Aug 27 19:04:29 2014 +0200
man: add sample glib/sd-event integration
This should be moved to man pages, but for now the C code is included directly.
Suggested by Zbyszek.
commit 8e9371905c743cf997b2e8fa7fe3238f81f741fe
Author: David Herrmann <dh.herrmann at gmail.com>
Date: Wed Aug 27 18:38:01 2014 +0200
terminal: add systemd-evcat input debugging tool
Like systemd-subterm, this new systemd-evcat tool should only be used to
debug libsystemd-terminal. systemd-evcat attaches to the running session
and pushes all evdev devices attached to the current session into an
idev-session. All events of the created idev-devices are then printed to
stdout for input-event debugging.
commit e06cc7b07465369fb7c01c9778b84cf82c82fdcf
Author: David Herrmann <dh.herrmann at gmail.com>
Date: Wed Aug 27 18:34:55 2014 +0200
terminal: add xkb-based keyboard devices to idev
The idev-keyboard object provides keyboard devices to the idev interface.
It uses libxkbcommon to provide proper keymap support.
So far, the keyboard implementation is pretty straightforward with one
keyboard device per matching evdev element. We feed everything into the
system keymap and provide proper high-level keyboard events to the
application. Compose-features and IM need to be added later.
commit c93e5a62ff599528c3bf2a8656825403aaebe093
Author: David Herrmann <dh.herrmann at gmail.com>
Date: Wed Aug 27 18:31:34 2014 +0200
terminal: add evdev elements to idev
The evdev-element provides linux evdev interfaces as idev-elements. This
way, all real input hardware devices on linux can be used with the idev
interface.
We use libevdev to interface with the kernel. It's a simple wrapper
library around the kernel evdev API that takes care to resync devices
after kernel-queue overflows, which is a rather non-trivial task.
Furthermore, it's a well tested interface used by all other major input
users (Xorg, weston, libinput, ...).
Last but not least, it provides nice keycode to keyname lookup tables (and
vice versa), which is really nice for debugging input problems.
commit e202fa31fb2d60084e7b2ab7976a81c138184d40
Author: David Herrmann <dh.herrmann at gmail.com>
Date: Wed Aug 27 18:17:27 2014 +0200
terminal: add input interface
The idev-interface provides input drivers for all libsystemd-terminal
based applications. It is split into 4 main objects:
idev_context: The context object tracks global state of the input
interface. This will include data like system-keymaps,
xkb contexts and more.
idev_session: A session serves as controller for a set of devices.
Each session on an idev-context is independent of each
other. The session is also the main notification object.
All events raised via idev are reported through the
session interface. Apart of that, the session is a
pretty dumb object that just contains devices.
idev_element: Elements provide real hardware in the idev stack. For
each hardware device, one element is added. Elements
have no knowledge of higher-level device types, they
only provide raw input data to the upper levels. For
example, each evdev device is represented by a different
element in an idev session.
idev_device: Devices are objects that the application deals with. An
application is usually not interested in elements (and
those are hidden to applications), instead, they want
high-level input devices like keyboard, touchpads, mice
and more. Device are the high-level interface provided
by idev. Each device might be fed by a set of elements.
Elements drive the device. If elements are removed,
devices are destroyed. If elements are added, suitable
devices are created.
Applications should monitor the system for sessions and hardware devices.
For each session they want to operate on, they create an idev_session
object and add hardware to that object. The idev interface requires the
application to monitor the system (preferably via sysview_*, but not
required) for hardware devices. Whenever hardware is added to the idev
session, new devices *might* be created. The relationship between hardware
and high-level idev-devices is hidden in the idev-session and not exposed.
Internally, the idev elements and devices are virtual objects. Each real
hardware and device type inherits those virtual objects and provides real
elements and devices. Those types will be added in follow-up commits.
Data flow from hardware to the application is done via idev_*_feed()
functions. Data flow from applications to hardware is done via
idev_*_feedback() functions. Feedback is usually used for LEDs, FF and
similar operations.
commit 7ed3a638b2e4ffb5e76a0cf1a008e1c7233edb75
Author: David Herrmann <dh.herrmann at gmail.com>
Date: Tue Aug 26 15:03:41 2014 +0200
terminal: add system view interface
We're going to need multiple binaries that provide session-services via
logind device management. To avoid re-writing the seat/session/device
scan/monitor interface for each of them, this commit adds a generic helper
to libsystemd-terminal:
The sysview interface scans and tracks seats, sessions and devices on a
system. It basically mirrors the state of logind on the application side.
Now, each session-service can listen for matching sessions and
attach to them. On each session, managed device access is provided. This
way, it is pretty simple to write session-services that attach to multiple
sessions (even split across seats).
commit aae2b488d084cf2af9a552a55e1d9cc614f2a12a
Author: David Herrmann <dh.herrmann at gmail.com>
Date: Sun Aug 24 18:55:58 2014 +0200
bus: split bus_map_all_properties into multiple helpers
The bus_map_all_properties() helper calls
org.freedesktop.DBus.Properties.GetAll() on a given target and parses the
result according to a given property-table. This simplifies dealing with
DBus.Properties significantly. However, the function is blocking and thus
not really useful in many situations.
This patch extracts the core of this function and adds two new helpers
which directly take dbus-messages as arguments. This way, you can issue
asynchronous requests and parse the result via these helpers:
bus_message_map_all_properties():
This is the same as bus_map_all_properties() but takes the result
message from a GetAll() request as argument. You can thus issue an
asynchronous GetAll() request and then use this helper once you got
the result.
bus_message_map_properties_changed():
This function takes a signal-message that was retrieved via a
PropertiesChanged signal and then parses it like if you retrieved
it via GetAll(). Furthermore, this function returns the number of
matched properties that got invalidated by the PropertiesChanged
signal, but didn't carry the new value. This way, the caller can
issue a new GetAll() request and then parse the result.
The old function bus_map_all_properties() is functionally unchanged, but
now uses bus_message_map_all_properties() internally.
commit f1566e63da92cee5cbc0074df9cd9a8dc078a62e
Author: David Herrmann <dh.herrmann at gmail.com>
Date: Wed Aug 27 18:03:29 2014 +0200
util: make lookup_uid() global
This is a useful helper, make it global. It will be required for
libsystemd-terminal, at minimum.
commit 92e63a51052e9ba2fbe6e47a173b6264ae292a58
Author: David Herrmann <dh.herrmann at gmail.com>
Date: Wed Aug 27 18:02:17 2014 +0200
udev: add missing new-line in udevadm error
fprintf() does not add new-lines automatically like log_*() does. Add the
missing \n specified so "udevadm" invoked without arguments adds a newline
to:
udevadm: missing or unknown command
commit 60240797a4ce464ec7a0537ccbec4c83f599251c
Author: David Herrmann <dh.herrmann at gmail.com>
Date: Fri Aug 22 14:57:11 2014 +0200
login: fix memory-leak on DropController()
Our bus-name watch helpers only remove a bus-name if it's not a
controller, anymore. If we call manager_drop_busname() before
unregistering the controller, the busname will not be dropped. Therefore,
first drop the controller, then drop the bus-name.
commit fb835651aff79a1e7fc5795086c9b26e59a8e6ca
Author: David Herrmann <dh.herrmann at gmail.com>
Date: Fri Aug 22 14:41:37 2014 +0200
shared: make container_of() use unique variable names
If you stack container_of() macros, you will get warnings due to shadowing
variables of the parent context. To avoid this, use unique names for
variables.
Two new helpers are added:
UNIQ: This evaluates to a truly unique value never returned by any
evaluation of this macro. It's a shortcut for __COUNTER__.
UNIQ_T: Takes two arguments and concatenates them. It is a shortcut for
CONCATENATE, but meant to defined typed local variables.
As you usually want to use variables that you just defined, you need to
reference the same unique value at least two times. However, UNIQ returns
a new value on each evaluation, therefore, you have to pass the unique
values into the macro like this:
#define my_macro(a, b) __max_macro(UNIQ, UNIQ, (a), (b))
#define __my_macro(uniqa, uniqb, a, b) ({
typeof(a) UNIQ_T(A, uniqa) = (a);
typeof(b) UNIQ_T(B, uniqb) = (b);
MY_UNSAFE_MACRO(UNIQ_T(A, uniqa), UNIQ_T(B, uniqb));
})
This way, MY_UNSAFE_MACRO() can safely evaluate it's arguments multiple
times as they are local variables. But you can also stack invocations to
the macro my_macro() without clashing names.
This is the same as if you did:
#define my_macro(a, b) __max_macro(__COUNTER__, __COUNTER__, (a), (b))
#define __my_macro(prefixa, prefixb, a, b) ({
typeof(a) CONCATENATE(A, prefixa) = (a);
typeof(b) CONCATENATE(B, prefixb) = (b);
MY_UNSAFE_MACRO(CONCATENATE(A, prefixa), CONCATENATE(B, prefixb));
})
...but in my opinion, the first macro is easier to write and read.
This patch starts by converting container_of() to use this new helper.
Other macros may follow (like MIN, MAX, CLAMP, ...).
commit 418bcb0ce3b704ea26ee1b4a68706abca536f65a
Author: David Herrmann <dh.herrmann at gmail.com>
Date: Fri Aug 22 14:38:28 2014 +0200
shared: drop UNIQUE()
The UNIQUE() macro works fine if used in un-stacked macros. However, once
you stack them like:
MAX(MIN(a, b),
CLAMP(MAX(c, d), e, f))
you will get warnings due to shadowing other variables. gcc uses the last
line of a macro expansion as value for __LINE__, therefore, we cannot even
avoid this by splitting the expressions across lines.
Remove the only user of UNIQUE() so we introduce a new helper in
follow-ups.
commit 285e8c126b1607188249c42e74c172cb69cc99a6
Author: Tom Gundersen <teg at jklm.no>
Date: Wed Aug 27 17:46:00 2014 +0200
TODO
commit aeb50ff0bd4bbbca74c4695072232348351d512d
Author: Tom Gundersen <teg at jklm.no>
Date: Wed Aug 27 17:45:41 2014 +0200
tmpfiles: make resolv.conf entry conditional on resolved support
commit 81fc054dc7c365545bca86d78bf36a12658cedb3
Author: Lukas Nykryn <lnykryn at redhat.com>
Date: Tue Aug 26 13:33:08 2014 +0200
systemctl: fix broken list-unit-files with --root
commit e512e8a255ef29d5a8eb605f8849202ea3d3e4cb
Author: Martin Pitt <martin.pitt at ubuntu.com>
Date: Wed Aug 27 08:41:10 2014 +0200
keymap: Adjust for more Samsung 900X4 series
Reportedly also applies to NP900X4B, so relax the match to apply to all models
of this series.
https://launchpad.net/bugs/902332
commit 1977376274fc81f13e4220d224237e7cc71f0c63
Author: Piotr Drąg <piotrdrag at gmail.com>
Date: Sun Aug 24 18:18:35 2014 +0200
po: update Polish translation
https://bugs.freedesktop.org/show_bug.cgi?id=83015
commit bf2e0ece853b888eb37055849975ddeab3f5f051
Author: Andrei Borzenkov <arvidjaar at gmail.com>
Date: Sun Aug 24 11:11:33 2014 +0400
Document "...|..." udev match syntax
commit 36f5ace2db7fc43796107b2da9874e4c4bbc623e
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Tue Aug 26 21:14:11 2014 -0400
man: reword sd-hibernate-resume description and add link
"each device" was suggesting that this service might be instantiated
multiple times. "hibernation resume" was too jargon-y.
commit d2c68822c47e37b582820f45b496b2e7d1f9e642
Author: Ivan Shapovalov <intelfx100 at gmail.com>
Date: Wed Aug 27 00:17:45 2014 +0400
hibernate-resume-generator: add a generator for instantiating the resume unit.
hibernate-resume-generator understands resume= kernel command line parameter
and instantiates the systemd-resume at .service accordingly if it is passed.
This enables resume from hibernation using device specified on the kernel
command line, and it may be specified either as "/dev/disk/by-foo/bar"
or "FOO=bar", not only "/dev/sdXY" which is understood by the in-kernel
implementation.
So now resume= is brought on par with root= in terms of possible ways to
specify a device.
commit 42483a747489ff46aed3588b78bf4b9480dbeaf7
Author: Ivan Shapovalov <intelfx100 at gmail.com>
Date: Wed Aug 27 00:17:44 2014 +0400
hibernate-resume: add a tool to write a device node's major:minor to /sys/power/resume.
This can be used to initiate a resume from hibernation by path to a swap
device containing the hibernation image.
The respective templated unit is also added. It is instantiated using
path to the desired resume device.
commit 66f311206e908a5b6f21e66fad73e1e5ea3e31d6
Author: Ivan Shapovalov <intelfx100 at gmail.com>
Date: Wed Aug 27 00:17:43 2014 +0400
units: order systemd-fsck at .service after local-fs-pre.target.
With this change, it becomes possible to order a unit to activate before any
modifications to the file systems. This is especially useful for supporting
resume from hibernation.
commit 3c56cab44150ad47323970cfadfb0257c6305a74
Author: Ben Wolsieffer <benwolsieffer at gmail.com>
Date: Tue Aug 26 22:08:02 2014 +0200
logind: add HandleLidSwitchDocked= option to logind.conf + documentation
https://bugs.freedesktop.org/show_bug.cgi?id=82485
commit 36202fd2bc252616966166c98ccb0e0e5ece1fc9
Author: Lennart Poettering <lennart at poettering.net>
Date: Tue Aug 26 21:47:46 2014 +0200
sd-journal: never log anything by default from a library
commit 1b6d7fa742e303611dff8d7ebfa86ee5fb8b7dc7
Author: Lennart Poettering <lennart at poettering.net>
Date: Tue Aug 26 21:11:35 2014 +0200
util: make use of newly added reset_signal_mask() call wherever appropriate
commit 1dedb74a2e1d840b531b76b01a76979f3b57456b
Author: Lennart Poettering <lennart at poettering.net>
Date: Tue Aug 26 21:04:21 2014 +0200
util: reset signals when we fork off agents
If we invoke agents, we should make sure we actually can kill them
again. I mean, it's probably not our job to cleanup the signals if our
tools are invoked in weird contexts, but at least we should make sure,
that the subprocesses we invoke and intend to control work as intended.
Also see:
http://lists.freedesktop.org/archives/systemd-devel/2014-August/022460.html
commit 24a5d6b04e17d447cf122f02a8a2dedd843cce45
Author: Lennart Poettering <lennart at poettering.net>
Date: Tue Aug 26 21:03:20 2014 +0200
util: make sure reset_all_signal_handlers() continues with all other signal handlers when one sigaction() fails
After all, we usually don't check for failures here, and it is better to
do as much as we can...
commit f2322f0b64107b2eee1fadb6c59857381277a9f8
Author: Hristo Venev <mustrumr97 at gmail.com>
Date: Tue Aug 26 20:40:35 2014 +0200
sd-bus: don't include internal header memfd.h in public header sd-bus.h
https://bugs.freedesktop.org/show_bug.cgi?id=83097
commit 498cfc230af8f83675be2e92057956f1792969e4
Author: Sjoerd Simons <sjoerd.simons at collabora.co.uk>
Date: Sat Aug 23 21:11:44 2014 +0200
systemctl: Correct error message printed when bus_process_wait fails
Actually use the variable containing the return code of bus_process_wait when
printing the error message as a result of it failing.
commit bb19cb17076bbec942ad08f94d41ba36b28a5a13
Author: Lennart Poettering <lennart at poettering.net>
Date: Tue Aug 26 20:35:31 2014 +0200
sd-bus: remove unused call bus_kernel_create_monitor()
Noticed by Djalal Harouni
commit 684fc8927e0f83496d4384ac434e265f7cd7a87b
Author: Filipe Brandenburger <filbranden at google.com>
Date: Mon Aug 25 22:05:04 2014 -0700
test-util: use assert_se() for call to safe_mkdir with side effect
Otherwise it gets optimized out when CPPFLAGS='-DNDEBUG' is used.
Tested:
- make check TESTS='test-util' CPPFLAGS='-DNDEBUG'
commit 8d95631ea6c039a60bb7ac456f687a8fdf0c4381
Author: Filipe Brandenburger <filbranden at google.com>
Date: Mon Aug 25 22:05:03 2014 -0700
test-path-util: use assert_se in all assertions
Otherwise they get optimized out when CPPFLAGS='-DNDEBUG' is used, and that
causes the tests to fail.
Tested:
- make check TESTS='test-path-util' CPPFLAGS='-DNDEBUG'
commit 52754725e185f1331f821d85ed2ef78fb92af1fe
Author: Filipe Brandenburger <filbranden at google.com>
Date: Mon Aug 25 22:05:02 2014 -0700
test-compress: make sure asserts with side effects use assert_se()
Otherwise the test fails when built with CPPFLAGS='-DNDEBUG' which disables
assertions.
Tested:
- make check TESTS='test-compress' CPPFLAGS='-DNDEBUG'
commit 32dfe42c66085c55916e5306a9a07d42d3958b6b
Author: Łukasz Stelmach <stlman at poczta.fm>
Date: Tue Aug 26 12:28:28 2014 +0200
networkd-wait-online: add missing short option 'i' to optstring
commit 7965435e588c8d2fb824c5fd4b8c2739bc30acdf
Author: Michael Olbrich <m.olbrich at pengutronix.de>
Date: Thu Aug 21 12:38:08 2014 +0200
missing: add BPF_XOR
BPF_XOR was introduced in kernel 3.7
commit daa05349dfefb12638c96e034c11be613bdc39b7
Author: Ansgar Burchardt <ansgar at 43-1.org>
Date: Tue Aug 26 00:19:54 2014 +0200
NEWS: Fix typos.
commit 8dac15b6e9792c2b0f503ddf78ac499817904a6f
Author: Lennart Poettering <lennart at poettering.net>
Date: Tue Aug 26 20:23:49 2014 +0200
update TODO
commit 77cf759ea05bea476cdcb8d0dcd04c4e6fb3b2ff
Author: Kay Sievers <kay at vrfy.org>
Date: Tue Aug 26 18:27:36 2014 +0200
udev: hwdb - do not look at "usb_device" parents
Based on a patch from Simon McVittie <simon.mcvittie at collabora.co.uk>.
Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=758050
commit 4fc13f521ab44eb55c599b07c18860c1aeca35a7
Author: Lennart Poettering <lennart at poettering.net>
Date: Tue Aug 26 04:03:24 2014 +0200
Revert "systemctl: fix broken list-unit-files with --root"
This reverts commit 41a451cc2901a5deb985aea4cc8de204a22e5612.
This breaks checks for masking of units file, since we invoke
null_or_empty_path() on the resulting path.
commit 42aeb14a4a0fa7d43da96a8ed0fb0e180a2dd5c8
Author: Lennart Poettering <lennart at poettering.net>
Date: Tue Aug 26 03:59:05 2014 +0200
update TODO
commit 6d148a842ebb04a9a9bc2853e167a9d8eddf8cd8
Author: Tom Gundersen <teg at jklm.no>
Date: Tue Aug 26 00:22:06 2014 +0200
sd-event: sd_event_prepare - stay in PREPARED if sd_event_wait() indicates that no sources are pending
commit c45a5a74465a39280b855f9d720b2ab4779a47fa
Author: Tom Gundersen <teg at jklm.no>
Date: Fri Aug 15 18:49:29 2014 +0200
sd-event: split run into prepare/wait/dispatch
This will allow sd-event to be integrated into an external event loop, which
in turn will allow (say) glib-based applications to use our various libraries,
without manually integrating each of them (bus, rtnl, dhcp, ...).
The external event-loop should integrate sd-event int he following way:
Every iteration must start with a call to sd_event_prepare(), which will
return 0 if no event sources are ready to be processed, a positive value if
they are and a negative value on error. sd_event_prepare() may only be called
following sd_event_dispatch(); a call to sd_event_wait() indicating that no
sources are ready to be dispatched; or a failed call to sd_event_dispatch() or
sd_event_wait().
A successful call to sd_event_prepare() indicating that no event sources are
ready to be dispatched must be followed by a call to sd_event_wait(),
which will return 0 if it timed out without event sources being ready to
be processed, a negative value on error and a positive value otherwise.
sd_event_wait() may only be called following a successful call to
sd_event_prepare() indicating that no event sources are ready to be dispatched.
If sd_event_wait() indicates that some events sources are ready to be
dispatched, it must be followed by a call to sd_event_dispatch(). This
is the only time sd_event_dispatch() may be called.
commit 41a451cc2901a5deb985aea4cc8de204a22e5612
Author: Lukas Nykryn <lnykryn at redhat.com>
Date: Mon Aug 25 15:29:50 2014 +0200
systemctl: fix broken list-unit-files with --root
This patch modifies unit_file_get_list which will now return
hashmap of structures where f->path is *without* root_dir prefix.
This change should be ok, because current code either does not use
root_dir at all or calls basename() on the f->path.
commit d74f9e8e8a3dcddb043ef193e4bb14f58efa095f
Author: Lennart Poettering <lennart at poettering.net>
Date: Fri Aug 22 18:10:22 2014 +0200
update TODO
commit d81afec1c9bf4b73e3df8996d65ecae95d19b6db
Author: Lennart Poettering <lennart at poettering.net>
Date: Fri Aug 22 18:07:18 2014 +0200
core: split up "starting" manager state into "initializing" and "starting"
We'll stay in "initializing" until basic.target has reached, at which
point we will enter "starting".
This is preparation so that we can change the startip timeout to only
apply to the first phase of startup, not the full procedure.
commit f07756bfe25c64119704c93a634162d6c88b5c89
Author: Lennart Poettering <lennart at poettering.net>
Date: Fri Aug 22 16:59:46 2014 +0200
core: introduce "poweroff" as new failure action types
Also, change the default action on a system start-up timeout to powering off.
commit c4147df156835513c43260a14fc9f7af177f737f
Author: Lennart Poettering <lennart at poettering.net>
Date: Fri Aug 22 16:58:25 2014 +0200
resolved: fix typo in log message
commit e12919e8be5c80efe09a57f642bbd2411b313ced
Author: Lennart Poettering <lennart at poettering.net>
Date: Fri Aug 22 16:41:00 2014 +0200
core: print 'startup finished' messages even if we log to console
commit 2928b0a863091f8f291fddb168988711afd389ef
Author: Lennart Poettering <lennart at poettering.net>
Date: Fri Aug 22 16:36:38 2014 +0200
core: add support for a configurable system-wide start-up timeout
When this system-wide start-up timeout is hit we execute one of the
failure actions already implemented for services that fail.
This should not only be useful on embedded devices, but also on laptops
which have the power-button reachable when the lid is closed. This
devices, when in a backpack might get powered on by accident due to the
easily reachable power button. We want to make sure that the system
turns itself off if it starts up due this after a while.
When the system manages to fully start-up logind will suspend the
machine by default if the lid is closed. However, in some cases we don't
even get as far as logind, and the boot hangs much earlier, for example
because we ask for a LUKS password that nobody ever enters.
Yeah, this is a real-life problem on my Yoga 13, which has one of those
easily accessible power buttons, even if the device is closed.
commit 2de1851fe3611c59abf77127c6b5bc1b91eb7cba
Author: Daniel Mack <zonque at gmail.com>
Date: Fri Aug 22 16:10:02 2014 +0200
missing.h: add a cpp warning for __NR_memfd_create on MIPS
commit a7d611f280b3eadafd6b411b659a321b4d6e63f4
Author: Daniel Mack <zonque at gmail.com>
Date: Fri Aug 22 15:39:36 2014 +0200
missing.h: add fake __NR_memfd_create for MIPS
We don't have the correct __NR_memfd_create syscall number yet, so set it to
0xffffffff for now to prevent compile time errors.
commit 40a1eebde6be7ac3f1885147fc24e06ad1da260c
Author: David Herrmann <dh.herrmann at gmail.com>
Date: Fri Aug 22 13:55:57 2014 +0200
shared: add MAXSIZE() and use it in resolved
The MAXSIZE() macro takes two types and returns the size of the larger
one. It is much simpler to use than MAX(sizeof(A), sizeof(B)) and also
avoids any compiler-extensions, unlike CONST_MAX() and MAX() (which are
needed to avoid evaluating arguments more than once). This was suggested
by Daniele Nicolodi <daniele at grinta.net>.
Also make resolved use this macro instead of CONST_MAX(). This enhances
readability quite a bit.
commit 0975b63fb31263e535a2d26ed41e66e23f468bc5
Author: Lennart Poettering <lennart at poettering.net>
Date: Fri Aug 22 12:44:17 2014 +0200
dbus1-generator: properly free the FILE*
Also, rework the code to make use of fflush_and_check().
Issue discovered by Simon Danner.
commit 337ce7442a0602116c6253ebf202bd34f675f627
Author: Lennart Poettering <lennart at poettering.net>
Date: Thu Aug 21 19:12:43 2014 +0200
update TODO
commit 4fe1be9ce2e0cca6354a4167f0a1a7e1f943c91c
Author: Lennart Poettering <lennart at poettering.net>
Date: Thu Aug 21 19:10:26 2014 +0200
systemctl: in list-unit-files, always show legend, even if we know about no unit files
commit 59ccf93d97f0a37522e5f4fbf5cc0288dbedf495
Author: Lennart Poettering <lennart at poettering.net>
Date: Thu Aug 21 19:08:30 2014 +0200
install: simplify usage of _cleanup_ macros
commit 96fb8242cc1ef6b0e28f6c86a4f57950095dd7f1
Author: Lennart Poettering <lennart at poettering.net>
Date: Thu Aug 21 18:50:42 2014 +0200
service: allow services of Type=oneshot that specify no ExecStart= commands
This is useful for services that simply want to run something on
shutdown, but not at bootup. They should only set ExecStop= but leave
ExecStart= unset.
commit 1954ea346dc28226c0fffde848d49a297165b0a9
Author: Lennart Poettering <lennart at poettering.net>
Date: Thu Aug 21 18:01:47 2014 +0200
update TODO
commit 21b2ce39d4038cd6176394836fdcfb7fba63f424
Author: Lennart Poettering <lennart at poettering.net>
Date: Thu Aug 21 18:01:22 2014 +0200
service: use the right timeout for stop processes we fork
commit f461c8073dee9cd10bfae5ae3586e785ec8a5d07
Author: Lennart Poettering <lennart at poettering.net>
Date: Thu Aug 21 17:35:19 2014 +0200
execute: explain in a comment, why close_all_fds() is invoked the second time differently
commit 430e21c2f7e77d600257ead56419f511e48e854a
Author: Lennart Poettering <lennart at poettering.net>
Date: Thu Aug 21 17:20:19 2014 +0200
bus: when terminating our bus-actviated services that exit-on-idle send STOPPING=1 via sd_notify()
This should fix a race where a service thatis idle drops its name, and
is immediately requested by another client, which causes dbus-daemon to
ask systemd to activate it again, but since systemd still assumes it is
running it won't do anything.
commit 55cdcbacf70f05a40a155af24f6d2da6b478cba6
Author: Lennart Poettering <lennart at poettering.net>
Date: Thu Aug 21 17:20:00 2014 +0200
update TODO
commit af4ec4309e8f82aad87a8d574785c12f8763d5f8
Author: Lennart Poettering <lennart at poettering.net>
Date: Thu Aug 21 17:19:28 2014 +0200
notify: send STOPPING=1 from our daemons
commit 308d72dc1e2106f94ae637e2ea510e8d466d2af1
Author: Lennart Poettering <lennart at poettering.net>
Date: Thu Aug 21 17:03:15 2014 +0200
core: allow informing systemd about service status changes with RELOADING=1 and STOPPING=1 sd_notify() messages
commit 70af4d17dafe81acc96f71f4ec06fbea7386bc38
Author: Lennart Poettering <lennart at poettering.net>
Date: Thu Aug 21 16:52:41 2014 +0200
manager: don#t dispatch sd_notify() messages and SIGCHLD multiple times to the same units
commit 55836941ff642d42403921fa9d5fd2f8376ae722
Author: Lennart Poettering <lennart at poettering.net>
Date: Thu Aug 21 16:51:44 2014 +0200
manager: reuse sockaddr_union instead of redefining our own version of it
commit 28849dbadb7cd127f7f89e8892ec94c6a05070da
Author: Lennart Poettering <lennart at poettering.net>
Date: Thu Aug 21 16:22:34 2014 +0200
service,strv: introduce strv_find_startswith() and make use of it
Unlike strv_find_prefix() the new call will return a pointer to the
suffix of the item we found, instead of the whole item. This is more
closer inline with what startswith() does, and allows us to simplify a
couple of invocations.
commit f49650cee2c5256dc0491432e1f12a4ae19be6c5
Author: Lennart Poettering <lennart at poettering.net>
Date: Thu Aug 21 16:20:17 2014 +0200
service: don't invoke functions at the same time as declaring variables
commit 8bb2d17d2b89e87b2e9d8f6c147a757f4670b0fc
Author: Lennart Poettering <lennart at poettering.net>
Date: Thu Aug 21 16:19:25 2014 +0200
service: remove some pointless linebreaks, to make things more readable
commit abb4c1cc0161cc6b371ee7ea2550df17a3bfc21e
Author: Lennart Poettering <lennart at poettering.net>
Date: Thu Aug 21 16:17:02 2014 +0200
service: asynchronous_close() already checks for negative parameters, no need to duplicate that
commit 4c94096027f21d4ed0efe991534a926d39d52369
Author: Lennart Poettering <lennart at poettering.net>
Date: Thu Aug 21 16:15:49 2014 +0200
core: unify how we generate the prefix string when dumping unit state
commit 5ed1227238724959f020169f5332086439709b55
Author: Lennart Poettering <lennart at poettering.net>
Date: Thu Aug 21 16:13:43 2014 +0200
util: make asynchronous_close() really work like an asynchronous version of safe_close()
Save/restore errno, like we do in safe_close(). And don't fork a thread
if the parameter is already negative.
commit a9f85faf43ae2289e19ba9105c36496aefe66072
Author: Lennart Poettering <lennart at poettering.net>
Date: Thu Aug 21 16:13:15 2014 +0200
util: simplify close_nointr() a bit
commit 11adc1aef7a1a6e9ba3fda8eb34eb5fadedc0385
Author: Lennart Poettering <lennart at poettering.net>
Date: Thu Aug 21 16:10:59 2014 +0200
util: change return value of startswith() to non-const
This way we can use it on non-const strings, and don't end up with a
const'ified result.
This is similar to libc's strstr() which also takes a const string but
returns a non-const one.
commit 3fdbc8205885f117b7dea289b44217310663e731
Author: Lennart Poettering <lennart at poettering.net>
Date: Thu Aug 21 16:10:37 2014 +0200
CODING_STYLE: document that we don't break lines at 80ch
commit 730836403aee5f5bb998e6e3622ea7068fce0699
Author: Harald Hoyer <harald at redhat.com>
Date: Tue Aug 19 11:27:34 2014 +0200
journalctl: add "-t --identifier=STRING" option
This turns journalctl to the counterpart of systemd-cat.
Messages sent with
systemd-cat --identifier foo --prioritiy debug
can now be shown with
journalctl --identifier foo --prioritiy debug
"--identifier" is not merged with "--unit" to make a clear
distinction between syslog and systemd units.
syslog identifiers can be chosen freely by anyone.
commit 9b364545435d2b65fcf73519b3064bb7c28093b7
Author: Tom Gundersen <teg at jklm.no>
Date: Fri Aug 15 21:04:07 2014 +0200
sd-event: add API to access epoll_fd
This is a prerequisite for integrating sd-event into an external
event loop.
commit a9feff3d774eaa1cc1b59189e8f344c01e69f888
Author: Tom Gundersen <teg at jklm.no>
Date: Wed Aug 20 15:56:14 2014 +0200
resolved: write resolv.conf search - switch arguments
Found by Lukáš Nykrýn.
commit e1ad6e245dcf63faa8f183063eb97678f4f9ac94
Author: Lukas Nykryn <lnykryn at redhat.com>
Date: Wed Aug 20 15:13:06 2014 +0200
journal-upload: make sure that 'r' is initialized
commit 081e009bef5a09c986bfabdf46e96810afaed1c3
Author: Lukas Nykryn <lnykryn at redhat.com>
Date: Wed Aug 20 15:02:09 2014 +0200
util: return after freeing all members of array
commit 7a855149eaf6dbd336d9defab5b4a9c70b75d5e6
Author: Lukas Nykryn <lnykryn at redhat.com>
Date: Wed Aug 20 14:51:27 2014 +0200
journal-remote: remove unreachable code
commit be754d5443e5fe44ead733ad509b127409cdb0f0
Author: Lennart Poettering <lennart at poettering.net>
Date: Wed Aug 20 14:47:35 2014 +0200
resolved: fix which return codes we check
Discovered by Lukas Nykryn
commit 03664a62914782dbd8f069bbcf8a0c8ca1df7010
Author: Lukas Nykryn <lnykryn at redhat.com>
Date: Wed Aug 20 14:34:23 2014 +0200
resolved-dns-rr: fix typo
a->rrsig.type_covered != a->rrsig.type_covered" is always false
regardless of the values of its operands because those operands are identical.
commit 5dd6d0f8ff1681fff9369e0aa2532979954dbfde
Author: Lennart Poettering <lennart at poettering.net>
Date: Wed Aug 20 13:49:39 2014 +0200
machine-id-setup: don't try to read UUID from VM/container manager if we operate on a root directory that's not /
This should make sure no UUID from the host systemd-machine-id-setup is
running on leaks onto a disk image that is provisioned with the tool.
commit 413f6df864083130a380b2f7adbb5aa970139fe7
Author: Tom Gundersen <teg at jklm.no>
Date: Wed Aug 20 11:25:23 2014 +0200
build: remove repeated KMOD section
commit fdbdf6ec29bda40763d7d3e7bb2a63e2f5d60c4c
Author: Lukas Nykryn <lnykryn at redhat.com>
Date: Tue Aug 19 20:53:29 2014 +0200
systemctl: fail in the case that no unit files were found
Previously systemctl died with message
-bash-4.2# systemctl --root /rawhi list-unit-files
(src/systemctl/systemctl.c:868) Out of memory.
in the case that no unit files were found in the --root
or the directory did not exist.
So lets return ENOENT in the case that --root does not exist
and empty list in the case that there are no unit files.
commit 5d0ae62c665262c4c55536457e84e278c252cc0b
Author: Lennart Poettering <lennart at poettering.net>
Date: Wed Aug 20 00:57:17 2014 +0200
CONST_MAX breaks gcc on fedora 20 with optimiztation
commit 0340a83b26b315c56bfc10aa922141a1e737f6a7
Author: Lennart Poettering <lennart at poettering.net>
Date: Wed Aug 20 00:47:43 2014 +0200
build: include more optional modules in build string
commit cccc74971fe3c853832d742a15eac94f365603b6
Author: Lennart Poettering <lennart at poettering.net>
Date: Wed Aug 20 00:38:39 2014 +0200
update hwdb
commit 5364f729ba9616cd9fdab8d5413fbc25a1af3a57
Author: Lennart Poettering <lennart at poettering.net>
Date: Wed Aug 20 00:18:04 2014 +0200
indentation/spurious whitespace fixes
commit 4015ac5c321f34784f73bd91ae9d7855ed663e5e
Author: Lennart Poettering <lennart at poettering.net>
Date: Wed Aug 20 00:17:46 2014 +0200
journal-upload: allow the tool to start
commit dad29dff1925a114e20d4eb7b47fca23c4f25fd7
Author: Lennart Poettering <lennart at poettering.net>
Date: Wed Aug 20 00:15:05 2014 +0200
cmdline: for new tools avoid introduce new negative switches, and properly align --help texts
Negative switches are a bad un-normalized thing. We alerady have some,
but we should try harder to avoid intrdoucing new ones.
Hence, instead of adding two switches:
--foobar
--no-foobar
Let's instead use the syntax
--foobar
--foobar=yes
--foobar=no
Where the first two are equivalent. The boolean argument is parsed
following the usual rules.
Change all new negative switches this way.
This patch also properly aligns the --help table, so that single char
switches always get a column separate of the long switches.
commit f9ffbca2fb1ba7a7854d83439a4644590be0d9e1
Author: Lennart Poettering <lennart at poettering.net>
Date: Wed Aug 20 00:14:09 2014 +0200
README: mention the new optional libidn dependency
commit 01da80b1aa0e21f8785d467afc295e37fd00ffa1
Author: Lennart Poettering <lennart at poettering.net>
Date: Tue Aug 19 23:37:16 2014 +0200
update NEWS
commit 0566ef68b816f094c3bc1c6c3921c8c35bc6d87f
Author: Ronny Chevalier <chevalier.ronny at gmail.com>
Date: Tue Aug 19 23:21:43 2014 +0200
man: fix typos
commit 265684034fac5f2674723ab7ace55b2485a1b29f
Author: Tom Gundersen <teg at jklm.no>
Date: Tue Aug 19 23:44:17 2014 +0200
NEWS
commit c46409021fa9d161c587c9e364ec629256265a75
Author: Thomas Hindoe Paaboel Andersen <phomes at gmail.com>
Date: Tue Aug 19 23:27:44 2014 +0200
sysusers: initialize r
Needed for the stdin case where it could otherwise end up being used
uninitialized.
commit 5f02e26ca7c039837dbaea63f3d3664fe45c26b9
Author: Thomas Hindoe Paaboel Andersen <phomes at gmail.com>
Date: Tue Aug 19 23:10:53 2014 +0200
NEWS: typo fixes
commit ac45dec934b0932d03fbd498a3c6e8e90a01813f
Author: Thomas Hindoe Paaboel Andersen <phomes at gmail.com>
Date: Tue Aug 19 22:55:06 2014 +0200
remove unused variables
commit d5a169aaee81246262a83cef2a0295ea5d1e7e40
Author: Lennart Poettering <lennart at poettering.net>
Date: Tue Aug 19 22:45:53 2014 +0200
build-sys: update versions for upcoming release
commit 5755381f53ab52d22d20a711c219f7de3ba62397
Author: Lennart Poettering <lennart at poettering.net>
Date: Tue Aug 19 22:35:04 2014 +0200
memfd: escape the comm field we get from PR_GET_NAME, but assume everything else is proper UTF8
commit a1a4a25e7f6b515d0c8c25257714299853f261aa
Author: Daniel Mack <zonque at gmail.com>
Date: Tue Aug 19 22:23:43 2014 +0200
NEWS: fix minor nits
commit ea47ff669723739e62a9bce6599b0346e464c08f
Author: Daniel Mack <zonque at gmail.com>
Date: Tue Aug 19 22:08:54 2014 +0200
memfd: skip utf-8 escaping if we use a name that was passed in
If a name was passed in as function argument, trust it, and don't do utf-8
encoding for them. Callers are obliged to check the names themselves, and
escape them in case they use anything they got from the outside world.
commit 3cd761e4df278cdef6fda9d7f50be512d3c1d7ae
Author: Lennart Poettering <lennart at poettering.net>
Date: Tue Aug 19 21:57:37 2014 +0200
socket: suffix newly added TCP sockopt time properties with "Sec"
This is what we have done so far for all other time values, and hence we
should do this here. This indicates the default unit of time values
specified here, if they don't contain a unit.
commit a4a79605f7c2ba17ce74baabefa19c3686439e4a
Author: Lennart Poettering <lennart at poettering.net>
Date: Tue Aug 19 21:55:10 2014 +0200
README: document what to do with the NSS modules
commit b2ca0d63277b10c9382d5bcfcdf320dbb712511b
Author: Lennart Poettering <lennart at poettering.net>
Date: Tue Aug 19 21:53:43 2014 +0200
prepare NEWS for next release
commit 8f2807bab569b27eae5459854a48cdd4dead4d2c
Author: Daniel Mack <zonque at gmail.com>
Date: Tue Aug 19 21:09:16 2014 +0200
memfd: reduce name escaping logic to utf-8 checks
As memfds are now created by proper kernel API, and not by our functions, we
can't rely on names being escaped/unescaped according to our current logic.
Thus, the only safe way is to remove the escaping and when reading names,
just escape names that are not properly encoded in UTF-8.
Also, remove assert(name) lines from the memfd creation functions, as we
explictly allow name to be NULL.
commit 4531a9bc206c0c22e29b56ac4a7528afba2e9c83
Author: Lennart Poettering <lennart at poettering.net>
Date: Tue Aug 19 19:39:16 2014 +0200
memfd: simplify API
Now, that the memfd stuff is not exported anymore, we can simplify a few
things:
Use assert() instead of assert_return(), since this is used internally
only, and we should be less permissive then.
No need to pass an allocated fd back by call-by-reference, we can just
directly return it.
commit 8a0dec98a3d18666da739c984f8952865d6e0ce3
Author: Lennart Poettering <lennart at poettering.net>
Date: Tue Aug 19 19:22:40 2014 +0200
update TODO
commit 3bb07b7680c543c982077ac075abe8badeb46ca1
Author: Lennart Poettering <lennart at poettering.net>
Date: Tue Aug 19 19:16:08 2014 +0200
Revert "socket: introduce SELinuxLabelViaNet option"
This reverts commit cf8bd44339b00330fdbc91041d6731ba8aba9fec.
Needs more discussion on the mailing list.
commit 8530dc4467691a893aa2e07319b18a84fec96cad
Author: Lennart Poettering <lennart at poettering.net>
Date: Tue Aug 19 19:05:11 2014 +0200
tmpfiles: add new 'r' line type to add UIDs/GIDs to the pool to allocate UIDs/GIDs from
This way we can guarantee a limited amount of compatibility with
login.defs, by generate an appopriate "r" line out of it, on package
installation.
commit 81163121e649523b4071f67ddc03c2db649036c5
Author: Tom Gundersen <teg at jklm.no>
Date: Tue Aug 19 18:59:28 2014 +0200
networkd: don't consider deprecated or tentative addresses when determining operstate
https://bugs.freedesktop.org/show_bug.cgi?id=81287
commit cf8bd44339b00330fdbc91041d6731ba8aba9fec
Author: Michal Sekletar <msekleta at redhat.com>
Date: Thu Jul 24 10:40:28 2014 +0200
socket: introduce SELinuxLabelViaNet option
This makes possible to spawn service instances triggered by socket with
MLS/MCS SELinux labels which are created based on information provided by
connected peer.
Implementation of label_get_child_label derived from xinetd.
Reviewed-by: Paul Moore <pmoore at redhat.com>
commit 6c3e68e7c1adc6176526e69769bf2eba86cdd257
Author: Tom Gundersen <teg at jklm.no>
Date: Tue Aug 19 17:51:50 2014 +0200
networkd: netdev - add missing callback when adding stacked devices
As the comment says, the passed in callback must always be invoked, or the underlying link
will hang. This was missed when reworking the code, so add it back in.
commit 2a5948f715b1b4a5510b723755a263602349a8af
Author: Tom Gundersen <teg at jklm.no>
Date: Tue Aug 19 17:50:38 2014 +0200
networkd: link - don't enforce ENSLAVING state
We are only guaranteed to stay in ENSLAVING state whilst enslaving by bridges/bonds, not
when adding stacked devices (as then the underlying device can be IFF_UP'ed and configured
in parallel), so drop these asserts.
commit 14a32924c9b46817c92ae11c1147a59dcb62012b
Author: Lennart Poettering <lennart at poettering.net>
Date: Tue Aug 19 16:47:37 2014 +0200
update TODO
commit 60e6abf16bd8fe6c78b42074f7fb357c02e6ddbd
Author: Lennart Poettering <lennart at poettering.net>
Date: Tue Aug 19 16:46:43 2014 +0200
util: remove unused FOREACH_WORD_SEPARATOR_QUOTED
commit 22f21c0f3bf8e1be7d1adc13704ceac982de7420
Author: Lennart Poettering <lennart at poettering.net>
Date: Tue Aug 19 16:40:02 2014 +0200
sysusers: realign sysusers snippets
commit 20fcf3aba57854ba213d150e857b27e3b156cf78
Author: Lennart Poettering <lennart at poettering.net>
Date: Tue Aug 19 16:38:43 2014 +0200
sysusers: set home directory for root to /root
commit 7629889c86005017eb1a7f1f803c0d8e7a5bef08
Author: Lennart Poettering <lennart at poettering.net>
Date: Tue Aug 19 16:34:06 2014 +0200
sysusers: add another column to sysusers files for the home directory
commit 2c36be2f4ba38f9097cdcdcd1e724ffa46da12c7
Author: Tom Gundersen <teg at jklm.no>
Date: Tue Aug 19 15:41:23 2014 +0200
networkd: fix use-after-free
Elements must be removed from the hashtable before they are freed.
commit 93aef81600437b96c96c6ca32ce85df32631c351
Author: Lennart Poettering <lennart at poettering.net>
Date: Tue Aug 19 02:19:10 2014 +0200
update TODO
commit 0e77023ea0ce315af6b0c4806b27c0140c91bbc7
Author: Lennart Poettering <lennart at poettering.net>
Date: Tue Aug 19 02:16:27 2014 +0200
sysusers: add a new RPM macro for creating users directly from data passed in via stdin
This allows encoding users to create directly in %pre, which is
necessary so that files owned by the RPM can be assigned to the right
users/groups.
This new macro does create a redundancy, as user definitions for all
users that shall own files need to to be listed twice, once with this
new macro, and then secondly, in the sysusers file shipped with the
package. But there's little way around that, as the users of this type
need to exist before we install the first file, but we actually want to
ship the user information in a file.
commit dfc87cbfe5ec03190e5b2235b1ed477db11541ca
Author: Lennart Poettering <lennart at poettering.net>
Date: Tue Aug 19 02:14:32 2014 +0200
sysusers: optionally, read sysuers configuration from standard input
commit d61bb44a89fde3042c7c15ea4975239f7dcb0cb0
Author: Lennart Poettering <lennart at poettering.net>
Date: Tue Aug 19 02:09:14 2014 +0200
update TODO
commit 9ab315ccf22a56ce28d442d94c5e4e3c416739c5
Author: Lennart Poettering <lennart at poettering.net>
Date: Tue Aug 19 01:57:24 2014 +0200
sysusers: also update /etc/shadow and /etc/gshadow when creating new system users
This should resolve problems with tools like "grpck" and suchlike.
commit de99c9dcbaf6e474551266d8f0b519bf2d8d0522
Author: Lennart Poettering <lennart at poettering.net>
Date: Tue Aug 19 00:04:46 2014 +0200
hashmap: try to use the existing 64bit hash functions for dev_t if it is 64bit
commit 1ac36c67dd4d3fb5b73939293673fcd6debae699
Author: David Herrmann <dh.herrmann at gmail.com>
Date: Mon Aug 18 23:54:10 2014 +0200
bus: map sealed memfds as MAP_PRIVATE
Mapping files as MAP_SHARED is handled by the kernel as 'writable'
mapping. Always! Even with PROT_READ. Reason for that is,
mprotect(PROT_WRITE) could change the mapping underneath and currently
there is no kernel infrastructure to add protection there. This might
change in the future, but until then, map sealed files as MAP_PRIVATE so
we don't get EPERM.
commit 9da465df2a7d5d87e4af61364fb1475b1c8cbc6f
Author: Lennart Poettering <lennart at poettering.net>
Date: Mon Aug 18 23:16:18 2014 +0200
Update TODO
commit 70421bdce2719d76efffd8afdc28433c75aac5a2
Author: Lennart Poettering <lennart at poettering.net>
Date: Mon Aug 18 23:15:51 2014 +0200
util: try to be a bit more NFS compatible when checking whether an FS is writable
https://bugs.freedesktop.org/show_bug.cgi?id=81169
commit 3f3cc397043e69c9e9a690194a6a1043bf6466c5
Author: Lennart Poettering <lennart at poettering.net>
Date: Mon Aug 18 22:25:24 2014 +0200
core: minor modernizations
commit ff50244582bf69e8489bba6ce59a21663d7f8274
Author: Lennart Poettering <lennart at poettering.net>
Date: Mon Aug 18 22:21:42 2014 +0200
units: fix BindsTo= logic when applied relative to services with Type=oneshot
Start jobs for Type=oneshot units are successful when the unit state
transition activating → inactive took place. In such a case all units
that BindsTo= on it previously would continue to run, even though the unit
they dependet on was actually already gone.
commit 8257df2767fe2eb535fb83966d92f3074c522150
Author: Ronny Chevalier <chevalier.ronny at gmail.com>
Date: Mon Aug 18 21:00:23 2014 +0200
man: fix typo
commit ece74070c7102b2d48ccc01260976b3f5cb6d9f0
Author: Ronny Chevalier <chevalier.ronny at gmail.com>
Date: Mon Aug 18 20:59:11 2014 +0200
bootchart: use NSEC_PER_SEC
commit fe3f22d116f6f0cac3bdfa512ac54c0faf8bb7cd
Author: Denis Kenzior <denkenz at gmail.com>
Date: Mon Aug 18 13:21:55 2014 -0500
bus-control: Fix cgroup handling
On systems without properly setup systemd, cg_get_root_path returns
-ENOENT. This means that busctl doesn't display much information.
busctl monitor also fails whenever it intercepts messages.
This fix fakes creates a fake "/" root cgroup which lets busctl work
on such systems.
commit a1d4404f9ab20159d88fbe9b4ed9a4f3f5b8345e
Author: Lennart Poettering <lennart at poettering.net>
Date: Mon Aug 18 19:08:03 2014 +0200
man: mention that "units" are commonly system services
Also, provide an example for -u.
commit ea352b409eec5ea1a430fde176dd5ea57698a6a6
Author: Lennart Poettering <lennart at poettering.net>
Date: Mon Aug 18 18:59:48 2014 +0200
networkd: fix how we generate lists in link_save()
https://bugs.freedesktop.org/show_bug.cgi?id=82721
commit 8aa209ee141b2314e9f1bb502a08c5129bcca3b1
Author: Ronny Chevalier <chevalier.ronny at gmail.com>
Date: Sat Aug 16 14:19:12 2014 +0200
tests: add missing entry to test-tables
commit 6accc7a24c76a2658129933ccda7ea1c6993f31e
Author: Ronny Chevalier <chevalier.ronny at gmail.com>
Date: Sat Aug 16 14:19:11 2014 +0200
tests: add tests for time-util.c
add tests for:
- timezone_is_valid
- get_timezones
commit b08f2be60aceb0c260fb232b9e8b950f0c871cb9
Author: Ronny Chevalier <chevalier.ronny at gmail.com>
Date: Sat Aug 16 14:19:10 2014 +0200
tests: add test-condition-util
commit 8852362bfc39a3e3bcad9a3287a61ff6587369ef
Author: Ronny Chevalier <chevalier.ronny at gmail.com>
Date: Sat Aug 16 14:19:09 2014 +0200
tests: add tests for util.c
add tests for:
- is_symlink
- pid_is_unwaited
- pid_is_alive
- search_and_fopen
- search_and_fopen_nulstr
- glob_exists
- execute_directory
commit d7aeffea144c2c6bfee4e63131bb2b6c460de678
Author: Ronny Chevalier <chevalier.ronny at gmail.com>
Date: Sat Aug 16 14:19:08 2014 +0200
tests: add test for fdset_iterate
commit 0709b743749c42f54ffc0d9aeacf7bff45d65af6
Author: Ronny Chevalier <chevalier.ronny at gmail.com>
Date: Sat Aug 16 14:19:07 2014 +0200
tests: add tests for fileio.c
add tests for:
- write_string_stream
- write_string_file
- sendfile_full
commit 1f532d7ef35210f11e75cfcab0535e65a37901f3
Author: Ronny Chevalier <chevalier.ronny at gmail.com>
Date: Sat Aug 16 14:19:06 2014 +0200
tests: add missing unlink
commit 43dc004336ae0c99cac45df20e32dc7aa2e7cd0c
Author: Ronny Chevalier <chevalier.ronny at gmail.com>
Date: Sat Aug 16 14:19:05 2014 +0200
tests: add tests for socket-util.c
add tests for:
- socket_address_is
- socket_address_is_netlink
- sockaddr_equal
commit c16d01af5771bdc20171e81855dc1ef83326c10d
Author: Ronny Chevalier <chevalier.ronny at gmail.com>
Date: Sat Aug 16 14:24:27 2014 +0200
man: fix typo
commit 1924a97db5d55b6537a6c6ef84944caab93cd19c
Author: Michael Olbrich <m.olbrich at pengutronix.de>
Date: Sun Aug 17 09:45:00 2014 +0200
tmpfiles: only execute chmod()/chown() when needed
This avoids errors like this, when the paths are already there with the
correct permissions and owner:
chmod(/var/spool) failed: Read-only file system
commit 630a4d9ea7298fb4a494662cbb4871069143ff56
Merge: 283868e e0fbf1f
Author: Lennart Poettering <lennart at poettering.net>
Date: Mon Aug 18 18:12:55 2014 +0200
Merge remote-tracking branch 'origin/master'
commit e0fbf1fcffe014d5af6767b29f9108c2f2444888
Author: Tom Gundersen <teg at jklm.no>
Date: Mon Aug 18 12:29:45 2014 +0200
networkd: warn when ignoring unsupported tuntap options
The interface for creating tuntap devices should be ported to rtnl so it would support the same settings
as other kinds. In the meantime, the best one can do is to drop in a .link file to set the desired options.
commit 283868e1dcd8ea7475850d9c6e7d4722c473dd50
Author: Stef Walter <stef at thewalter.net>
Date: Wed Aug 6 11:45:36 2014 +0200
core: Verify systemd1 DBus method callers via polkit
DBus methods that retrieve information can be called by anyone.
DBus methods that modify state of units are verified via polkit
action: org.freedesktop.systemd1.manage-units
DBus methods that modify state of unit files are verified via polkit
action: org.freedesktop.systemd1.manage-unit-files
DBus methods that reload the entire daemon state are verified via polkit
action: org.freedesktop.systemd1.reload-daemon
DBus methods that modify job state are callable from the clients
that started the job.
root (ie: CAP_SYS_ADMIN) can continue to perform all calls, property
access etc. There are several DBus methods that can only be
called by root.
Open up the dbus1 policy for the above methods.
(Heavily modified by Lennart, making use of the new
bus_verify_polkit_async() version that doesn't force us to always
pass the original callback around. Also, interactive auhentication must
be opt-in, not unconditional, hence I turned this off.)
commit f38857914ab5c9cc55aac05795e1886963a5fd04
Author: Lennart Poettering <lennart at poettering.net>
Date: Mon Aug 18 17:44:17 2014 +0200
bus-util: simplify bus_verify_polkit_async() a bit
First, let's drop the "bus" argument, we can determine it from the
message anyway.
Secondly, determine the right callback/userdata pair automatically from
what is currently is being dispatched. This should simplify things a lot
for us, since it makes it unnecessary to pass pointers through the
original handlers through all functions when we process messages, which
might require authentication.
commit caa829849d6ac9f6e173f585f732054358311ae1
Author: Lennart Poettering <lennart at poettering.net>
Date: Mon Aug 18 17:41:56 2014 +0200
sd-bus: add API to query which handler/callback is currently being dispatched
commit fac9c0d508f72cc5d469c969a4acc3694247c03b
Author: Daniel Mack <zonque at gmail.com>
Date: Mon Aug 18 13:28:43 2014 +0200
memfd: internalize functions, drop sd_memfd type
Remove the sd_ prefix from internal functions and get rid of the sd_memfd
type. As a memfd is now just a native file descriptor, we can get rid of our
own wrapper type, and also use close() and dup() on them directly.
commit 8a02decaf1e81bad3c06752e998734c96ab11260
Author: David Herrmann <dh.herrmann at gmail.com>
Date: Mon Aug 18 13:07:43 2014 +0200
memfd: use _cleanup_ if applicable
We now have a sd_memfd_freep helper, use it if applicable.
commit 23972f4244f7609658c2a17f85508d50e4739990
Author: David Herrmann <dh.herrmann at gmail.com>
Date: Mon Aug 18 13:05:48 2014 +0200
memfd: map unsealed files as MAP_SHARED
We need to map sealed files as MAP_PRIVATE so far as the kernel treats
MAP_SHARED as writable mapping (you can run mprotect(PROT_WRITE) at any
time on those). However, unsealed files must be mapped as MAP_SHARED.
Otherwise, we never end up writing to the real file.
commit c7dab73a5fa6e775813765fe925caaa7c4e549fa
Author: David Herrmann <dh.herrmann at gmail.com>
Date: Mon Aug 18 13:03:09 2014 +0200
memfd: disallow importing memfds without sealing
We use memfds for sealing. Lets not bother with memfds created without
MFD_ALLOW_SEALING for now. They're equivalent to random shmem files, so
don't bother treating them as sealable memfds.
commit 302e4b4963c471baefa60b220e3e05f93a49de45
Author: David Herrmann <dh.herrmann at gmail.com>
Date: Mon Aug 18 12:57:55 2014 +0200
memfd: don't open kdbus for memfd
No reason to open /dev/kdbus/control if we want memfds. memfd_create() is
always available.
commit 7e2ce386ca9ed825aaac2babe09946380af6bb94
Author: David Herrmann <dh.herrmann at gmail.com>
Date: Mon Aug 18 12:57:03 2014 +0200
memfd: internalize header
Fix the memfd.h header to use handy features like #pragma, cleanup-funcs
and util.h. Also drop the EXTERN-C macros.
commit 4632777024b7ba210e4efe5cfabc8cd0b5991045
Author: Daniel Mack <zonque at gmail.com>
Date: Mon Aug 18 12:24:04 2014 +0200
memfd: fix memfd_create() syscall wrapper
Unlike earlier versions, the syscall only takes 2 arguments in its
final version, not 3.
commit 43bde981ccc57c744f164a9d95d46c7ce8f21808
Author: Daniel Mack <zonque at gmail.com>
Date: Mon Aug 18 10:55:49 2014 +0200
memfd: move code from public library to src/shared
Don't expose generic kernel API via libsystemd, but keep the code internal
for our own usage.
commit 93bd9b2ecfdafcf0bd895336634c40d68b06d54e
Author: Daniel Mack <zonque at gmail.com>
Date: Mon Aug 18 10:45:49 2014 +0200
Makefile.am: test-bus-memfd went away. Kill its residues in Makefile.am
commit a6082d778ee4b97ec3eb6d3266cefc024c5d60f7
Author: Daniel Mack <zonque at gmail.com>
Date: Tue May 13 01:28:09 2014 +0200
kdbus: switch over to generic memfd implementation (ABI+API break)
commit a6a4f528899b1dab47408733b4a423c66ea40f7a
Author: Thomas Hindoe Paaboel Andersen <phomes at gmail.com>
Date: Sat Aug 16 23:18:32 2014 +0200
networkctl: use safe_qsort in case no links are present
Unlikely to happen but still...
commit f1e3bee216b9eac1d5b00415617cb2ff5e894c10
Author: Thomas Hindoe Paaboel Andersen <phomes at gmail.com>
Date: Sat Aug 16 00:31:23 2014 +0200
sd-bus,log: remove unused variables
commit 050f74f286b12945e3eb13a45dca92783fa65bb8
Author: Tom Gundersen <teg at jklm.no>
Date: Fri Aug 15 19:15:30 2014 +0200
sd-event: return 'r' rather than '-errno'
commit b5af2aca120f1bf13cffc270803c2232918dd967
Merge: def9a7a b39a277
Author: Lennart Poettering <lennart at poettering.net>
Date: Fri Aug 15 20:25:10 2014 +0200
Merge commit 'b39a2770ba55637da80e2e389222c59dbea73507'
commit e07bbb7c503dca966b307e7af21e2efbc6f45b89
Author: Tom Gundersen <teg at jklm.no>
Date: Fri Aug 15 18:21:18 2014 +0200
sd-event: fix missing needs_rearm
commit def9a7aa0182e5ecca3ac61b26f75136a5c4f103
Author: Lennart Poettering <lennart at poettering.net>
Date: Fri Aug 15 20:08:51 2014 +0200
sd-bus: add API to check if a client has privileges
This is a generalization of the vtable privilege check we already have,
but exported, and hence useful when preparing for a polkit change.
This will deal with the complexity that on dbus1 one cannot trust the
capability field we retrieve via the bus, since it is read via
/proc/$$/stat (and thus might be out-of-date) rather than directly from
the message (like on kdbus) or bus connection (as for uid creds on
dbus1).
Also, port over all code to this new API.
commit 4311fa08fe7f3e702a2adb569fe20fb023a4b746
Author: Lennart Poettering <lennart at poettering.net>
Date: Fri Aug 15 18:29:21 2014 +0200
update TODO
commit 1aeab12b19df295dbce1d422d9ee176a332aa800
Author: Lennart Poettering <lennart at poettering.net>
Date: Fri Aug 15 18:14:37 2014 +0200
cgroup: only generate warnings if actually writing to cgroup attributes failed
commit 1de1c9c37bb58d99c3f9d86f50212e641a2948b4
Author: Lennart Poettering <lennart at poettering.net>
Date: Fri Aug 15 18:07:36 2014 +0200
main,log: parse the log related kernel command line parameters at one place only, and for all tools
Previously, we ended up parsing some of them three times: in main.c when
processing the kernel cmdline, in main.c when processing the process
cmdline (only for containers), and in log.c again.
Let's streamline this, and only parse them in log.c
In PID 1 also make sure we parse "quiet" first, and then override this
with the more specific checks in log.c
commit 56d96fc00cd009e92e611c11f15c1bfb1b1eb9e8
Author: Lennart Poettering <lennart at poettering.net>
Date: Fri Aug 15 18:01:52 2014 +0200
main: minor code modernization for initializing the console
commit 563b1bdc09efe0cf94dd3f514f30376ca854c1ce
Author: Lennart Poettering <lennart at poettering.net>
Date: Fri Aug 15 18:01:30 2014 +0200
update TODO
commit 41414fed519e2699b52c7e3eb0876a1feb3ef68c
Author: Lennart Poettering <lennart at poettering.net>
Date: Fri Aug 15 17:06:10 2014 +0200
hostnamectl: actually implement location support
commit bf32f99f65ec42539af65736b057c9e09d3987b9
Author: David Herrmann <dh.herrmann at gmail.com>
Date: Fri Aug 15 16:58:16 2014 +0200
resolve: fix compilation on LLVM+clang
LLVM+clang does not allow statement-expressions inside of
type-declarations (file-scope). Use CONST_MAX() to avoid this.
commit 7242d7420b04132f93f1426ec713f9b09bdeba54
Author: David Herrmann <dh.herrmann at gmail.com>
Date: Fri Aug 15 16:54:52 2014 +0200
macro: add CONST_MAX() macro
The CONST_MAX() macro is similar to MAX(), but verifies that both
arguments have the same type and are constant expressions. Furthermore,
the result of CONST_MAX() is again a constant-expression.
CONST_MAX() avoids any statement-expressions and other non-trivial
expression-types. This avoids rather arbitrary restrictions in both GCC
and LLVM, which both either fail with statement-expressions inside
type-declarations or statement-expressions inside static-const
initializations.
If anybody knows how to circumvent this, please feel free to unify
CONST_MAX() and MAX().
commit fdcba430aeae442ab0ea12a08d96cfc3d13f57ef
Author: David Herrmann <dh.herrmann at gmail.com>
Date: Fri Aug 15 16:16:30 2014 +0200
macro: const'ify MIN/MAX/... macros
We must add 'const' to local variables in statement-expressions to
guarantee that the macros can produce constant-expressions if given such.
GCC seems to ignore this, but LLVM/clang requires it (understandably).
commit 4de120ee442797bc30ecfd25b4d539cac9cb56ce
Author: Lennart Poettering <lennart at poettering.net>
Date: Fri Aug 15 16:42:06 2014 +0200
resolved: fix assertion when joining llmnr mcast group
commit 40274ed6232389442f24205bc15779b9a4fe2942
Author: Lennart Poettering <lennart at poettering.net>
Date: Fri Aug 15 16:21:19 2014 +0200
networkd: print nice warnings if people configure invalid domain names
commit a0627f82e23491a08106b7329dbbe006c9b579aa
Author: Lennart Poettering <lennart at poettering.net>
Date: Fri Aug 15 16:04:46 2014 +0200
util: make is_localhost() check for 'localdomain' too, so that we can use it for both validating domains and host names
commit 486d1a81489da2341454ede4624342aad8334443
Author: Lennart Poettering <lennart at poettering.net>
Date: Fri Aug 15 16:02:42 2014 +0200
networkd: fix minor memory leak
commit c627729fc49d59ffcecc09555a34d9dd139927ce
Author: Lennart Poettering <lennart at poettering.net>
Date: Fri Aug 15 16:02:29 2014 +0200
networkctl: show acquired system domains
commit 8612e9365333d35773a08509b1d80a98911acb44
Author: Lennart Poettering <lennart at poettering.net>
Date: Fri Aug 15 16:02:14 2014 +0200
sd-network: add system-wide sd_network_get_domains() API
commit d5314fff96221c1b32e4d7c21eba9798dab58764
Author: Lennart Poettering <lennart at poettering.net>
Date: Fri Aug 15 15:42:56 2014 +0200
networkd: always write out locally configured settings first, dhcp-acquired ones later
This is primarily important for the domains list, as we really should
prefer the locally configured domain over the dhcp supplied ones when we
use it as a search list.
commit f15b6e5a8b6e550c6df7f6ccc216d5c4cbe6a604
Author: Lennart Poettering <lennart at poettering.net>
Date: Fri Aug 15 15:36:17 2014 +0200
networkd: remove "*" from domains list
Also, simplify things a bit and make sure we don't forget looking at one
of the entries.
commit 1405434b6986d3c3d6ccaaa2e472bad843cbbfa1
Author: Lennart Poettering <lennart at poettering.net>
Date: Fri Aug 15 15:34:56 2014 +0200
networkctl: two OOM fixes
commit 31d2e1961aa05f1204090792e2acc27103de5bfd
Author: Lennart Poettering <lennart at poettering.net>
Date: Fri Aug 15 15:34:33 2014 +0200
sd-nework: be more careful with error codes, return ENODATA if you lack information
commit 67272d157a35e5cda4e5c904eafdcc23d20541d1
Author: Tom Gundersen <teg at jklm.no>
Date: Fri Aug 15 14:49:31 2014 +0200
sd-network: add support for wildcard domains
commit 6192b846ca0d15602e94ddb5da4420b7c60d64a5
Author: Tom Gundersen <teg at jklm.no>
Date: Fri Aug 15 14:21:08 2014 +0200
networkd: add support for Domains= to .network files
This allows the search/routing domanis to be specified per link/network and be passed
on to resolved.
commit 2f3a215f61d758cd59b3be5b65976a12401ac4ff
Author: Harald Hoyer <harald at redhat.com>
Date: Fri Aug 15 14:39:05 2014 +0200
kernel-install/90-loaderentry.install: fixed cmdline parsing
If /etc/kernel/cmdline is missing or empty, we read /proc/cmdline and
want to filter out the initrd line. Due to a bug, the whole contents was
filtered out.
commit b39a2770ba55637da80e2e389222c59dbea73507
Author: Stef Walter <stef at thewalter.net>
Date: Wed Aug 6 11:53:00 2014 +0200
core: Rename Job.subscribed field to Job.clients
This reflects how this field will be used, to not only track where
to send signals, but also which callers (other than root) are allowed
to call DBus methods on the Job.
commit 2ea31e5b13448fd7a9757da4bcd1de04a151ac3f
Author: Stef Walter <stef at thewalter.net>
Date: Wed Aug 6 11:34:40 2014 +0200
core: Common code for DBus methods that Cancel a job
Both ofs.Job.Cancel() and ofs.Manager.CancelJob() now use same
implementation. So we can add caller verify logic appropriately.
commit 36e34057a202d389263e98030fbd775b28b28af6
Author: Stef Walter <stef at thewalter.net>
Date: Wed Aug 6 07:57:43 2014 +0200
sd-bus: Remove bus arg from bus_verify_polkit_async_registry_free()
It's unneccessary, not used, and complicates callers of the
function.
commit 926446f4aab62d5fa02840d39d661de61632292c
Author: David Herrmann <dh.herrmann at gmail.com>
Date: Fri Aug 15 13:20:18 2014 +0200
test: fix strtod test for real
The "0,5" syntax was actually right. The real problem is, the test should
only run if the local system has the de_DE.UTF-8 locale. Therefore, skip
the tests if setlocale() fails. This is kinda ugly, as it is done
silently, but we cannot skip partial tests with the current
infrastructure. Should be fine this way.
commit db73295accbec0c6513817f0a64a92018592bb26
Author: Lennart Poettering <lennart at poettering.net>
Date: Fri Aug 15 13:18:50 2014 +0200
util: never use ether_ntoa(), since it formats with %x, not %02x, which makes ethernet addresses look funny
commit c22bf27beea56516d8f83784759fb30495e058d7
Author: Lennart Poettering <lennart at poettering.net>
Date: Fri Aug 15 12:57:46 2014 +0200
unit: remove spurious newline
commit 3e3db0ee860025ad663b13b0ace4e6d627611332
Author: Lennart Poettering <lennart at poettering.net>
Date: Fri Aug 15 12:57:33 2014 +0200
networkctl: increase column width for link type to 18, to accomodate for 'ieee80211_radiotap'
commit ad0734e890b25751ef8229e47210ff11ae8fa3f3
Author: Tom Gundersen <teg at jklm.no>
Date: Fri Aug 15 12:45:59 2014 +0200
networkd: rename UseDomainName to UseDomains
This option will also apply to the search domains, so make it plural.
commit 1836bf9e1d70240c8079e4db4312309f4f1f91fd
Author: Lennart Poettering <lennart at poettering.net>
Date: Fri Aug 15 12:07:33 2014 +0200
sysctl: always write net.ipv4.conf.all.xyz= in addition to net.ipv4.conf.default.xyz=
Otherwise we have a boot-time race, where interfaces that popped up
after the sysctl service would get the settings applied, but all others
wouldn't.
commit 6b2f67b31c7d7d4cf39d037fd295a4565efc7186
Author: Lennart Poettering <lennart at poettering.net>
Date: Fri Aug 15 11:56:36 2014 +0200
cgroup: downgrade log messages about non-existant cgroup attributes to LOG_DEBUG
commit 70c949a42b2b0d0c9a2a567890483940cdc5f72c
Author: Lennart Poettering <lennart at poettering.net>
Date: Fri Aug 15 11:55:43 2014 +0200
cgroup: never try to create files in cgroupfs, only open them for writing
This should have the benefit that cg_set_attribute() returns ENOENT
instead of EACCESS when we use it for non-existing attributes.
commit ce049dcda4a9d0c9a44667ca82bc9e21d7ea7748
Author: David Herrmann <dh.herrmann at gmail.com>
Date: Fri Aug 15 10:44:43 2014 +0200
test: fix strtod() test
One strtod() test is broken since:
commit 8e211000025940b770794abf5754de61b4add0af
Author: Thomas Hindoe Paaboel Andersen <phomes at gmail.com>
Date: Mon Aug 4 23:13:31 2014 +0200
test: use fabs on doubles
The commit was right, so no reason to revert it, but the test was broken
before and only worked by coincidence. Convert "0,5" to "0.5" so we don't
depend on locales for double conversion (or well, we depend on "C" which
seems reasonable).
commit 2301cb9fdb774d0a1b3d8f5e95c5d358721ccacb
Author: Lennart Poettering <lennart at poettering.net>
Date: Fri Aug 15 03:06:11 2014 +0200
networkctl: print local domain name in status output
commit 708281b81177f3a32d11770126727737a6a69483
Author: Lennart Poettering <lennart at poettering.net>
Date: Fri Aug 15 03:05:44 2014 +0200
dhcp: the localhost isn't valid as hostname either
commit 4d229b318af339c7a4711f3812335cb3ae6fb5aa
Author: Umut Tezduyar Lindskog <umut.tezduyar at axis.com>
Date: Tue Jul 8 16:16:14 2014 +0200
coredump: display libdw fail string on stack trace fail
- systemd[1]: hello.service: main process exited, code= dumped, status=3/QUIT
- systemd-coredump[2541]: Failed to generate stack trace: Unwinding not supported for this architecture
- systemd-coredump[2541]: Process 1024 (hello) of user 154 dumped core.
commit d0a3fb7556d77c44c2bc38a560e99d4ad0abcf33
Author: Lennart Poettering <lennart at poettering.net>
Date: Fri Aug 15 02:41:14 2014 +0200
man: drop references to removed and obsolete 'systemctl load' command
commit fd062cd449e287c433e830c59fc055635d72d419
Author: Susant Sahani <susant at redhat.com>
Date: Thu Aug 14 23:06:13 2014 +0530
socket: add bus property for bus property NoDelay
Missed to add the SD_BUS_PROPERTY for no_delay.
commit cc567c9beace114554f7e7f50c3a5181cc44a07d
Author: Susant Sahani <susant at redhat.com>
Date: Thu Aug 14 23:06:12 2014 +0530
socket: Add support for TCP defer accept
TCP_DEFER_ACCEPT Allow a listener to be awakened only when data
arrives on the socket. If TCP_DEFER_ACCEPT set on a server-side
listening socket, the TCP/IP stack will not to wait for the final
ACK packet and not to initiate the process until the first packet
of real data has arrived. After sending the SYN/ACK, the server will
then wait for a data packet from a client. Now, only three packets
will be sent over the network, and the connection establishment delay
will be significantly reduced.
commit 209e9dcd7b2f23b68ff93bf20fad025bc03219ac
Author: Susant Sahani <susant at redhat.com>
Date: Thu Aug 14 23:06:11 2014 +0530
socket: Add Support for TCP keep alive variables
The tcp keep alive variables now can be configured via conf
parameter. Follwing variables are now supported by this patch.
tcp_keepalive_intvl: The number of seconds between TCP keep-alive probes
tcp_keepalive_probes: The maximum number of TCP keep-alive probes to
send before giving up and killing the connection if no response is
obtained from the other end.
tcp_keepalive_time: The number of seconds a connection needs to be
idle before TCP begins sending out keep-alive probes.
commit 1dbe0a6efda7b1d35957eab7e1d56a2c69d806d9
Author: Lennart Poettering <lennart at poettering.net>
Date: Fri Aug 15 01:25:36 2014 +0200
update TODO
commit 5261ba901845c084de5a8fd06500ed09bfb0bd80
Author: Timofey Titovets <nefelim4ag at gmail.com>
Date: Fri Aug 15 02:05:47 2014 +0300
core: Refuse mount on symlink
commit 1bd27a45d04639190fc91ad2552b72ea759c0c27
Author: Tom Gundersen <teg at jklm.no>
Date: Fri Aug 15 01:08:46 2014 +0200
networkd: don't respect domainname from DHCP by default
Most routers will send garbage, so make this opt-in only.
commit 784d9b9c09aa1ecdc688f251ea423fb47892f498
Author: Tom Gundersen <teg at jklm.no>
Date: Fri Aug 15 01:04:53 2014 +0200
sd-dhcp-lease: verify hostname and domainnames we receive
commit bda2c408f8a739c19161818bcc842107f60652a2
Author: Tom Gundersen <teg at jklm.no>
Date: Thu Aug 14 22:18:22 2014 +0200
resolved: pull in domain names from sd-network
commit 9b4d1882ca46d5b2ae7d028ec2b5d0d0c3a46a76
Author: Tom Gundersen <teg at jklm.no>
Date: Thu Aug 14 20:35:37 2014 +0200
sd-network: add sd_network_linkg_get_domains()
For now this only exposes the domain name (DHCP Option 15), and not
the search string (DHCP Option 119), which will be implemented in
a follow-up patch.
commit 9d685ca8193c0da3ad5746be3871f5350179a3b3
Author: Eelco Dolstra <eelco.dolstra at logicblox.com>
Date: Thu Aug 14 19:59:16 2014 +0200
machine_kill(): Don't kill the unit when killing the leader
If "machinectl poweroff" or "machinectl reboot" is used on a
systemd-nspawn container started with --keep-unit and --register, it
should *only* send the appropriate signal to the leader PID (i.e. the
container's systemd process). It shouldn't fall through to
manager_kill_unit() to also send the signal to the unit. The latter
ends up killing systemd-nspawn, which takes down the container
prematurely.
commit 5ba73e9b646af4d8109a5a633aa235665858144d
Author: Lennart Poettering <lennart at poettering.net>
Date: Thu Aug 14 19:56:22 2014 +0200
resolved: clarify that LLMNR scopes must have a link assigned
This is supposed to remove some compiler warnings:
http://lists.freedesktop.org/archives/systemd-devel/2014-July/021393.html
commit ca70bec9261977336c94f44d5fcf37e1c495326a
Author: Lennart Poettering <lennart at poettering.net>
Date: Thu Aug 14 19:02:48 2014 +0200
update TODO
commit b24de9d21d30245b66d8d6b869c575b48ddb6068
Author: Jon Severinsson <jon at severinsson.net>
Date: Tue Jul 22 00:39:13 2014 +0200
core: do not add default dependencies to /usr mount unit
This makes no difference if /usr was mounted in the initrd,
and brings the behaviour of legacy systems closer to those
with a propper initrd.
commit e830abd5ff4fe80d73c7c9455813fe1356d072f2
Author: Lennart Poettering <lennart at poettering.net>
Date: Thu Aug 14 17:16:37 2014 +0200
update TODO
commit 58d617429dcfb6fb1ea0f7b6cbce82266ccbb1aa
Author: Lennart Poettering <lennart at poettering.net>
Date: Thu Aug 14 17:15:09 2014 +0200
core: move status line ellipsation to 50% of the line
http://lists.freedesktop.org/archives/systemd-devel/2014-July/021591.html
commit 5dcf983854c2e8314dbee239180255490ec8ae1c
Author: Lennart Poettering <lennart at poettering.net>
Date: Thu Aug 14 16:36:25 2014 +0200
update TODO
commit 6a41c9e288fc9483aa98151338501f7654c229b6
Author: Lennart Poettering <lennart at poettering.net>
Date: Thu Aug 14 16:36:18 2014 +0200
analyze: some fixes to the --help text
commit 4d8ddba9d71e51356cc9488f906b8fef89c60c23
Author: Lennart Poettering <lennart at poettering.net>
Date: Thu Aug 14 16:34:47 2014 +0200
Revert "socket: add support for TCP fast Open"
This reverts commit 9528592ff8d7ff361da430285deba8196e8984d5.
Apparently TFO is actually the default at least for the server side now.
Also the setsockopt doesn't actually take a bool, but a qlen integer.
commit 9fdaa9925e1919b766fe1e095228fe663c583923
Author: Tom Gundersen <teg at jklm.no>
Date: Thu Aug 14 14:13:36 2014 +0200
networkd: link - don't enter LINK_CONFIGURED more than once
commit c6d3b3034acf1faec43b1281d3c7b94c23eb69d1
Author: Tom Gundersen <teg at jklm.no>
Date: Thu Aug 14 14:01:11 2014 +0200
networkd: link - print address lifetime for tracked addresses
This should help in debugging issues with DHCP lease renewal.
commit 9528592ff8d7ff361da430285deba8196e8984d5
Author: Susant Sahani <susant at redhat.com>
Date: Thu Aug 14 14:31:47 2014 +0530
socket: add support for TCP fast Open
TCP Fast Open (TFO) speeds up the opening of successiveTCP)
connections between two endpoints.It works by using a TFO cookie
in the initial SYN packet to authenticate a previously connected
client. It starts sending data to the client before the receipt
of the final ACK packet of the three way handshake is received,
skipping a round trip and lowering the latency in the start of
transmission of data.
commit 41488fe9024a8955d19811620fd55dcc56a5b2ba
Author: Lennart Poettering <lennart at poettering.net>
Date: Thu Aug 14 04:13:31 2014 +0200
update TODO
commit dbabc89b9fd0a4793242c72b55a44a66c1172112
Author: Lennart Poettering <lennart at poettering.net>
Date: Thu Aug 14 03:30:40 2014 +0200
update TODO
commit 4427c3f43a87c2e0c784fda6be1b9715be820733
Author: Susant Sahani <susant at redhat.com>
Date: Mon Jul 28 12:18:29 2014 +0530
socket: add support for tcp nagle
This patch adds support for TCP TCP_NODELAY socket option. This can be
configured via NoDelay conf parameter. TCP Nagle's algorithm works by
combining a number of small outgoing messages, and sending them all at
once. This controls the TCP_NODELAY socket option.
commit e9e74f28d783a052dce7edfa94d7918bb591ba7a
Author: Lennart Poettering <lennart at poettering.net>
Date: Thu Aug 14 02:59:02 2014 +0200
logind: add new session type "web" for PAM web clients, such as cockpit
On request of Stef Walter.
commit 8085f163c50d998f3e30a6ddfc72c73d5dc57747
Author: Dave Reisner <dreisner at archlinux.org>
Date: Tue Mar 11 10:41:22 2014 -0400
util: allow strappenda to take any number of args
This makes strappenda3 redundant, so we remove its usage and
definition. Add a few tests along the way for sanity.
commit d06441da04cd5102816858d8d1e4aa367c00156b
Author: Tom Gundersen <teg at jklm.no>
Date: Thu Aug 14 01:59:58 2014 +0200
sd-event: drop _likely_()
This is not certain to be likely.
Lennart says: a frequent usecase is invoking some function regularly in intervals
in such a case every single iteration we'll have to rearm
commit 19f8d037833f2426f0ea6b06279d669ed69fcfd1
Author: Tobias Geerinckx-Rice <tobias.geerinckx.rice at gmail.com>
Date: Mon Aug 4 22:15:52 2014 +0200
timer: order OnCalendar units after timer-sync.target if DefaultDependencies=no
Avoids triggering timers prematurely on systems with significantly inaccurate
clocks, or some embedded platforms that lack one entirely.
commit eb7040ec50fbfe5aad9eaf305bd442a4a235abaa
Author: Tom Gundersen <teg at jklm.no>
Date: Thu Aug 14 01:35:16 2014 +0200
udev: link-config - fix crash due to missing hwaddr
Reported by: master.nosferatu at gmail.com
commit 2f8557eb3649840d76d9eb7d688a3c5c2922d31c
Author: Tom Gundersen <teg at jklm.no>
Date: Thu Aug 14 01:28:35 2014 +0200
test: dhcp-server - fix test
Reported by Corey Hammerton on G+
commit a6f1e036de8f212f33ead7f5387c297afd8be26e
Author: Tom Gundersen <teg at jklm.no>
Date: Thu Aug 14 01:26:55 2014 +0200
sd-dhcp-server: linebreaks
Don't overflow unnecessarily.
commit 212bbb1798e5746a669dfba4a1732a4eabe4f2d8
Author: Tom Gundersen <teg at jklm.no>
Date: Thu Aug 14 00:22:27 2014 +0200
sd-event: do not arm timers unnecessarily
Rather than recalculating the next timeout on every loop, we only do it when something changed.
commit e92da1e5d0a3b38804e173af136ec7a076c7757e
Author: Lennart Poettering <lennart at poettering.net>
Date: Thu Aug 14 01:23:20 2014 +0200
networkctl: also use the same color logic when running "networkctl status" without arguments
commit d57c365bf8f09fbcc649e00f7060ff30809f67c2
Author: Lennart Poettering <lennart at poettering.net>
Date: Thu Aug 14 01:18:37 2014 +0200
networkctl: add the same color logic to "list" and "status" outputs
And always put operational state first, setup state second.
commit ab1525bc2d92780b4dc64bc5b9cdb52594e2df7d
Author: Lennart Poettering <lennart at poettering.net>
Date: Thu Aug 14 01:10:08 2014 +0200
networkctl: name setup state variable setup_state
commit 2368512a31f55e107f0cfb6e68cd4057648fd2de
Author: Lennart Poettering <lennart at poettering.net>
Date: Thu Aug 14 01:08:46 2014 +0200
networkctl: update column header to new 'setup' state naming
commit db97a66aa69925f7403ba3c433e86320d136567d
Author: Lennart Poettering <lennart at poettering.net>
Date: Thu Aug 14 01:00:57 2014 +0200
resolved: enable LLMNR
THis was accidentally broken, as we truned off LLMNR far to frequently,
where we only wanted to turn off LLMNr on IPV6 on kernels lacking
support for it.
commit 51323288fc628a5cac50914df915545d685b793e
Author: Lennart Poettering <lennart at poettering.net>
Date: Thu Aug 14 01:00:15 2014 +0200
resolved: allow passing on which protocol, family and interface to look something up
Also, return on which protocol/family/interface we found something.
commit 12e34d9d58ed4d97e7bdf8c23494c51ee5ec388e
Author: Umut Tezduyar Lindskog <umut.tezduyar at axis.com>
Date: Tue Aug 5 12:17:09 2014 +0200
ldconfig: add configure option to disable
commit 438ca2bbd4dc1de6193ec61f3c12e19cded7921d
Author: Tom Gundersen <teg at jklm.no>
Date: Wed Aug 13 22:55:49 2014 +0200
sd-networkd: rename link_get_state to link_get_setup_state
Suggested by Kay and Lennart.
commit d3df0e3982777fd5de8cffaa585eba0af3773c08
Author: Tom Gundersen <teg at jklm.no>
Date: Wed Aug 13 22:44:35 2014 +0200
sd-network: rename operstates 'down' -> 'off' and 'up' -> 'no-carrier'
Suggested by Lennart and Kay.
commit d6731e4c7964ee2860d4f5abdb0b52acd7a66960
Author: Tom Gundersen <teg at jklm.no>
Date: Wed Aug 13 22:37:45 2014 +0200
sd-network: /_get_link_/_link_get_/
The link is the 'object', so make this in line with our usual naming convention.
Suggested by Kay and Lennart.
commit 5323ead145304785121b72dcbc1c244303de7575
Author: Daniel Buch <boogiewasthere at gmail.com>
Date: Wed Aug 13 22:02:27 2014 +0200
networkctl: color status dump without link name
Lets mimic colored operational state dump as if link name is appiled
commit c572db3ccf6678426c8c1c714b594973db84eebe
Author: Lennart Poettering <lennart at poettering.net>
Date: Wed Aug 13 21:07:07 2014 +0200
timesyncd: don't trip up if networkd isn't running and can't tell us any NTP servers
commit b9c488f60050248b35640f28e4d00958702ba1c3
Author: Eelco Dolstra <eelco.dolstra at logicblox.com>
Date: Wed Aug 6 13:14:51 2014 +0200
journald: Fix off-by-one error in "Missed X kernel messages" warning
On receiving a message, "kernel_seqnum" is set to "serial + 1". So
subtracting 1 will cause messages like "Missed 0 kernel messages",
which should be "Missed 1 kernel messages".
commit 48776bdacd17e1c2f73238ff8bb6b327760b526d
Author: Lennart Poettering <lennart at poettering.net>
Date: Wed Aug 13 20:02:38 2014 +0200
sd-network: bring comments up-to-date
commit 7c96ab1d2484ab2df3c6a84f1a1d2e076f469085
Author: Lennart Poettering <lennart at poettering.net>
Date: Wed Aug 13 20:01:19 2014 +0200
mount-setup: fix counting of early mounts without SMACK
http://lists.freedesktop.org/archives/systemd-devel/2014-August/021772.html
commit f6e81de4947e024d6b66c3abaafd5bb237abc93a
Author: Lennart Poettering <lennart at poettering.net>
Date: Wed Aug 13 20:01:00 2014 +0200
update TODO
commit 5e8b767df6e18444d5aff2987b5e5603361ed528
Author: Lennart Poettering <lennart at poettering.net>
Date: Wed Aug 13 18:53:05 2014 +0200
journald: also increase the SendBuffer of /dev/log to 8M
http://lists.freedesktop.org/archives/systemd-devel/2014-August/021825.html
commit 5caeb7d6854e02321e0e00588e17412b161ef176
Author: Harald Hoyer <harald at redhat.com>
Date: Wed Aug 13 16:45:53 2014 +0200
switch-root: not only mkdir the parents but the target dir
switch-root would only mkdir the parents of the mount move directories.
With this patch, the mount move target directory is created to make
switch-root to an empty root directory work.
commit 587f21d8c0ec16f0812fd457b18cb29a9ed60229
Author: Denis Kenzior <denkenz at gmail.com>
Date: Sat Aug 9 02:06:21 2014 -0500
bus-bloom: Fix bloom filter calculation
i is being used incorrectly. It is used to refer to the number of
indexes calculated so far (out of k). However, it is also incremented
when a new hash key is being used. This means that the results are
inconsistent with the desired behavior described in PORTING-DBUS1
document.
The expected result is that for the default values of m and k (512, 8)
the 1st hash key should produce 4 indexes. The second hash key is used
for the next 4 and overall 8 indexes into m are calculated.
The current behavior results in 6 indexes being calculated, 4 coming
from hash key 1 and 2 others from hash key 5.
commit dae1e55b54800d6c5a0be8beab909f90ff5c3c72
Author: Tom Gundersen <teg at jklm.no>
Date: Wed Aug 13 15:43:57 2014 +0200
TODO
commit 4acf8f151f1edc082394950efb52238030c2c6e6
Author: Tom Gundersen <teg at jklm.no>
Date: Wed Aug 13 15:40:59 2014 +0200
TODO
commit 636db02d54b64fb5bbad86c8015a9ef51299693b
Author: Tom Gundersen <teg at jklm.no>
Date: Wed Aug 13 15:36:11 2014 +0200
networkctl: add colors to admin state and fix alignment
It is useful to color in the admin state both to easily spot failed links, but also to quickly
distinguish between links that are fully configured and in degraded mode (only IPv4LL) or in
degraded mode and still waiting for DHCP.
commit 8434fd5cf23f998a0f3a0f947a4308a8c18ba7a5
Author: Tom Gundersen <teg at jklm.no>
Date: Wed Aug 13 15:34:27 2014 +0200
sd-network: rename state INITALIZING to PENDING and expose as any other state
This is the state when we are waiting for udev to initialize the device, and waiting for
libudev and rtnl to be in sync. In the future we probably will also be waiting for nl80211.
At this point we do not yet have enough information to know whether or not networkd should
be handling the device.
commit 90ab504273a7f186ebb76e6acfb778b4e0d7c91b
Author: Lennart Poettering <lennart at poettering.net>
Date: Wed Aug 13 15:00:12 2014 +0200
resolved: skip IPv6 LLMNR if IPv6 is not available
commit 92683ad2e28c79891e4123d9a421b018dc58870c
Author: David Herrmann <dh.herrmann at gmail.com>
Date: Mon Aug 11 18:17:54 2014 +0200
login: share VT-signal handler between sessions
sd-event does not allow multiple handlers for a single signal. However,
logind sets up signal handlers for each session with VT_PROCESS set (that
is, it has an active controller). Therefore, registering multiple such
controllers will fail.
Lets make the VT-handler global, as it's mostly trivial, anyway. This way,
the sessions don't have to take care of that and we can simply acknowledge
all VT-switch requests as we always did.
commit 38de08a7e476bb78b02fa5480ca3d038eedd66e7
Author: Tom Gundersen <teg at jklm.no>
Date: Tue Aug 12 23:12:09 2014 +0200
networkd: dhcp4 - fix copy-paste error
Reported by poma.
commit ccf1c0299fbe5f6b59e494aabc9883948b7a9df1
Author: Tom Gundersen <teg at jklm.no>
Date: Tue Aug 12 20:50:13 2014 +0200
networkd: disable ipv4ll default routes by default
This causes machines without connectivity to hang where they would otherwise fail. Keep it
opt-in for now, but consider whether we sholud just drop it.
commit 54cba0b16cdc94d5c21e8d805a4ade1255d43bc9
Author: Tom Gundersen <teg at jklm.no>
Date: Tue Aug 12 20:00:34 2014 +0200
sd-network: split the operstate 'unknown' into 'down' and 'up'
commit 3c9b886068d99e5d3cbabcac32a4decf37244c54
Author: Tom Gundersen <teg at jklm.no>
Date: Fri Aug 8 12:12:17 2014 +0200
networkd: link - split out dhcp4 handling
commit 68ba38770640413b4fa06773447666eb88a38d4c
Author: Tom Gundersen <teg at jklm.no>
Date: Tue Aug 12 13:15:11 2014 +0200
udev: link-config - fix naming policy
Don't exit the name-finding loop when the 'kernel' policy is detected. We should
still find a fallback name if possible in the (very likely) case that no kernel
name is set at all.
commit 464cf22f17e0cf2d8bfa6d72b5e7a662d634f149
Author: Tom Gundersen <teg at jklm.no>
Date: Tue Aug 12 13:13:12 2014 +0200
udev: link-config - whitespace
Don't overflow 80 cols unneccessarily (we are ok with doing it when it improves readability, but that's not the case here).
commit 77a008c090faf4a4fbeb26d0437913364afee258
Author: Tom Gundersen <teg at jklm.no>
Date: Wed Aug 6 15:54:25 2014 +0200
networkd: link - fix IN_SET usage
commit b22d8a00f48f3c5fc4510b4acd3e1a43e731e592
Author: Tom Gundersen <teg at jklm.no>
Date: Wed Aug 6 15:54:03 2014 +0200
networkd: link - split out ipv4ll handling
commit 431ca2cebbfbf046699b5cb9308e9271b464ed36
Author: Tom Gundersen <teg at jklm.no>
Date: Wed Aug 6 13:48:11 2014 +0200
networkd: link - make check for whether addresses/routes are being configured implicit
commit 0b1831c20c4d30077b6560b2b7d88bdb220d5cef
Author: Tom Gundersen <teg at jklm.no>
Date: Wed Aug 6 12:50:53 2014 +0200
networkd: split out networkd-link.h
commit ed220efd6657822332b9563ec53c5ab9f3c33220
Author: Lennart Poettering <lennart at poettering.net>
Date: Tue Aug 12 19:50:36 2014 +0200
update TODO
commit 7964ca43478d8c69263dd8de244131c97bb4cedd
Author: Lennart Poettering <lennart at poettering.net>
Date: Tue Aug 12 19:49:15 2014 +0200
man: minimal updates to resolved.conf man page
commit 874ff7bf4d6fe693542209f127d23cd89adc499b
Author: Lennart Poettering <lennart at poettering.net>
Date: Tue Aug 12 19:48:24 2014 +0200
timesyncd: beef up NTP server selection logic, and acquire NTP servers from DHCP
commit 96e6e394431dcc1db52847be311e2c8e61d7a9d6
Author: Lennart Poettering <lennart at poettering.net>
Date: Tue Aug 12 19:33:09 2014 +0200
resolved: return exit code of event loop
commit 3e684349c2cead2e6fd2f816c34eb17daba23a49
Author: Lennart Poettering <lennart at poettering.net>
Date: Tue Aug 12 19:32:55 2014 +0200
resolved: unify logic how we flush out DNS servers we learnt
commit 96c76ac49c28ba397fc8db3a40505b875c65ef16
Author: Lennart Poettering <lennart at poettering.net>
Date: Tue Aug 12 19:29:38 2014 +0200
sd-resolve: scale number of threads by queries currently being processed, rather than number of queries currently referenced
This way a query that blocks for a longer time, and whose reference has
been dropped won't block subsequent lookups from finishing.
commit 85529c815b47c22839e0f148af67fd37e977cbfa
Author: Lennart Poettering <lennart at poettering.net>
Date: Tue Aug 12 19:29:27 2014 +0200
sd-resolve: fix allocation if query ids, never reuse them
commit 502fe44ea44fdbe2282fbe0625bb2e01777425c0
Author: Lennart Poettering <lennart at poettering.net>
Date: Tue Aug 12 19:28:32 2014 +0200
sd-resolve: keep floating query referenced while we access it
commit 84e51726a38e133ca42d2f30f0668d3921b210cb
Author: Lennart Poettering <lennart at poettering.net>
Date: Tue Aug 12 16:58:56 2014 +0200
timesyncd: split up into multiple source file
The source file got much too large, hence split up the sources into
multiple per-object files, similar in style to resolved.
commit f7d68aa8c9430dfddee5f913f93b405a5d75723a
Author: Lennart Poettering <lennart at poettering.net>
Date: Tue Aug 12 16:19:37 2014 +0200
networkctl: make networkctl status without link name show all local IP addresses
commit 18af33753abc822ddf61aa37ff49368b7006fa79
Author: Lennart Poettering <lennart at poettering.net>
Date: Tue Aug 12 16:12:53 2014 +0200
update TODO
commit 6d0c65ffb4f82e8c6dceb453919b3db54343fc27
Author: Lennart Poettering <lennart at poettering.net>
Date: Tue Aug 12 16:03:45 2014 +0200
networkctl: when outputing a list fo links, sort them by ifindex
commit b873d33ec9583c92a0c2bc6807d010720fa31595
Author: Lennart Poettering <lennart at poettering.net>
Date: Tue Aug 12 15:41:13 2014 +0200
update TODO
commit df3fb561b2df486a495a5f0bcc83168bd1860533
Author: Lennart Poettering <lennart at poettering.net>
Date: Tue Aug 12 15:41:01 2014 +0200
networkctl: add a bit of color to the output
commit 9085f64a6694f2928c79fcce365edb1dca6937d4
Author: Lennart Poettering <lennart at poettering.net>
Date: Tue Aug 12 15:19:30 2014 +0200
networkctl: add new switch "-a" to "networkctl status" to show verbose status of all local links
commit 1b17f21198e79cabe9e196cff69a9d96653bcdd3
Author: Lennart Poettering <lennart at poettering.net>
Date: Tue Aug 12 15:08:09 2014 +0200
networkctl: properly format MAC addresses
commit 03cc0fd1431b82e59c11ae12a274c1f2df23169d
Author: Lennart Poettering <lennart at poettering.net>
Date: Tue Aug 12 15:05:21 2014 +0200
sd-network: add API to output all collected system-wide NTP and DNS servers
Also, output the collected information in "networkctl".
commit f01e5736f1555eec9183e48448fa3454f265b73e
Author: Lennart Poettering <lennart at poettering.net>
Date: Tue Aug 12 14:54:32 2014 +0200
timesyncd: move the generic sockaddr_equal() call to socket-util.h
commit c0c743cb3df7197b51bb89cc3c8ca7ed16d06396
Author: Lennart Poettering <lennart at poettering.net>
Date: Tue Aug 12 13:01:58 2014 +0200
networkd: expose a global list of DNS and NTP servers in the state file
commit 87f5a19343acf8ba697acc5a62bdb1a2b8c9eda3
Author: Lennart Poettering <lennart at poettering.net>
Date: Tue Aug 12 12:21:10 2014 +0200
resolved: filter out duplicate DNS servers when writing resolv.conf
commit c2d6bd61ee77b59566116afe6e20513d19945ed4
Author: Lennart Poettering <lennart at poettering.net>
Date: Tue Aug 12 11:55:06 2014 +0200
networkd: update manager_save() to use fflush_and_check() to simplify things a bit
commit bf1594f54ea4b49eee95a16796ec11c55314b2a4
Author: Thomas Hindoe Paaboel Andersen <phomes at gmail.com>
Date: Tue Aug 12 04:42:33 2014 +0200
resolved: initialize counter
introduced in: a407657425a3e47fd2b559cd3bc800f791303f63
commit 91d3efedddd8d65ea5d8afb5499d925c98205ffd
Author: Lennart Poettering <lennart at poettering.net>
Date: Tue Aug 12 02:33:37 2014 +0200
networkd: fix build
commit a903fd34c0e30b82f4264ea25553535edefdee08
Author: Lennart Poettering <lennart at poettering.net>
Date: Tue Aug 12 02:12:05 2014 +0200
sd-network: move sd-network API into libsystemd proper
In contrast to the DHCP/IPv4LL/ICMP6 APIs sd-network is not a protocol
implementation but a client API for networkd, hence move it into
libsystemd proper.
commit 7bfe1e9cb0a63ecaa13ef59a37e65698ba3121d8
Author: Lennart Poettering <lennart at poettering.net>
Date: Tue Aug 12 02:04:17 2014 +0200
sd-network: remove client-side dhcp API
The networkd should abstract the difference between DHCP supplied and
configured data, and hence the DHCP lease concept should not exposed on
the client side.
Should we want to support arbitrary DHCP fields one day, we can add a
new sd_network_get_link_dhcp_field() call or so.
commit ee8c45689526ca973407cbb77bce7b96a062c40b
Author: Lennart Poettering <lennart at poettering.net>
Date: Tue Aug 12 01:41:42 2014 +0200
networkd: add minimal client tool "networkd" to query network status
In the long run this should become a full fledged client to networkd
(but not before networkd learns bus support). For now, just pull
interesting data out of networkd, udev, and rtnl and present it to the
user, in a simple but useful output.
commit 1cb5d1f31909c731d93568eb4838cb86e033d783
Author: Lennart Poettering <lennart at poettering.net>
Date: Tue Aug 12 01:43:23 2014 +0200
udev: modernize net_id builtin a bit
commit 6436165dbc500f14abfec738af28f87a71f6a12a
Author: Lennart Poettering <lennart at poettering.net>
Date: Mon Aug 11 22:56:52 2014 +0200
sd-network: rename the per-ifindex calls to sd_network_get_link_xxx()
This way we can introduce system-wide versions of these calls that are
called the same way, but without the "link" in the name.
commit 44e7b9492617408130d11ffa451c2660942974f6
Author: Lennart Poettering <lennart at poettering.net>
Date: Mon Aug 11 22:44:51 2014 +0200
networkd: monopolize in_addr utility functions in shared/in-addr-util.h
Primarily, this means we get rid of net_parse_inaddr(), and replace it
everywhere with in_addr_from_string() and in_addr_from_string_auto().
These functions do not clobber the callers arguments on failure, which
is more close to our usual coding style.
commit cedc8c44d43c8b6689ae5f5ebe1aabb7ad9755ba
Author: Lennart Poettering <lennart at poettering.net>
Date: Mon Aug 11 22:04:05 2014 +0200
timesyncd: when we don't know anything about the network state, assume we are online
This should provide better compatibility with systems that lack networkd
commit 17fdb7661b7564bc97201fa6fd30a11cba03201c
Author: Lennart Poettering <lennart at poettering.net>
Date: Mon Aug 11 20:15:14 2014 +0200
build-sys: add missing makefile symlinks
commit ee0e998e1ccb07cc90748e5edcb312f13e8a06f4
Author: Lennart Poettering <lennart at poettering.net>
Date: Mon Aug 11 20:14:27 2014 +0200
man: drop any reference to "syslog" as log target
commit 5168f84a29b9f0002c9d44133cc9830046bb0619
Author: Lennart Poettering <lennart at poettering.net>
Date: Mon Aug 11 20:13:38 2014 +0200
udev: never bypass our own logging framework and call vsyslog() directly from udev tools
commit c1dc6153c9426d98ddbcd8b5077f397f18ff1da7
Author: Lennart Poettering <lennart at poettering.net>
Date: Mon Aug 11 20:08:08 2014 +0200
log: never ever log to syslog from PID 1, log to the journal again
We don't support journal-less systems anyway, so let's avoid the
confusion.
commit 79c1afc67f973eaece8f1b7016e016bb33c256a7
Author: Lennart Poettering <lennart at poettering.net>
Date: Mon Aug 11 19:28:53 2014 +0200
man: improve documentation for StandardOutput= and StandardInput=
commit baccf3e40bab6c0b69992ae29c396930de4660c9
Author: Olivier Brunel <jjk at jjacky.com>
Date: Fri Aug 8 20:45:43 2014 +0200
login: set_controller should fail if prepare_vt fails
If controllers can expect logind to have "prepared" the VT (e.g. set it to
graphics mode, etc) then TakeControl() should fail if said preparation
failed (and session_restore_vt() was called).
(David: fixed up !CONFIG_VT case and errno-numbers)
commit 7e8185ef942de5acecfa4cda03d7d7711ddda992
Author: Lennart Poettering <lennart at poettering.net>
Date: Mon Aug 11 18:35:54 2014 +0200
fix a couple of more lazy "return -1"
Fix should strictly follow the rule to return negative errno-style
error codes from functions, hence let's fix more "return -1"-style
lazinesses.
commit d7bf74d9cccdc6ffa567ea0e08f814863610f88e
Author: Lennart Poettering <lennart at poettering.net>
Date: Mon Aug 11 18:24:43 2014 +0200
journal-remote: fix parsing of fd command line argument
commit fd006cce3861ce8321149dfd9210d65639e5e1dc
Author: Lennart Poettering <lennart at poettering.net>
Date: Mon Aug 11 18:24:28 2014 +0200
initctl: don't eat up error code
commit a2715692e22647428cceba3d4c300a85ddd4fadf
Author: Lennart Poettering <lennart at poettering.net>
Date: Mon Aug 11 18:24:08 2014 +0200
bootchart: use the bool type where appropriate
commit 4155f7d4be5053d5f34a26e5437fd85e1fe00fa3
Author: Lennart Poettering <lennart at poettering.net>
Date: Mon Aug 11 18:23:47 2014 +0200
bootchart: it's not OK to return -1 from a main program
commit 96ddbf819a5675dba23ffadc35099462fdb2579f
Author: Lennart Poettering <lennart at poettering.net>
Date: Mon Aug 11 16:41:05 2014 +0200
man: document that we look for both the instance's and the template's .d/ directory when looking for unit file drop-ins.
commit 0cdfd26ef826f8a595ab7d85ebc37894f4f3d940
Author: Lennart Poettering <lennart at poettering.net>
Date: Mon Aug 11 15:32:09 2014 +0200
util: avoid considering dpkg temporary files relevant for anything
https://bugs.freedesktop.org/show_bug.cgi?id=82453
commit 6a5c7b7e41a036bfdc2474b4583fcfdd358a6db6
Author: Lennart Poettering <lennart at poettering.net>
Date: Sun Aug 10 23:40:48 2014 +0200
timesyncd: always use CLOCK_BOOTTIME if we can
After all we want to compare a monotonically increasing clock with the
remote clock, hence we shouldn't ignore system suspend periods.
commit 31a339fd7f0e87376bade9ebd7ae32c58d34cf85
Author: Lennart Poettering <lennart at poettering.net>
Date: Sun Aug 10 23:40:18 2014 +0200
man: update resolved man pages a bit
commit 81663503e6769b4634b7d717ec8f112e26423f6f
Author: Lennart Poettering <lennart at poettering.net>
Date: Sun Aug 10 23:36:41 2014 +0200
man: extend timesycnd man page a bit
commit 556a22945fcc88ca27ae7ecc46c9bb2727e37895
Author: Lennart Poettering <lennart at poettering.net>
Date: Sun Aug 10 23:10:08 2014 +0200
resolved: when picking a new hostname make sure two hosts pick different ones
This way we can avoid always picking the same replacement hostnames when
picking one.
commit 4d91eec42d3ba547c4e2578df0d6fd568075647b
Author: Lennart Poettering <lennart at poettering.net>
Date: Sun Aug 10 22:48:16 2014 +0200
resolved: actually, the peer with the lower IP address wins conflicts
commit 3ef64445cdf12d7703aa79b39f3c170037d587c7
Author: Lennart Poettering <lennart at poettering.net>
Date: Sun Aug 10 22:28:12 2014 +0200
resolved: make sure we don't mark the wrong zone RRs conflicting
commit 2fb3034cb21c745ed4f9aa4cba57563f7f071466
Author: Lennart Poettering <lennart at poettering.net>
Date: Wed Aug 6 17:21:00 2014 +0200
resolved: be a bit more communicative about conflicts
commit c02091d23bd746c176220e8492eeb7c4c62c3e55
Author: Lennart Poettering <lennart at poettering.net>
Date: Wed Aug 6 17:00:14 2014 +0200
update TODO
commit 902bb5d8abb2a7d258741828d212ca549ab16950
Author: Lennart Poettering <lennart at poettering.net>
Date: Wed Aug 6 16:59:48 2014 +0200
resolved: verify all RRs when we come back from suspend
commit 82bd6dddc4a363a9c3c6f41eb46eb171a80dca27
Author: Lennart Poettering <lennart at poettering.net>
Date: Wed Aug 6 16:32:55 2014 +0200
resolved: destroy outstanding queries if the clients that initiated them die
commit 818f766b12e025683cf4fed12b3da2a025bb0b31
Author: Lennart Poettering <lennart at poettering.net>
Date: Wed Aug 6 16:32:17 2014 +0200
resolved: properly pass aborted transaction result back to clients
commit a407657425a3e47fd2b559cd3bc800f791303f63
Author: Lennart Poettering <lennart at poettering.net>
Date: Wed Aug 6 16:15:35 2014 +0200
resolved: implement full LLMNR conflict detection logic
commit 3ef77d0476046a660c1b4704140797c447e6ce3a
Author: Lennart Poettering <lennart at poettering.net>
Date: Wed Aug 6 16:14:53 2014 +0200
resolved: properly check return value of dns_resource_record_equal()
commit 15aa9b201c43d48b4f2a331d8a3ae9c06271a35f
Author: Daniel Mack <zonque at gmail.com>
Date: Sun Aug 10 21:46:24 2014 +0200
sd-bus: sync kdbus.h (ABI break)
commit 37d6781b315f1c84e9344b5c0199aa1cbb4c2d7a
Author: Harald Hoyer <harald at redhat.com>
Date: Fri Aug 8 16:54:13 2014 +0200
Added arch tuple for PPC64LE
Thanks to Brent Baude <bbaude at redhat.com>, who checked with the debian
guys, that this is correct and provided the patch.
commit 04b67d49254d956d31bcfe80340fb9df7ed332d3
Author: Tom Gundersen <teg at jklm.no>
Date: Tue Jul 15 17:57:43 2014 +0200
udev: link_setup - respect kernel name assign policy
Newer kernels export meta-information about the origin of an ifname. Respect this
from the ifname rename logic. We do not rename any interfaces that was originally
named by userspace, nor once which have already been renamed from userspace.
Moreover, we optionally do not (the default) rename interfaces which the kernel
claims to have named in a predictable way.
commit f3fc48150bb443f5b4623a819ebc2b39971a4f66
Author: Tom Gundersen <teg at jklm.no>
Date: Fri Aug 8 12:12:31 2014 +0200
core: loopback-setup - only up the loopback device
The kernel will set up the IP addresses for us, so don't duplicate that
in userspace.
commit fa9d4be3f1f4a792b2f3624c2a08fe9cc6ce6e54
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Thu Aug 7 21:48:57 2014 -0400
hwdb: update format description and document reloading
https://bugs.freedesktop.org/show_bug.cgi?id=82311
commit 5e34b37c9fec5da130f6549ddabd8a2af5c9faac
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Thu Aug 7 20:46:34 2014 -0400
man: correct references to DefaultTimeout*Sec
Noticed by thp on #systemd.
commit d1fab3fe88ae873b26b50359758776ad9e31968e
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Thu Aug 7 20:46:49 2014 -0400
core: warn when merged units have conflicting dependencies
A unit should not Conflict with itself. It also does not make
much sense for a unit to be After or Before itself, or to
trigger itself in some way.
If one of those dependency types is encountered, warn, instead
of dropping it silently like other dependency types.
% build/systemd-analyze verify test/loopy3.service
...
Dependency Conflicts dropped when merging unit loopy4.service into loopy3.service
Dependency ConflictedBy dropped when merging unit loopy4.service into loopy3.service
commit e66047ff62c971eefa32b42373420d61e3f2a9c1
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Thu Aug 7 20:42:58 2014 -0400
core: do not add dependencies to self
Adds a pair of files which cause a segfault (also with
systemd-analyze verify).
https://bugzilla.redhat.com/show_bug.cgi?id=1124843
commit 17a6dfa3be0ac9d9b84b57c8af66515b573fc1a4
Author: Thomas Hindoe Paaboel Andersen <phomes at gmail.com>
Date: Mon Aug 4 23:44:57 2014 +0200
bus-proxy: service_name_is_valid will never be < 0
commit 08b6604c0522d6f03d38897262f07a1907517d4e
Author: Lennart Poettering <lennart at poettering.net>
Date: Tue Aug 5 17:02:39 2014 +0200
update TODO
commit e56187ca4a4841bffdbf3f547d6aa3888d85b1a2
Author: Lennart Poettering <lennart at poettering.net>
Date: Tue Aug 5 17:02:23 2014 +0200
resolved: don't abort if a transaction is aborted because its scope is removed
commit 6e0684729420912df019cc64d3f8a3c8290cc5f1
Author: Lennart Poettering <lennart at poettering.net>
Date: Tue Aug 5 17:01:33 2014 +0200
resolved: add 100ms initial jitter to all LLMNR requests
commit aea2429d6ec32261dbf6b9caa125fcc6ea9ea76a
Author: Lennart Poettering <lennart at poettering.net>
Date: Tue Aug 5 16:34:45 2014 +0200
resolved: enforce ratelimit on LLMNR traffic
commit efb4bf4e419e14a13eead6289ea40165579a816f
Author: Martin Pitt <martin.pitt at ubuntu.com>
Date: Tue Aug 5 12:29:27 2014 +0200
keymap: Fix HP Pavillon DV7
Properly disable scan code 94 instead of producing KEY_0.
https://launchpad.net/bugs/1322770
commit 7925709c9a29363d38c97a30af85830d1be0d4bf
Author: Martin Pitt <martin.pitt at ubuntu.com>
Date: Tue Aug 5 10:40:46 2014 +0200
udev-builtin-keyboard: Allow numeric key codes
Like with the old udev rules, allow hwdb entries to specify numeric key codes.
Based on a patch from Mircea Miron.
https://launchpad.net/bugs/1247584
commit 7b85d72f824cdf34554b349712b6b8e39095dbd4
Author: Lennart Poettering <lennart at poettering.net>
Date: Tue Aug 5 04:18:23 2014 +0200
resolved: don't consider tentative addresses relevant
commit cc7844e78751916acb639443c119763cafe2c684
Author: Lennart Poettering <lennart at poettering.net>
Date: Tue Aug 5 04:18:01 2014 +0200
resolved: fix a message typo
commit d84b686f06a7f724c12dcace0ab5cb82d01885f9
Author: Lennart Poettering <lennart at poettering.net>
Date: Tue Aug 5 04:17:45 2014 +0200
resolved: stop the prober when we detect a conflict in LLMNR
commit 60eb3f7cf1b9c183559ce5c9a21cf2cfd6e6da05
Author: Lennart Poettering <lennart at poettering.net>
Date: Tue Aug 5 04:16:26 2014 +0200
resolved: don't override zone item state after starting the probe
After all, the probe might be finished immeidately (due to resources,
...), and we shouldn't then set the state back to probing.
commit 13b551acb68695716cb4029531b5dec0759efa53
Author: Lennart Poettering <lennart at poettering.net>
Date: Tue Aug 5 04:15:45 2014 +0200
resolved: when sending fails, don't try connecting to the next DNS server if we actually use LLMNR as protocol
commit 8c0b803b97bb0ee6603d9be85fb6b69cd6081eaf
Author: Lennart Poettering <lennart at poettering.net>
Date: Tue Aug 5 04:13:37 2014 +0200
journald: remove redundant newlines
commit a174f94d529c7ae9be589867308b669ec9b4dcc0
Author: Lennart Poettering <lennart at poettering.net>
Date: Tue Aug 5 03:37:56 2014 +0200
journald: properly sum up entry size counter
We should read the entry size before moving to the next iovec, not
after.
commit dc4d47e2c79aafa3ef646e32ff3422c4ce935c1b
Author: Lennart Poettering <lennart at poettering.net>
Date: Tue Aug 5 01:51:40 2014 +0200
resolved: never reuse transactions for probing that are already completed based on cached data
commit 4d926a69bc27b8fbd4891bb10c03336bd8d93b7a
Author: Lennart Poettering <lennart at poettering.net>
Date: Tue Aug 5 01:42:15 2014 +0200
resolved: bypass local cache when we issue a transaction for verification purposes
commit cd1b20f90abb1e49d60d8c3f4a7665ca93bea436
Author: Lennart Poettering <lennart at poettering.net>
Date: Tue Aug 5 01:38:13 2014 +0200
resolved: if there's already an RR established that has the same name of an RR to be established, skip probing the name
After all, what has been probed once, doesn't need to be probed again.
commit 24fb7c1fa633e90e4297e0715546c0bc47118ba9
Author: Thomas Hindoe Paaboel Andersen <phomes at gmail.com>
Date: Mon Aug 4 23:21:06 2014 +0200
sysusers: isempty will never be < 0
looks like a typo from 1b99214789101976d6bbf75c351279584b071998
commit 8e211000025940b770794abf5754de61b4add0af
Author: Thomas Hindoe Paaboel Andersen <phomes at gmail.com>
Date: Mon Aug 4 23:13:31 2014 +0200
test: use fabs on doubles
commit 21d73c87b09ec2b8642424bc714ce9af3da4fc40
Author: Lennart Poettering <lennart at poettering.net>
Date: Mon Aug 4 23:08:49 2014 +0200
resolved: actually read the initial state data from networkd when we initialize
commit 252f2b9e854dced09cf0968417d1868e5fa90a06
Author: Lennart Poettering <lennart at poettering.net>
Date: Mon Aug 4 23:08:31 2014 +0200
man: bring resolved.conf up-to-date
commit 23c4091dc2b85d117512e89233fdeb47d1ff3d92
Author: Lennart Poettering <lennart at poettering.net>
Date: Mon Aug 4 23:08:13 2014 +0200
update TODO
commit 19b50b5ba7ee8c1bfb330377309e4bab7a7531d8
Author: Lennart Poettering <lennart at poettering.net>
Date: Mon Aug 4 23:08:03 2014 +0200
resolved: read the per-interface LLMNR setting from networkd and act on it
commit b3df0b34c14ffdaf8f2d72c08ff59da14cd6f7d7
Author: Lennart Poettering <lennart at poettering.net>
Date: Mon Aug 4 23:06:05 2014 +0200
sd-network: when the LLMNR setting is not known for an interface consider that as ENODATA
ENODATA should be returned whenever we have no idea about something. A
missing LLMNR setting can only really happen during upgrades, in whichc
ase we really have no idea, so let's turn this into another ENODATA
case.
commit 2cd666f8c93d2fc27566bd16f21fba1043735729
Author: Lennart Poettering <lennart at poettering.net>
Date: Mon Aug 4 23:05:26 2014 +0200
sd-network: actually open the state file in sd_network_get_llmnr()
commit 59b8f6b628145586e87b8a4f6e29c755ad7d61ed
Author: Tom Gundersen <teg at jklm.no>
Date: Mon Aug 4 20:57:02 2014 +0200
sd-dhcp-server: always send out ROUTER and SUBNET_MASK
For now we simply take these values from the server's address.
commit 72d314c8d80f0816afce6ba72cd27ec7ff1c73c1
Author: Lennart Poettering <lennart at poettering.net>
Date: Mon Aug 4 20:01:00 2014 +0200
update TODO
commit f0e1546763304aedc90e91d70dab9eeb7c966cf8
Author: Lennart Poettering <lennart at poettering.net>
Date: Mon Aug 4 19:59:05 2014 +0200
resolved: fix order in which we destroy manager resources
commit edc501d4674dadc304d45a7e1c5b69e207eb8cd4
Author: Lennart Poettering <lennart at poettering.net>
Date: Mon Aug 4 19:48:03 2014 +0200
resolved: when there's already somebody listening on the LLMNR ports, simple disable LLMNR and warn, but continue
This allows us to run resolved inside an nspawn container that shares
the network namespace with the host, if there's already an instance
running.
commit 4f758c23981342f1fb838f4b2630812eb89a3faa
Author: Lennart Poettering <lennart at poettering.net>
Date: Mon Aug 4 19:15:07 2014 +0200
nspawn: make sure that when --network-veth is used both the host and the container side get fixed MAC addresses
commit 3a6fb33c54bc64398e0af1c9d7c74a6b614a849d
Author: Lennart Poettering <lennart at poettering.net>
Date: Mon Aug 4 19:05:06 2014 +0200
machined: fix address API signatures
commit e70bc43cdf75b36e7ad3d29e9a6f8ee1461e7d5e
Author: Lennart Poettering <lennart at poettering.net>
Date: Mon Aug 4 18:57:37 2014 +0200
machine: make sure unpriviliged "machinectl status" can show the machine's OS version
commit e98bbfd2074e2b1079b7059341eac25741baf319
Author: Kay Sievers <kay at vrfy.org>
Date: Mon Aug 4 18:15:34 2014 +0200
udev: path_id - suppress ID_PATH for devices with an unknown parent device type
https://bugs.launchpad.net/ubuntu/+source/systemd/+bug/1321816
commit bd8f65387673e29f46136a4ed172097035002c23
Author: Tom Gundersen <teg at jklm.no>
Date: Sun Aug 3 18:45:07 2014 +0200
networkd: add and expose per-link LLMNR config option
commit 9ccde88c5ae32991e73fbdcc0a75f60bc99327d6
Author: Lennart Poettering <lennart at poettering.net>
Date: Mon Aug 4 16:25:14 2014 +0200
resolve-host: properly align long arguments in help text
commit 249968612f16a71df909d6e73785c18a9ff36a65
Author: Lennart Poettering <lennart at poettering.net>
Date: Mon Aug 4 16:22:09 2014 +0200
bus: always explicitly close bus from main programs
Since b5eca3a2059f9399d1dc52cbcf9698674c4b1cf0 we don't attempt to GC
busses anymore when unsent messages remain that keep their reference,
when they otherwise are not referenced anymore. This means that if we
explicitly want connections to go away, we need to close them.
With this change we will no do so explicitly wherver we connect to the
bus from a main program (and thus know when the bus connection should go
away), or when we create a private bus connection, that really should go
away after our use.
This fixes connection leaks in the NSS and PAM modules.
commit ef392da6c56cdfff35265403192f051af257b3f8
Author: Ansgar Burchardt <ansgar at debian.org>
Date: Mon Jul 28 18:57:30 2014 +0200
Correct references to ProtectSystem and ProtectHome in documentation
commit 61b385c616633f12339411b68be29501fdb5fa18
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Sun Aug 3 23:40:00 2014 -0400
terminal: avoid warning about signed-unsigned comparison
commit 590baf91f3fc9f0edd7986c66da00be10e48a25d
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Sun Aug 3 23:41:45 2014 -0400
resolve-host: fix missed search&replace
commit fa1c4b518ec7d8ec2d647213ee651cde4d6c9d7e
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Sun Aug 3 22:50:00 2014 -0400
Fix misuse of uint64_t as size_t
They have different size on 32 bit, so they are really not interchangable.
commit 1f2b7175cf84bdbef6ee6917224658ba2adf43bf
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Sun Aug 3 22:11:34 2014 -0400
util.h: fix typo
commit 151226ab4bf276d60d51864330a99f886b923697
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Sun Aug 3 18:17:22 2014 -0400
resolved: RRSIG records
commit ff3d6560bead6879a2fed1bf99bfe8273b3723f1
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Sun Aug 3 16:44:49 2014 -0400
resolved: add identifiers for dnssec algorithms
commit 8db0d2f5c37e7e8f5bfce016cfdad7947a3ea939
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Sun Aug 3 16:05:41 2014 -0400
resolved: DNSKEY records
commit de292aa1dd1942e151ff034fcb88504a86742f97
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Sun Aug 3 14:02:04 2014 -0400
resolve-host: make arg_type an int
We are using it also to store _DNS_TYPE_INVALID, so it should be signed.
commit 7263f72499e962b3fd54cdb7c79d49ca72121ede
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Fri Aug 1 19:37:16 2014 -0400
resolve: add more record types and convert to gperf table
We are unlikely to evert support most of them, but we can at least
display the types properly.
The list is taken from the IANA list.
The table of number->name mappings is converted to a switch
statement. gcc does a nice job of optimizing lookup (when optimization
is enabled).
systemd-resolve-host -t is now case insensitive.
commit fd00a088216f6d6a6c502faf6b46c1e2ae7cbc54
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Fri Aug 1 19:36:48 2014 -0400
build-sys: use a common rule for some gperf commands
commit 23432a1c249b9c513e438bffe9778a7ce2ee74fe
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Fri Aug 1 19:36:33 2014 -0400
resolved: align last rr column
commit 1d749d044bf0e95697b6649e046aab82b0f02aa0
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Sun Aug 3 12:52:03 2014 -0400
tty-ask-password-agent: modernization
commit 601185b43da638b1c74153deae01dbd518680889
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Sat Aug 2 11:12:21 2014 -0400
Unify parse_argv style
getopt is usually good at printing out a nice error message when
commandline options are invalid. It distinguishes between an unknown
option and a known option with a missing arg. It is better to let it
do its job and not use opterr=0 unless we actually want to suppress
messages. So remove opterr=0 in the few places where it wasn't really
useful.
When an error in options is encountered, we should not print a lengthy
help() and overwhelm the user, when we know precisely what is wrong
with the commandline. In addition, since help() prints to stdout, it
should not be used except when requested with -h or --help.
Also, simplify things here and there.
commit 75cd513ef830d8e00d0d2d6a64917fec533315db
Author: Thomas Hindoe Paaboel Andersen <phomes at gmail.com>
Date: Sun Aug 3 22:41:25 2014 +0200
resolved: avoid possible dereference of null pointer
In dns_scope_make_reply_packet the structs q, answer, and soa can be
null. We should check for null before reading their fields.
commit 621ac3d2cc8f37169166df9c7f379b0cb6b17e36
Author: Thomas Hindoe Paaboel Andersen <phomes at gmail.com>
Date: Sun Aug 3 19:45:20 2014 +0200
sd-dhcp-server: avoid returning garbage value
Force renewing with a pool size of 0 would return the uninitialized r.
commit c15fb62a731f1a457af94e60ac6a4d23f219a8f6
Author: Thomas Hindoe Paaboel Andersen <phomes at gmail.com>
Date: Sun Aug 3 19:30:38 2014 +0200
sd-dhcp-server: check if r < 0
commit be63641349b1350c6b33976791eb89af7427de7b
Author: Thomas Hindoe Paaboel Andersen <phomes at gmail.com>
Date: Sun Aug 3 09:39:30 2014 +0200
resolve-host: use correct format specifier
commit e850d8e1acad4b06ba212145fee67932a3417cd6
Author: Thomas Hindoe Paaboel Andersen <phomes at gmail.com>
Date: Sat Aug 2 23:38:01 2014 +0200
resolved: remove unused variables
commit 23f25b1496c31ef4c20b8f3ee8328f7b1d5f3a54
Author: Dan Dedrick <dan.dedrick at gmail.com>
Date: Tue Jul 29 15:31:23 2014 -0400
switch-root: umount the old root correctly
The unmount occurs after the pivot_root, so the path used to unmount
should take into account the new root directory. This will allow the
umount to actually succeed.
commit 4212a3375e03fd12cb407b34cab59dbe4ed9f4eb
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Sun Aug 3 01:28:21 2014 -0400
nspawn: fix truncation of machine names in interface names
Based on patch by Michael Marineau <michael.marineau at coreos.com>:
When deriving the network interface name from machine name strncpy was
not properly null terminating the string and the maximum string size as
returned by strlen() is actually IFNAMSIZ-1, not IFNAMSIZ.
commit 9a6f36c08f1ff93ff861e6371e081122a564c900
Author: Karel Zak <kzak at redhat.com>
Date: Thu Jul 31 10:15:40 2014 +0200
bootchart: ask for --rel when failed to initialize graph start time
We always read system uptime before log start time. So the uptime
should be always smaller number, except it includes system suspend
time. It seems better to ask for --rel and exit() than try to be
smart and try to recovery from this situation or generate huge
messy graphs.
commit c358d728e7d6bf38a0176a9d5d013c6e972cddbf
Author: Karel Zak <kzak at redhat.com>
Date: Thu Jul 31 10:15:39 2014 +0200
bootchart: don't parse /proc/uptime, use CLOCK_BOOTTIME
* systemd-bootchart always parses /proc/uptime, although the
information is unnecessary when --rel specified
* use /proc/uptime is overkill, since Linux 2.6.39 we have
clock_gettime(CLOCK_BOOTTIME, ...). The backend on kernel side is
get_monotonic_boottime() in both cases.
* main() uses "if (graph_start <= 0.0)" to detect that /proc is
available.
This is fragile solution as graph_start is always smaller than zero
on all systems after suspend/resume (e.g. laptops), because in this
case the system uptime includes suspend time and uptime is always
greater number than monotonic time. For example right now difference
between uptime and monotonic time is 37 hours on my laptop.
Note that main() calls log_uptime() (to parse /proc/uptime) for each
sample when it believes that /proc is not available. So on my laptop
systemd-boochars spends all live with /proc/uptime parsing +
nanosleep(), try
strace /usr/lib/systemd/systemd-bootchart
to see the never ending loop.
This patch uses access("/proc/vmstat", F_OK) to detect procfs.
commit 799a8f39d8eb9ea725e85a598c0f5dbd658c8ba7
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Sun Aug 3 01:12:30 2014 -0400
journal-remote: rename KEY_FILE to avoid confict with <linux/input.h>
commit e72f054eb531418f99cd6d1d48d3542d1f95e07d
Author: Umut Tezduyar Lindskog <umut.tezduyar at axis.com>
Date: Wed Jul 30 09:02:14 2014 +0200
ldconfig: dont run it if ldconfig is not installed
commit 7bed7f0e3b1f9596aedb64657e432e5b267adebb
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Sun Aug 3 00:27:25 2014 -0400
Move BTRFS_IOC_DEVICES_READY to missing.h
commit dced15575f7bf172e3c9d798c43477539525558c
Author: Simon McVittie <simon.mcvittie at collabora.co.uk>
Date: Fri Aug 1 15:53:07 2014 +0100
util.h: include missing.h, for struct file_handle
This breaks udev-builtin-btrfs.c, which reinvents some of missing.h,
so use missing.h there too.
[zj: removed #include "config.h" and wrapped #include <linux/btrfs.h>
in ifdef HAVE_LINUX_BTRFS_H as discussed on the mailing list.]
commit 0943f4b7b22fb676fcd9ede50f8133bf6d4a270b
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Sat Aug 2 23:50:22 2014 -0400
build-sys: fix conftest.c to work on arm
All tests for compiler support were failing with:
/usr/bin/ld: /tmp/ccwnVc2A.o: relocation R_ARM_MOVW_ABS_NC against `a' can not be used when making a shared object; recompile with -fPIC
commit ac9c87dbc4c3950c55f6685db669f5f34957e09d
Author: Tom Gundersen <teg at jklm.no>
Date: Fri Aug 1 22:32:12 2014 +0200
Revert "libudev: use get_*_creds from shared rather than util_lookup_*"
This reverts commit a56ba6158b9649e01226dfaf3ff7082c82571090.
The commit was pushed in error.
commit 7b4c2ee75faf08b7a415337b46efc670f986128a
Author: Lennart Poettering <lennart at poettering.net>
Date: Fri Aug 1 19:48:02 2014 +0200
resolved: always drop multicast membership before adding one
This is apparently necessary on some devices, such as veth.
commit 747c0ff5648b707abb601f58eefcfd92a7d41695
Author: Lennart Poettering <lennart at poettering.net>
Date: Fri Aug 1 19:25:06 2014 +0200
resolved: IPV6_UNICAST_IF may fail if we already are bound to a device, like we are for link-local addresses
commit 919881496856e2e474774e6ed2d29c25a48c0ff5
Author: Lennart Poettering <lennart at poettering.net>
Date: Fri Aug 1 18:55:56 2014 +0200
missing: add missing bonding definitions
commit 035d56dc32fd1947cd3eafbb55d15aad888e4f34
Author: Lennart Poettering <lennart at poettering.net>
Date: Fri Aug 1 18:09:51 2014 +0200
update TODO
commit 2c27fbca2d88214bd305272308a370a962818f1e
Author: Lennart Poettering <lennart at poettering.net>
Date: Fri Aug 1 18:09:07 2014 +0200
resolved: flush cache each time we change to a different DNS server
commit 5cb36f41f01cf4b1f4395abfffd1b33116591e58
Author: Lennart Poettering <lennart at poettering.net>
Date: Fri Aug 1 17:03:28 2014 +0200
resolved: read the system /etc/resolv.conf unless we wrote it ourselves
This way we integrate nicely with foreign network management stacks,
such as NM.
commit afe7fd56f5b5b81294dcb794214f97fc5e39dfea
Author: Tom Gundersen <teg at jklm.no>
Date: Fri Aug 1 15:42:08 2014 +0200
networkd: track the MTU of each link
And inform the DHCPv4 clients about it.
commit 324f818781a250b60f2fcfa74ff1c9101d2d1315
Author: Tom Gundersen <teg at jklm.no>
Date: Fri Aug 1 16:10:13 2014 +0200
sd-dhcp-client: allow the max dhcp message size to be set to the MTU of the link
commit c18126e8da7290725af9e3a86e25b2aefbc1ecae
Author: Tom Gundersen <teg at jklm.no>
Date: Fri Aug 1 15:26:30 2014 +0200
TODO
commit a56ba6158b9649e01226dfaf3ff7082c82571090
Author: Tom Gundersen <teg at jklm.no>
Date: Fri Aug 1 15:17:18 2014 +0200
libudev: use get_*_creds from shared rather than util_lookup_*
commit 39d8db043b599a7382f94bfc904d5e108af438bd
Author: Lennart Poettering <lennart at poettering.net>
Date: Fri Aug 1 16:14:59 2014 +0200
resolved: rename resolved.h to resolved-manager.h
After all it pretty much exlcusively containers definitions about the
"Manager" object, hence let's call this the most obvious way.
commit 4e945a6f7971fd7d1f6b2c62ee3afdaff3c95ce4
Author: Lennart Poettering <lennart at poettering.net>
Date: Fri Aug 1 16:04:12 2014 +0200
resolved: beef up DNS server configuration logic
We now maintain two lists of DNS servers: system servers and fallback
servers.
system servers are used in combination with any per-link servers.
fallback servers are only used if there are no system servers or
per-link servers configured.
The system server list is supposed to be populated from a foreign tool's
/etc/resolv.conf (not implemented yet).
Also adds a configuration switch for LLMNR, that allows configuring
whether LLMNR shall be used simply for resolving or also for responding.
commit e70df46b9721a3d025e7a0b4ffb5893cbde5e55d
Author: Lennart Poettering <lennart at poettering.net>
Date: Fri Aug 1 16:01:12 2014 +0200
nss: always explicitly reset all error variables
glibc appears to be broken if we don't explicitly reset all error
variables, let's work around that.
https://bugzilla.redhat.com/show_bug.cgi?id=1125975
commit 9fecce8041ddf570f141c69efdaa3d73d6403d20
Author: Tom Gundersen <teg at jklm.no>
Date: Thu Jul 31 15:26:20 2014 +0200
Revert "networkd: don't assume udev_device_new_from_device_id sets errno"
libudev now does set errno correctly, so we can indeed rely on this.
This reverts commit 2b49732c3d511007ae2c413997e56c40f678d79a.
commit aa0e72ea54aaa9a0e7badfb3593cbf7e6e303345
Author: Tom Gundersen <teg at jklm.no>
Date: Thu Jul 31 15:25:01 2014 +0200
libudev: set errno when udev_device_new_from_* or udev_device_get_parent_* fail
commit 7cfb38b5969b4ab777640111ab967231d44aa21c
Author: Lennart Poettering <lennart at poettering.net>
Date: Fri Aug 1 01:56:14 2014 +0200
update TODO
commit 7c2a5e264c1d94ca9ba9c49acfdcd541c8a63a88
Author: Lennart Poettering <lennart at poettering.net>
Date: Fri Aug 1 01:55:15 2014 +0200
nss-resolve: fallback to the class NSS "dns" module if we cannot contact resolved
That way DNS resolution works both with and without resolved running.
commit 95dd6257a6befedb5b811f16d2cc4a0d8f147751
Author: Lennart Poettering <lennart at poettering.net>
Date: Fri Aug 1 00:57:19 2014 +0200
resolved: don't bother caching negative RRs when the SOA TTL is 0 anyway
commit 7be6885326d8316850062a5002c801102496d3bc
Author: Lennart Poettering <lennart at poettering.net>
Date: Fri Aug 1 00:57:12 2014 +0200
update TODO
commit 9a015429b3bbfe1c2802570c1621e73d6cb57ac3
Author: Lennart Poettering <lennart at poettering.net>
Date: Fri Aug 1 00:55:51 2014 +0200
resolved: use CLOCK_BOOTTIME instead of CLOCK_MONOTONIC when aging caches and timeing out transactions
That way the cache doens't get confused when the system is suspended.
commit 7da40fc10879d122cc6ebfba9609b56212a0ef77
Author: Lennart Poettering <lennart at poettering.net>
Date: Fri Aug 1 00:39:59 2014 +0200
resolved: fix negative caching of IDNA domains
commit bdf10b5b4d9e7abdc08bdca4b073d021b0043d1f
Author: Lennart Poettering <lennart at poettering.net>
Date: Thu Jul 31 23:43:10 2014 +0200
resolved: handle IDNA domains
Make sure we format UTF-8 labels as IDNA when writing them to DNS
packets, and as native UTF-8 when writing them to mDNS or LLMNR packets.
When comparing or processing labels always consider native UTF-8 and
IDNA formats equivalent.
commit afbc4f267b45480e46fbcd59e90e399bc3dc7510
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Thu Jul 31 17:42:14 2014 -0400
resolved: fix serialization of LOC records, check correctness
commit e90b8642cde8e11c2d3b49a6722c00a4954796cd
Author: Kay Sievers <kay at vrfy.org>
Date: Thu Jul 31 23:08:44 2014 +0200
kdbus: update header
commit bd64a88fb0478da2e93c363849b73aed8be36ae7
Author: Kay Sievers <kay at vrfy.org>
Date: Thu Jul 31 23:06:04 2014 +0200
hwdb: update
commit eb60f9cd4e93ff5016dc1b5486fd1b7e1565fd92
Author: Lennart Poettering <lennart at poettering.net>
Date: Thu Jul 31 19:54:43 2014 +0200
hostnamed: watch system hostname changes and update LLMNR RRs accordingly
commit 85818582574bcd1c3707c2a4609c9e283e47493f
Author: Lennart Poettering <lennart at poettering.net>
Date: Thu Jul 31 19:54:24 2014 +0200
resolved: fix deserialization of UTF8 host names
commit 7b9f7afcc04e80b77a2567b0750aa2cd03c1a1cd
Author: Lennart Poettering <lennart at poettering.net>
Date: Thu Jul 31 19:53:59 2014 +0200
resolved: accept UTF-8 hostnames from bus clients
commit 07bed172edc819cf85b72d5c67613511cbde5453
Author: Lennart Poettering <lennart at poettering.net>
Date: Thu Jul 31 19:51:11 2014 +0200
resolved: various fixes regarding encoding of UTF8 characters in DNS RRs
commit fd0b4602f6332c3f1660eb208c8f5c719709a009
Author: Lennart Poettering <lennart at poettering.net>
Date: Thu Jul 31 18:41:54 2014 +0200
resolved: properly compare RRs we cannot parse
commit 42cc2eebb01056beb7acd3ecfe8e533558237f84
Author: Lennart Poettering <lennart at poettering.net>
Date: Thu Jul 31 18:41:41 2014 +0200
resolved: properly process SSHFP RRs
commit 9c92ce6d67f88beb31dd6555d12ae3f632218a39
Author: Lennart Poettering <lennart at poettering.net>
Date: Thu Jul 31 18:23:00 2014 +0200
resolved: properly process SRV records
commit c0eb11cfd016381fe02875a4ef29c1ade00c94e7
Author: Lennart Poettering <lennart at poettering.net>
Date: Thu Jul 31 18:03:09 2014 +0200
resolved: provide properly named way to access SPF data in RRs
commit 6a6fc3df74c8ed91d4ea1813b3f6a6c3bf48a288
Author: Lennart Poettering <lennart at poettering.net>
Date: Thu Jul 31 18:02:42 2014 +0200
resolved: make sure we always initialize r when parsing TXT records
commit 8ac4e9e1e54397f6d1745c2a7a806132418c7da2
Author: Lennart Poettering <lennart at poettering.net>
Date: Thu Jul 31 18:02:24 2014 +0200
resolved: properly process DNAME RRs
commit 0f47ed0a052c0da743404f23ac3532aaabd23655
Author: Lennart Poettering <lennart at poettering.net>
Date: Thu Jul 31 17:47:09 2014 +0200
update TODO
commit ec2c5e4398f9d65e5dfe61530f2556224733d1e6
Author: Lennart Poettering <lennart at poettering.net>
Date: Thu Jul 31 17:46:40 2014 +0200
resolved: implement LLMNR uniqueness verification
commit b5df2eabf3fdd3e1663bc4c948812472084f3e96
Author: Kevin Wells <wellsie1116 at gmail.com>
Date: Thu Jul 31 17:38:21 2014 +0200
rules: allow systemd to manage loop device partitions
SYSTEMD_READY is currently set to 0 for all loop devices (loop[0-9]*)
that do not have a backing_file. Partitioned loop devices (ex. loop0p1),
however, are matched by this rule and excluded by systemd even though
they are active devices.
This change adds an additional check to the rule, ensuring that only
top level loop devices (loop[0-9]+$) are excluded from systemd.
commit cbd67a86fbb0452bb4a341783b15eb504a432fc0
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Thu Jul 31 10:44:11 2014 -0400
resolved: fix multi-record packets with TXTs
commit a59f16ce4a11c440cb2136ad3d5e3184714c545e
Author: Robert Schiele <rschiele at gmail.com>
Date: Thu Jul 31 14:18:59 2014 +0200
build-sys: check for intltool also when polkit is enabled
intltool is needed for nls _and_ polkit, thus the check needs to be
changed to do the test whenever one of them is enables.
Without this build fails when configured with
--disable-nls --enable-polkit
commit 0dae31d468b1a0e22d98921f7b0dbd92fd217167
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Thu Jul 31 04:19:43 2014 -0400
resolved: LOC records
LOC records have a version field. So far only version 0 has been
published, but if a record with a different version was encountered,
our only recourse is to treat it as an unknown type. This is
implemented with the 'unparseable' flag, which causes the
serialization/deserialization and printing function to cause the
record as a blob. The flag can be used if other packet types cannot be
parsed for whatever reason.
commit 9de3e3294065e8697ff10130b53f274319cdcf6f
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Thu Jul 31 21:47:51 2014 -0400
resolved: SPF records
commit 2e276efc7b0398a3086629a52970bdd4ab7252f9
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Thu Jul 31 21:36:58 2014 -0400
resolved: TXT records
commit 946c70944ebdf428ffeb9991a7449edbd4011461
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Thu Jul 31 21:06:00 2014 -0400
resolved: MX records
commit b93312f5960b276bae915906ccde36f545bae3e0
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Thu Jul 31 20:06:30 2014 -0400
resolve-host: list types and classes
Also update systemctl to similar style.
commit 73f860db9893deab6aebceb53dd7d0deb662e832
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Thu Jul 31 04:15:29 2014 -0400
Always prefer our headers to system headers
In practice this shouldn't make much difference, but
sometimes our headers might be newer, and we want to
test them.
commit 5d459d6b07206963a022e9a95ea9d8c18dc0eab8
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Wed Jul 30 15:38:54 2014 -0400
Constify option table and add missing option
commit 6fc5a40438dee0972cf1dedca9d4fd1c257c8f91
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Thu Jul 31 04:01:19 2014 -0400
man: add udev.conf(5)
We generally have separate man pages for all configuration files.
In this case udev.conf was already described in systemd-udevd.service(8),
but it was hard to find. Docbook makes it hard to add a .so link from
a different section, so describe udev.conf in its own page.
commit 2b09983f94feeb04abde32e54a50fe80fc44b397
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Thu Jul 31 04:01:01 2014 -0400
man: add missing comma
commit a4892054059c483a695e4250713b5ed8948a1c2f
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Thu Jul 31 03:45:05 2014 -0400
sysusers: split users for remote into separate file
This mirrors the setup for tmpfiles.d done in ad95fd1d2b9.
commit d8aa69b9c89b1309041ca3dc1c5a050fefab64ae
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Thu Jul 31 03:42:19 2014 -0400
systemd-analyze verify: improve error message
There's little sense in telling the user to look at the logs...
commit 1e2fd62d70ff1a960551d28fce745847a9dbd3b7
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Thu Jul 31 03:38:05 2014 -0400
core/load-fragment.c: correct argument sign and split up long lines
With everything on one line they are just harder to read.
commit b2fadec6048adb3596f2633cb7fe7a49f5937a18
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Thu Jul 31 03:28:37 2014 -0400
Properly report invalid quoted strings
$ systemd-analyze verify trailing-g.service
[./trailing-g.service:2] Trailing garbage, ignoring.
trailing-g.service lacks ExecStart setting. Refusing.
Error: org.freedesktop.systemd1.LoadFailed: Unit trailing-g.service failed to load: Invalid argument.
Failed to create trailing-g.service/start: Invalid argument
commit a2a5291b3f5ab6ed4c92f51d0fd10a03047380d8
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Tue Jul 29 22:01:36 2014 -0400
Reject invalid quoted strings
String which ended in an unfinished quote were accepted, potentially
with bad memory accesses.
Reject anything which ends in a unfished quote, or contains
non-whitespace characters right after the closing quote.
_FOREACH_WORD now returns the invalid character in *state. But this return
value is not checked anywhere yet.
Also, make 'word' and 'state' variables const pointers, and rename 'w'
to 'word' in various places. Things are easier to read if the same name
is used consistently.
mbiebl_> am I correct that something like this doesn't work
mbiebl_> ExecStart=/usr/bin/encfs --extpass='/bin/systemd-ask-passwd "Unlock EncFS"'
mbiebl_> systemd seems to strip of the quotes
mbiebl_> systemctl status shows
mbiebl_> ExecStart=/usr/bin/encfs --extpass='/bin/systemd-ask-password Unlock EncFS $RootDir $MountPoint
mbiebl_> which is pretty weird
commit 73381fcf54e38456067f0e87b8611a21eff99169
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Mon Jul 28 20:01:56 2014 -0400
test-strv: add test which shows access to random memory
commit 2b49732c3d511007ae2c413997e56c40f678d79a
Author: Tom Gundersen <teg at jklm.no>
Date: Wed Jul 30 21:29:34 2014 +0200
networkd: don't assume udev_device_new_from_device_id sets errno
This reverts 6f4d55a8ae04e344a41fc2adef12ad99c2bb2927, as we cannot rely on errno here.
Reported by David Herrmann.
commit e4501ed4e66e31f5bc6e40046ac8f27ce6e13a5c
Author: Lennart Poettering <lennart at poettering.net>
Date: Wed Jul 30 20:39:52 2014 +0200
resolved: when we got a successful DNS reply, then only wait for other transactions on the same scope, nowhere else
commit 699bd879efdf17c663b66fac8ca4f9cd4a946260
Author: Lennart Poettering <lennart at poettering.net>
Date: Wed Jul 30 19:34:55 2014 +0200
update TODO
commit 57f5ad3149b604d07816da61e6aa7dcf1cc56b64
Author: Lennart Poettering <lennart at poettering.net>
Date: Wed Jul 30 19:34:50 2014 +0200
resolved: properly set TTL in SOA records
commit fcf57f9cf706ff5be2b5e6d41b2ac48e3e98467b
Author: Lennart Poettering <lennart at poettering.net>
Date: Wed Jul 30 19:24:05 2014 +0200
resolved: don't attempt to order empty answer array
commit 351e6342d59c790758c216db3c61e17cc2860fa9
Author: Lennart Poettering <lennart at poettering.net>
Date: Wed Jul 30 19:23:50 2014 +0200
resolved: properly return start index when appending RR to packet
commit 2d4c5cbc0ed3ccb09dc086a040088b454c22c644
Author: Lennart Poettering <lennart at poettering.net>
Date: Wed Jul 30 19:23:27 2014 +0200
resolved: add API for resolving specific RRs
commit 6f4d55a8ae04e344a41fc2adef12ad99c2bb2927
Author: Tom Gundersen <teg at jklm.no>
Date: Wed Jul 30 18:16:09 2014 +0200
networkd: improve error message when udev device can not be found
Reported by Raimonds Cicans <ray at apollo.lv>
commit b85595b511d3d9f67940f7de0265fb78d672fe81
Author: Hong Shick Pak <hong at hspak.com>
Date: Mon Jul 28 00:10:01 2014 -0400
man: fix outdated example in systemd.network
The docs for the DHCP= was updated, but not the example.
commit 3339cb71d44c5198f9546f113674f06dc7b01a6f
Author: Lennart Poettering <lennart at poettering.net>
Date: Wed Jul 30 17:52:58 2014 +0200
resolved: properly pass empty answers back to bus clients
commit 79266746741b42da878663faddd1e570f8f38e74
Author: Lennart Poettering <lennart at poettering.net>
Date: Wed Jul 30 17:52:21 2014 +0200
resolve-host: add reverse lookup support
commit 02dd6e189a6d2b7f3884ad4cdb3d8c85e009c565
Author: Lennart Poettering <lennart at poettering.net>
Date: Wed Jul 30 17:11:21 2014 +0200
resolve-host: use the usual log message when encountering a dbus parse failure
commit ba17915457271cc13d46cbafc876277d037acd67
Author: Tom Gundersen <teg at jklm.no>
Date: Fri Jul 25 01:13:47 2014 +0200
networkd: ipv4ll - configure link-local address independently of DHCPv4
This changes the behavior when both DHCPv4 and IPv4LL are enabled. Before,
we would disable IPv4LL when we got a DHCPv4 lease and enable it if the
lease was lost.
Now we just always set up both, if both are enabled, but the DHCPv4
addresses and routes will always take precedence due to their metric
and scope.
commit 3f77a1b19f5a8ce33566f7f6e28e94c08ea30841
Author: Kay Sievers <kay at vrfy.org>
Date: Wed Jul 30 17:28:04 2014 +0200
TODO: update resolved
commit bdef7319e4145fec3160468a1ef9775d682f2fa4
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Wed Jul 16 22:55:23 2014 +0200
resolved: add tool to query resolved
commit 8bf52d3d17d364438191077d0750b8b80b5dc53a
Author: Lennart Poettering <lennart at poettering.net>
Date: Wed Jul 30 16:30:25 2014 +0200
resolved: include SOA records in LLMNR replies for non-existing RRs to allow negative caching
commit ab0cf8f8ff819c386d53b9ca29e9ac2d6b6e8f0f
Author: Tom Gundersen <teg at jklm.no>
Date: Wed Jul 30 12:48:25 2014 +0200
TODO
commit c009072ec5f73550b405027f940d6090b3a013b2
Author: Kay Sievers <kay at vrfy.org>
Date: Wed Jul 30 15:19:26 2014 +0200
factory: remove broken pam_limits
Stupid PAM, please just go away!
login[26]: pam_limits(login:session): error parsing the configuration file: '/etc/security/limits.conf'
login[26]: pam_unix(login:session): session opened for user root by LOGIN(uid=0)
login[26]: Error in service module
commit 34b9656f0b2890743eee6a746ef08d817abfd5e9
Author: Lennart Poettering <lennart at poettering.net>
Date: Wed Jul 30 14:46:40 2014 +0200
resolved: fix cname handling
commit 0ec7c46eed06269edf80121ec53f1eba2e2870d4
Author: Lennart Poettering <lennart at poettering.net>
Date: Wed Jul 30 14:21:18 2014 +0200
resolved: properly handle adding empty replies to cache
commit 6bf02ccb14a8f9791b0896f1e95d6e0522dd59ed
Author: Lennart Poettering <lennart at poettering.net>
Date: Wed Jul 30 11:27:05 2014 +0200
update TODO
commit ddf163393bd93baf39fa7a2c567f6758570cc209
Author: Lennart Poettering <lennart at poettering.net>
Date: Wed Jul 30 11:26:49 2014 +0200
resolved: never cache ANY lookups
commit 9f20a8a376f924c8eb5423cfc1f98644fc1e2d1a
Author: Hannes Reinecke <hare at suse.de>
Date: Wed Jul 30 10:10:46 2014 +0200
udev: fixup commit dd5eddd28a74a49607a8fffcaf960040dba98479
Commit dd5eddd28a74a49607a8fffcaf960040dba98479 accidentally
removed one line too many.
commit d946bb53f94713241004810de92cc37f1e19c2d2
Author: Martin Pitt <martin.pitt at ubuntu.com>
Date: Wed Jul 30 10:54:23 2014 +0200
keymap: Annotate all micmute workarounds
Add a comment to all assignments to f20 that this actually should be "micmute"
in a future when we aren't limited by X.org's key code limiations any more.
commit 1f6d36f267186c0e3184bab4c7eca48481c6faab
Author: Hui Wang <hui.wang at canonical.com>
Date: Wed Jul 30 16:09:08 2014 +0800
keymap: Add microphone mute keymap for Dell Latitude
On the Dell Latitude, the mic mute key event is generated by wmi
driver, the keycode assigned to this hotkey from kernel is
KEY_MICMUTE (248), this keycode is too big for xorg to handle,
in the xorg, the XF86AudioMicMute is assigned to F20.
Please refer to 4e648ea0 of xkeyboard-config.
BugLink: https://bugs.launchpad.net/bugs/1326684
BugLink: https://bugs.launchpad.net/bugs/1339998
Signed-off-by: Hui Wang <hui.wang at canonical.com>
Signed-off-by: Martin Pitt <martin.pitt at ubuntu.com>
commit 805b573fad06b845502e76f3db3a0efa7583149d
Author: Lukas Nykryn <lnykryn at redhat.com>
Date: Wed Jul 23 12:49:14 2014 +0200
sysv: order initscripts which provide $network before network.target
Due to recent changes where $network "maps" to network-online.target
it is not guaranteed that initscript which provides networking will
be terminated after network.target during shutdown which is against LSB.
commit bc07548926ec5ed7b13df8d3656654f238e0b9a7
Author: Lennart Poettering <lennart at poettering.net>
Date: Wed Jul 30 02:08:11 2014 +0200
update TODO
commit d532366133a29136ad2dd95cb9268c7bbbb4d3ee
Author: Lennart Poettering <lennart at poettering.net>
Date: Wed Jul 30 02:06:09 2014 +0200
resolved: respond to ANY queries from our zone
commit 0e2bcd6a1783008a94bdef4c828c5f8e0eba1706
Author: Lennart Poettering <lennart at poettering.net>
Date: Wed Jul 30 02:05:23 2014 +0200
resolved: don't accept messages with ANY RRs
commit 1d3b690fbd9a89491d938188582a8031d91ebbc8
Author: Lennart Poettering <lennart at poettering.net>
Date: Wed Jul 30 02:04:07 2014 +0200
resolved: don't allow adding of ANY class/type RRs to local zones
commit 6992efee44d3affd17dd9174e8673ae63ba01ec7
Author: Lennart Poettering <lennart at poettering.net>
Date: Wed Jul 30 01:48:34 2014 +0200
update TODO
commit 8bea3d6f887e336295a9cc24169f329c05f7383f
Author: Lennart Poettering <lennart at poettering.net>
Date: Wed Jul 30 01:48:22 2014 +0200
resolved: don't do llmnr on interfaces lacking multicasting
commit 0c903ae7db52af8ecad0619ec0da021f951c9c1c
Author: Lennart Poettering <lennart at poettering.net>
Date: Wed Jul 30 01:47:48 2014 +0200
resolved: follow more closely the recommend timeouts and TTLs from the LLMNR spec
commit d2f47562d5d834339ef3030e345a76a8c6f09c74
Author: Lennart Poettering <lennart at poettering.net>
Date: Wed Jul 30 01:46:27 2014 +0200
resolved: only cache answer RRs, never additional or authoritative RRs of responses
commit 0f05c387597a93fa74cdf7d351fd255aca56026d
Author: Lennart Poettering <lennart at poettering.net>
Date: Wed Jul 30 01:45:52 2014 +0200
resolved: never attempt negative caching of SOA records
commit af93291cc4cbd2fe2fb4af7d3c56138fb39f31dc
Author: Lennart Poettering <lennart at poettering.net>
Date: Wed Jul 30 00:48:59 2014 +0200
resolved: when answer A or AAAA questions, order responses by whether addresses are link-local or not
commit 2442b93d15f5523aba0c5dc56a42757af889c483
Author: Lennart Poettering <lennart at poettering.net>
Date: Tue Jul 29 23:52:57 2014 +0200
resolved: the llmnr destination address check applies to queries, not to responses
commit a2a416f768e2aa7db5b975cd50eb19237cac9cce
Author: Lennart Poettering <lennart at poettering.net>
Date: Tue Jul 29 23:52:23 2014 +0200
resolved: add more debug logging
commit bf3f1271e2cc0c22b11c8a805a997578dabe9191
Author: Lennart Poettering <lennart at poettering.net>
Date: Tue Jul 29 23:51:34 2014 +0200
resolved: set LLMNR TCP and UDP TTLs to the values suggested by the RFC
commit 088b6ba2648db1899fd956bf8238f0706fbe6c45
Author: Lennart Poettering <lennart at poettering.net>
Date: Tue Jul 29 23:49:54 2014 +0200
sd-network: make socket filter programs static const where possible
(also, fix some whitespace/indentation issues, and avoid "index" as identifier in
order to not clash against libc's "index()" call)
commit 2f82f5eae471a23a7aa9f40f19079a4b63e19496
Author: Lennart Poettering <lennart at poettering.net>
Date: Tue Jul 29 21:46:12 2014 +0200
resolved: we don't need the DNS server "source" concept anymore, remove it
commit 70b34f5de86809991d6753ba486b88481ceab817
Author: Michael Marineau <michael.marineau at coreos.com>
Date: Mon Jul 21 16:23:42 2014 -0700
networkd: fix reporting errors from hostnamed
The return value may be -EINVAL or a positive errno from the dbus
message. Check both ranges, otherwise most errors are silently ignored.
commit ea917db9e662ae6e6d0ae07e0118b323688c8616
Author: Lennart Poettering <lennart at poettering.net>
Date: Tue Jul 29 19:50:28 2014 +0200
resolved: discard more invalid llmnr messages
commit 49ee032fc3b694a1b45be9d08a2b97ab3eb93f75
Author: Lennart Poettering <lennart at poettering.net>
Date: Tue Jul 29 19:50:19 2014 +0200
Update TODO
commit b914e211f3a40f507b3cdc572838ec7f3fd5e4cf
Author: Lennart Poettering <lennart at poettering.net>
Date: Tue Jul 29 19:49:45 2014 +0200
resolved: when resolving an address PTR record via llmnr, make a tcp connection by default
commit 623a4c97b9175f95c4b1c6fc34e36c56f1e4ddbf
Author: Lennart Poettering <lennart at poettering.net>
Date: Tue Jul 29 14:24:02 2014 +0200
resolve: add llmnr responder side for UDP and TCP
Name defending is still missing.
commit 359017c1aec9596e9d3c4c19bd62d34a6f3366b8
Author: David Herrmann <dh.herrmann at gmail.com>
Date: Tue Jul 29 19:14:23 2014 +0200
barrier: fix race in test-code
The barrier_wait_next_twice* test-cases run:
Parent: Child:
set_alarm(10) sleep_for(1);
... set_alarm(1);
sleep_for(2) ...
Therefore, the parent exits after 2+ periods, the client's alarm fires
after 2+ periods. This race turns out to be lost by the child on other
machines, so avoid it by increasing the parent's sleep-interval to 4. This
way, the client has 2 periods to run the barrier test, which is far more
than enough.
commit f22bbd11dbfae4b7dd0606f6981d38d893ed4c1e
Author: Kay Sievers <kay at vrfy.org>
Date: Tue Jul 29 17:54:57 2014 +0200
build-sys: add missing files for distcheck
commit ab6efe71f3f1fb44ad2d9737e29dfd15ba4ba635
Author: Kay Sievers <kay at vrfy.org>
Date: Tue Jul 29 17:07:27 2014 +0200
test: test_tables - fix missing symbols when --gc-sections are not available
commit 94a15ffa14b8272e827f4cf95244910839a9d907
Author: Kay Sievers <kay at vrfy.org>
Date: Tue Jul 29 16:44:04 2014 +0200
factory: install minimal PAM and nsswitch config
commit 9ec6e95b046de71c0198cb9d17acc5462dc76c74
Author: Kay Sievers <kay at vrfy.org>
Date: Tue Jul 29 15:47:41 2014 +0200
udev: place opening { at the same line as the function declaration
commit 51f1ec3bbed72d5c0ee0fbcc346ed0fc82d18c96
Author: Kay Sievers <kay at vrfy.org>
Date: Tue Jul 29 15:20:42 2014 +0200
build-sys: remove systemd-coredumpctl symlink
commit dd5eddd28a74a49607a8fffcaf960040dba98479
Author: Kay Sievers <kay at vrfy.org>
Date: Tue Jul 29 15:18:27 2014 +0200
udev: unify event timeout handling
commit 9719859c07aa13539ed2cd4b31972cd30f678543
Author: Hannes Reinecke <hare at suse.de>
Date: Tue Jul 29 09:06:14 2014 +0200
udevd: add --event-timeout commandline option
Some events take longer than the default 30 seconds. Killing those
events will leave the machine halfway configured.
Add a commandline option '--event-timeout' to handle these cases.
commit 32767cb1e86d8e95a2ae215d9442536003551f6e
Author: Kay Sievers <kay at vrfy.org>
Date: Tue Jul 29 13:01:51 2014 +0200
login: update systemd-user PAM configuration file
commit 3a43da2832dc5360a638d043f469a6dcbe025582
Author: Kay Sievers <kay at vrfy.org>
Date: Tue Jul 29 12:23:31 2014 +0200
time-util: add and use USEC/NSEC_INFINIY
commit cf347234ae78630dd4aad8907f027965e7fb9040
Author: David Herrmann <dh.herrmann at gmail.com>
Date: Tue Jul 29 13:04:51 2014 +0200
barrier: convert msecs to usecs in test-code
Avoid using msecs in favor of usec_t. This is more consistent with the
other parts of systemd and avoids the confusion between msec and usec. We
always use usecs, end of story.
commit b13dbd6ca4df58c185f639c409651cad2defa23b
Author: David Herrmann <dh.herrmann at gmail.com>
Date: Tue Jul 29 13:00:35 2014 +0200
terminal/subterm: use usec_t instead of "unsigned long"
Avoid hard-coding "unsigned long" and use the usec_t type defined in
src/shared.
commit 16aa63a00b5b1db23a9c0b8de350ebf482d90cd0
Author: Tom Gundersen <teg at jklm.no>
Date: Mon Jul 28 12:21:51 2014 +0200
networkd: route/address - use trivial hash functions
commit 6a0a2f860f1ca4a10932da3b41dbc3c0139757cc
Author: Tom Gundersen <teg at jklm.no>
Date: Mon Jul 28 12:10:37 2014 +0200
networkd: unify handling of stacked netdevs
commit ae06ab1014641feb83ffd0d08f0957e69bbbae08
Author: Tom Gundersen <teg at jklm.no>
Date: Mon Jul 28 11:39:37 2014 +0200
networkd: store ifindex as int
commit 527503444ef24ae03c73cf85128c7acbb1146f3c
Author: Tom Gundersen <teg at jklm.no>
Date: Sat Jul 26 19:12:24 2014 +0200
sd-dhcp-server: add forcerenew support
commit 615c1467c81411bf1d19fd7092e8995b5ebadc13
Author: Tom Gundersen <teg at jklm.no>
Date: Fri May 16 00:50:44 2014 +0200
sd-dhcp-client: add support for FORCERENEW
This partially implements RFC3203. Note that we are not fully compliant as we do not
support authentication.
commit 0af03ba57f43b973463e15949c2830cbd228f19d
Author: Tom Gundersen <teg at jklm.no>
Date: Fri Jul 25 14:44:12 2014 +0200
sd-dhcp-client: listen on UDP socket as soon as a lease is acquired
This is necessary in order to listen for FORCERENEW events.
commit 076adf013a171e819f84684e2eb22e965e96ee59
Author: Tom Gundersen <teg at jklm.no>
Date: Fri Jul 25 14:43:16 2014 +0200
dhcp-network: enable IP_FREEBIND for UDP sockets
This allows the sockets to be bound to a specific address before it is configured,
also enable SO_REUSEADDR to allow multiple DHCP clients to run at the same time.
commit 2d2349cc3ed43153344807892332c9fa626c8d8a
Author: Tom Gundersen <teg at jklm.no>
Date: Sat May 17 21:23:20 2014 +0200
sd-dhcp-client: drop event DHCP_EVENT_NO_LEASE
Keep this internal to the client and simply restart it when NAK is receieved, as
per the RFC.
commit 9fbc25232c123aac886b5327418b7254a48ea3dc
Author: Tom Gundersen <teg at jklm.no>
Date: Sat Jul 26 17:53:33 2014 +0200
sd-dhcp-client: only verify UDP messages
RAW messages are verified by the BPF in the kernel.
commit 36dd072cdf03dcac0fcd2d6b42f261444dc7ac88
Author: Michal Sekletar <msekleta at redhat.com>
Date: Fri Jul 25 14:38:22 2014 +0200
journald: always add syslog facility for messages coming from kmsg
Set SYSLOG_FACILITY field for kernel log messages too. Setting only
SYSLOG_IDENTIFIER="kernel" is not sufficient and tools reading journal
maybe confused by missing SYSLOG_FACILITY field for kernel log messages.
commit c317a1a19cd9584e07ee43f1b6fafc26c2c75cca
Author: Eric Cook <llua at gmx.com>
Date: Sun Jul 27 15:07:03 2014 -0400
shell-completion: prevent mangling unit names (bash)
This fixes the issue noted by Zbigniew in most cases.
if a unit's name is enclosed in single quotes completion still
will not happen after the first `\'.
https://bugs.freedesktop.org/show_bug.cgi?id=78388
commit e2d7c1a0758ce80d7cb439745deefefdffd67655
Author: Ansgar Burchardt <ansgar at debian.org>
Date: Sun Jul 27 16:32:13 2014 +0200
drop_duplicates: copy full BindMount struct
At least
t->ignore = f->ignore;
is missing here. Just copy the full struct to be sure.
commit 0f625d0b87139fc18cd565c9b6da05c53a0eb7ab
Author: Ansgar Burchardt <ansgar at debian.org>
Date: Sun Jul 27 15:19:00 2014 +0200
parse_boolean: require exact matches
Require exact matches in all cases instead of treating strings
starting with 't' ('f') as true (false).
This is required for config_parse_protect_system to parse ProtectSystem=full
correctly: it uses parse_boolean and only tries a more specific parsing
function if that did not return a valid result. Thus "full" was treated as
"false" before.
commit ccc6fa0d6b8e3ce5e7508ee8a141ee26f380b4a3
Author: Kay Sievers <kay at vrfy.org>
Date: Sun Jul 27 14:53:21 2014 +0200
factory: nss - add generic config
commit e5168066e70e04906241283e026882c89d72db33
Author: Kay Sievers <kay at vrfy.org>
Date: Sun Jul 27 14:08:11 2014 +0200
factory: PAM - add generic fallback config
Single PAM fallback config file to be used in /etc to allow
bootstrapping of a system with an empty /etc.
commit c264aeab4b0e7b69f469e12e78d4a48b3ed7a66e
Author: Kay Sievers <kay at vrfy.org>
Date: Sun Jul 27 00:11:08 2014 +0200
core: only set the kernel's timezone when the RTC runs in local time
We can not reliably manage any notion of local time. Every daylight
saving time change or time zone change by traveling will make the
time jump, and the local time might jump backwards which creates
unsolvable problems with file timestamps.
We will no longer tell the kernel our local time zone and leave
everything set to UTC. This will effectively turn FAT timestamps
into UTC timestamps.
If and only if the machine is configured to read the RTC in local
time mode, the kernel's time zone will be configured, but
systemd-timesysnc will disable the kernel's system time to RTC
syncing. In this mode, the RTC will not be managed, and external
tools like Windows bootups are expected to manage the RTC's time.
https://bugs.freedesktop.org/show_bug.cgi?id=81538
commit c6a373a26348544d944b08bf0c5dea4f72f6980b
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Sat Jul 26 20:11:58 2014 -0400
bash-completion: use list-unit-files to get "all" units
I think that it is better to return good results slightly more slowly,
than partial quickly. Also reading from disk seems fast enough. Even
the delay on first try with completely cold cache is acceptable.
This is just for bash, 'cause zsh was already doing this.
https://bugzilla.redhat.com/show_bug.cgi?id=790768
commit 8f077bf94e129fa1b6f0159e3140c4326f1066cf
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Sat Jul 26 14:59:52 2014 -0400
Print kdbus path when opening fails
This makes it easier to debug what is going on.
commit 4aa4d2ae9717d0f8656528a3197bbc0c256380b1
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Sat Jul 26 15:01:49 2014 -0400
update-done: include a short description in .updated
People might be confused where the file comes from, since the name is not
at all specific.
https://bugzilla.redhat.com/show_bug.cgi?id=1121301#c8
commit 0c6ea3a4e2ac3f350dcb58e8f08bb74b030cd624
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Sat Jul 26 14:47:31 2014 -0400
Add utility function to append root to path
commit 60731f32f1d25070ed7559bdd64d65e7462a4df6
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Sat Jul 26 14:03:11 2014 -0400
systemctl: do not bother to mutate state on error
We will abort anyway.
commit 5b6f6ebd63a0d212738ee50e9bc357120af6d3ce
Author: Daniel Buch <boogiewasthere at gmail.com>
Date: Thu Jul 24 23:29:40 2014 +0200
analyze: fix seg-fault with no cl-argument
We need to check if argv[1] is set before compare
commit 7de80bfe2e61d5818601ccfddbadad3b7703ed70
Author: Karel Zak <kzak at redhat.com>
Date: Fri Jul 25 15:38:31 2014 +0200
Always check asprintf return code
There is a small number of the places in sources where we don't check
asprintf() return code and assume that after error the function
returns NULL pointer via the first argument. That's wrong, after
error the content of pointer is undefined.
commit 6d314eca15f6cbda38d82774b210f784d3d4f52a
Author: Eric Cook <llua at gmx.com>
Date: Sat Jul 26 11:15:52 2014 -0400
shell-completion: prevent mangling unit names
Units with literal hex '\xFF' in their names has to be read
and printed properly.
dev-disk-byx2dlabel-root.device != dev-disk-by\x2dlabel-root.device
commit ad8bc9ea508740074cead005aa3cfd1ba10a5dac
Author: Tom Gundersen <teg at jklm.no>
Date: Fri Jul 25 11:08:23 2014 +0200
sysctl.d: enable promote_secondaries by default
Without this, secondary addresses would get deleted when the primary one is. This is not
the desired behavior when one would like to transition from one address to another in the
same subnet (such as when a new IP address is given over DHCP).
In networkd, when given a new IP over DHCP we will add it, without explicitly removing the
old one first (and hence never have a window without an IP address configured). Assuming the
addresses are in the same subnet, that means that the old address is the primary and the new
address is the secondary one. Once the old address expires, the kernel will drop it. With the
old behavior this means that both addresses would be lost, which is clearly not what we want.
With the new behavior, only the old address is lost, and the new one is promoted to primary.
Reported by Michael Olbrich <m.olbrich at pengutronix.de>
commit deffddf1df29a5ed047feff3a0f2b765006fb71b
Author: Lukas Nykryn <lnykryn at redhat.com>
Date: Fri Jul 25 10:44:27 2014 +0200
busname: CLD_KILLED was used twice
commit e05aa2e02ba35d8b3741dddb79af3c802308414b
Author: Lukas Nykryn <lnykryn at redhat.com>
Date: Fri Jul 25 10:25:06 2014 +0200
bus-proxyd: fix incorrect comparison
We should be interested in k variable.
commit eb17e1785973352c0853868e1c676078870f22dd
Author: Lukas Nykryn <lnykryn at redhat.com>
Date: Fri Jul 25 09:58:52 2014 +0200
bus-proxyd: fix incorrect comparison
Err can't be bigger then zero. Rest of the code uses negative Exxxx values.
commit bfa695b5cc37aeb78737c57c84e9e69ea08152c0
Author: Tom Gundersen <teg at jklm.no>
Date: Fri Jul 25 02:09:29 2014 +0200
networkd: ipv4ll - default to setting up ipv4ll routes
This is necessary for non-ipv4ll hosts to communicate with ipv4ll-only hosts on the same link. Defaults
to being enabled, but can be opted out.
See: <http://avahi.org/wiki/AvahiAutoipd#Routes>
commit 3c072310d515dd7ab4d553001ed3eb34b8090002
Author: Tom Gundersen <teg at jklm.no>
Date: Fri Jul 25 01:28:39 2014 +0200
networkd: ipv4ll - drop unnecessary get_address()
commit 2e5b17d01347d3c3118be2b8ad63d20415dbb1f0
Author: Kay Sievers <kay at vrfy.org>
Date: Thu Jul 24 23:37:35 2014 +0200
udev: exclude MD from block device ownership event locking
MD instantiates devices at open(). This is incomptible with the
locking logic, as the "change" event emitted when stopping a
device will bring it back.
commit fa94c34b083b5b4019975624453e53d0cbad2a5d
Author: Tom Gundersen <teg at jklm.no>
Date: Thu Jul 24 18:53:01 2014 +0200
libsystemd-network: use CLOCK_BOOTTIME instead of CLOCK_MONOTONIC where possible
The timeouts in the networking library (DHCP lease timeouts and similar) should not be affected
by suspend. In the cases where CLOCK_BOOTTIME is not implemented, it is still safe to fallback to
CLOCK_MONOTONIC, as the consumers of the library (i.e., networkd) _should_ renew the leases when
coming out of suspend.
commit 77ff2de999b7ea6b1b4a3a218fbd9d62bb07cd54
Author: Tom Gundersen <teg at jklm.no>
Date: Thu Jul 24 18:36:37 2014 +0200
time-util: add clock_boottime_or_monotonic
CLOCK_BOOTTIME is not supported by timerfd on older kernels, so for the time beeing,
use this helper instead which will fallback to CLOCK_MONOTONIC if CLOCK_BOOTTIME is
not supported.
commit a854881616afbe4c4f55396d3fc2f922bbbe716b
Author: Tom Gundersen <teg at jklm.no>
Date: Thu Jul 24 16:08:07 2014 +0200
sd-event: add support for CLOCK_BOOTTIME
This requires a very recent kernel (3.15), so care should be taken
when using this functionality.
commit 6f4dedb250f2d607eceefaa491f338becbeee7c0
Author: Tom Gundersen <teg at jklm.no>
Date: Wed Jul 23 23:03:50 2014 +0200
sd-network: expose DNS/NTP servers as strings
This avoids having to distinguish between IPv4 and IPv6, allowing us
to keep their internal orderings. The consumers now has to turn the
strings into addresses.
commit 6073b6f26ab9fc6bf335faa7073ec443eef093fd
Author: Tom Gundersen <teg at jklm.no>
Date: Wed Jul 23 23:10:00 2014 +0200
resolved: don't read DHCP leases
networkd will expose both statically configured DNS servers and servers
receieved over DHCP in sd_network_get_dns(), so no need to keep
the distinction in resolved.
commit b0e39c8284b5195850a58e4efcce2f059bdcc6ad
Author: Tom Gundersen <teg at jklm.no>
Date: Wed Jul 23 13:48:18 2014 +0200
networkd: merge DNS and NTP entries when exporting
In the state files, do not distinguish where the various entries came from
(static or DHCP), but include them all in the same list.
commit 36d054aae0847df38687640909304dde1452b22d
Author: Michael Biebl <biebl at debian.org>
Date: Wed Jul 23 23:35:22 2014 +0200
man: fix path for system-sleep hook directory
commit cbfaff65cb086e3eb3709cf86dcf63b46622389b
Author: Karel Zak <kzak at redhat.com>
Date: Wed Jul 23 12:40:07 2014 +0200
docs: remove repeating words from man/*xml
commit 6946f79d98430fccb1e0c947c135c807bc73a9c5
Author: Dan Williams <dcbw at redhat.com>
Date: Tue Jul 22 17:18:14 2014 -0500
dhcp-network: remove unused DHCP6_STATE_RS
Probably a left-over from when router solicitations were
requested in the DHCP6 code. But since they are now separate,
this state is no longer needed.
commit 28cc555d8504c9429776aedbbe1fee7101258578
Author: Dan Williams <dcbw at redhat.com>
Date: Tue Jul 22 16:54:47 2014 -0500
networkd: set route protocol
All routes added by networkd are currently set RTPROT_BOOT, which according
to the kernel means "Route installed during boot" (rtnetlink.h). But this
is not always the case as networkd changes routing after boot too. Since
the kernel gives more detailed protocols, use them.
With this patch, user-configured static routes now use RTPROT_STATIC (which
they are) and DHCP routes use RTPROT_DHCP. There is no define for IPv4LL
yet, so those are installed as RTPROT_STATIC (though perhaps RTPROT_RA is
better?).
[tomegun: fixup
src/network/networkd-link.c:972:33: error: too few arguments to function 'route_new_dynamic']
commit 82eb1e7efbe3ca8620d2b183af37c4fd34bf8bb3
Author: Lennart Poettering <lennart at poettering.net>
Date: Wed Jul 23 02:00:32 2014 +0200
update TODO
commit 934e9b10b4f4bfb48e21883670c7f45b6911fa9b
Author: Lennart Poettering <lennart at poettering.net>
Date: Wed Jul 23 01:59:36 2014 +0200
resolved: most DNS servers can't handle more than one question per packet, hence let's not generate that
commit 7e8e0422aeb16f2a09a40546c61df753d10029b6
Author: Lennart Poettering <lennart at poettering.net>
Date: Wed Jul 23 00:57:25 2014 +0200
resolved: implement negative caching
commit faa133f3aa7a18f26563dc5d6b95898cb315c37a
Author: Lennart Poettering <lennart at poettering.net>
Date: Tue Jul 22 21:48:41 2014 +0200
resolved: rework logic so that we can share transactions between queries of different clients
commit a3eca41994de42f5448b35e8815d3009b2b5df38
Author: Lennart Poettering <lennart at poettering.net>
Date: Tue Jul 22 00:36:01 2014 +0200
nss-myhostname: don't include assert.h twice
commit 142c4ecaa9840714d49b40b1de407748b52f21d7
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Mon Jul 21 21:14:08 2014 -0400
man: merge systemd-verify with systemd-analyze
commit 2c12a402cb1e8277c271ced8dc9c06d20b8f6017
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Mon Jul 21 21:11:56 2014 -0400
shell-completion: systemd-analyze verify, systemctl link
Some zsh completion helpers were not installed, so completion
was broken.
Add systemd-analyze verify. Make systemctl link complete only
unit names.
commit 1d3bc0177a1952473bbe45b5bbb4e4e4f69a84f4
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Mon Jul 21 21:11:54 2014 -0400
Merge systemd-verify with systemd-analyze
commit 1a40a3393e904fe4683f6d2b2450cfbd94a34000
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Mon Jul 21 21:07:19 2014 -0400
configure: add -Wno-typedef-redefinition
Message-ID: <CAJ+BJsz9Qy-JU25dUuGT2n0LMNzcOpoJNGNtbf_boSuT_6hONw at mail.gmail.com>
commit 6589d0dba2b1ccf2406db527c2c1b51c7143e117
Author: Jean-André Santoni <jean.andre.santoni at gmail.com>
Date: Mon Jul 21 21:04:44 2014 -0400
Add IFLA_VTI defines to missing.h
commit 7dbb1d08f66cd44b1296be3ee8e3629b989e19a8
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Mon Jul 21 20:56:29 2014 -0400
update-done: set proper selinux context for .updated
https://bugzilla.redhat.com/show_bug.cgi?id=1121806
commit 9f1c19405a1ccaf59dcc8c32c13a1619541189ad
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Mon Jul 21 20:41:19 2014 -0400
sysusers: fix selinux context of backup files
Also, fix fopen_temporary_label to set proper context. By chance,
all users so far used the same context, so the error didn't matter.
Also, check return value from label_init().
https://bugzilla.redhat.com/show_bug.cgi?id=1121806
commit c9e738b91199475c88a2f89da448a026e9186058
Author: Tom Gundersen <teg at jklm.no>
Date: Mon Jul 21 20:54:09 2014 +0200
networkd: bridge - use USEC_PER_MSEC macros
Lennart said:
> We have these nice USEC_PER_MSEC-style macro definitions which make it a
> little bit clearer what we are converting here from what into
> what... please use that instead of writing "1000"...
>
> (we stole those from gstreamer btw)
commit d9c52fa045d53e2b802102114e9c557c43024eb5
Author: Susant Sahani <susant at redhat.com>
Date: Mon Jul 21 19:14:48 2014 +0530
networkd: add support for bond options
The following bond options are supported by this patch.
MIIMonitorSec:
Specifies the frequency in milli-seconds that MII link
monitoring will occur.
UpDelaySec:
Specifies the delay time in milli-seconds to enable a link
after a link up status has been detected.
DownDelaySec:
Specifies the delay time in milli-seconds to disable a link
after a link failure has been detected.
changes:
1. Added gconf variables.
2. man page
conf:
[NetDev]
Name=bond1
Kind=bond
[Bond]
Mode=802.3ad
TransmitHashPolicy=layer2+3
LacpduTransmitRate=fast
MIIMonitorSec=1s
UpDelaySec=2s
DownDelaySec=8s
cat /proc/net/bonding/bond1
Ethernet Channel Bonding Driver: v3.7.1 (April 27, 2011)
Bonding Mode: IEEE 802.3ad Dynamic link aggregation
Transmit Hash Policy: layer2+3 (2)
MII Status: up
MII Polling Interval (ms): 1000
Up Delay (ms): 2000
Down Delay (ms): 8000
802.3ad info
LACP rate: fast
Min links: 0
Aggregator selection policy (ad_select): stable
bond bond1 has no active aggregator
[tomegun: rephrased manpage, dropped bond_ prefix from variables]
commit fb1021a26db14b199c50e3eed77a1daa371f282e
Author: Susant Sahani <susant at redhat.com>
Date: Mon Jul 21 18:52:14 2014 +0530
networkd: bond add support for lacp rate
LacpduTransmitRate
option specifies the rate in which link partner to transmit
LACPDU packets in 802.3ad mode. Possible values
slow : Request partner to transmit LACPDUs every 30 seconds
fast : Request partner to transmit LACPDUs every 1 second
The default is slow.
chages:
1. Added enum bond_lacp_rate_table
2. gperf LacpduTransmitRate
Test:
conf file:
[NetDev]
Name=bond1
Kind=bond
[Bond]
Mode=802.3ad
LacpduTransmitRate=fast
test:
cat /proc/net/bonding/bond1
Ethernet Channel Bonding Driver: v3.7.1 (April 27, 2011)
Bonding Mode: IEEE 802.3ad Dynamic link aggregation
Transmit Hash Policy: layer2+3 (2)
MII Status: up
MII Polling Interval (ms): 0
Up Delay (ms): 0
Down Delay (ms): 0
802.3ad info
LACP rate: fast
Min links: 0
Aggregator selection policy (ad_select): stable
bond bond1 has no active aggregator
[tomegun: renamed from LacpduTransmitRate to LACPTransmitRate, manpage fixes and
dropped bond_ prefix from variables]
commit 227cdf2c7ca0ab10af60674f929c4beeedb1ae67
Author: Susant Sahani <susant at redhat.com>
Date: Mon Jul 21 18:37:05 2014 +0530
networkd: add support for bond transmit hash policy
This patch adds support the transmit hash policy to use
for slave selection in balance-xor, 802.3ad, and tlb modes
layer2, layer3+4, layer2+3, encap3+4, encap3+4
Added:
1. BondXmitHashPolicy
2. conf param TransmitHashPolicy
Test conf:
[NetDev]
Name=bond1
Kind=bond
[Bond]
Mode=802.3ad
TransmitHashPolicy=layer2+3
test output:
cat /proc/net/bonding/bond1
Ethernet Channel Bonding Driver: v3.7.1 (April 27, 2011)
Bonding Mode: IEEE 802.3ad Dynamic link aggregation
Transmit Hash Policy: layer2+3 (2)
MII Status: up
MII Polling Interval (ms): 0
Up Delay (ms): 0
Down Delay (ms): 0
802.3ad info
LACP rate: slow
Min links: 0
Aggregator selection policy (ad_select): stable
bond bond1 has no active aggregator
[tomegun: dropped bond_ prefix from new Bond variable, drop repeated man-page section]
commit 801a04c81be81f6ae1f82f8603a81891283256d9
Author: Susant Sahani <susant at redhat.com>
Date: Wed Jul 16 13:56:24 2014 +0530
sd-rtnl: uncomment bond rtnl constants
commit aa9f11405829fd4755fef28602a7167dba3ddc89
Author: Tom Gundersen <teg at jklm.no>
Date: Wed Jul 16 13:17:10 2014 +0200
networkd: netdev - split NetDev struct into per-kind structs
Similarly to how unit types work.
commit 653912918f594ebbca46806b302ef6b477402575
Author: Tom Gundersen <teg at jklm.no>
Date: Sat Jul 19 01:37:22 2014 +0200
sd-network: drop get_ifindices
People should use rtnl for this, and then only query sd-network by the ifindices it finds.
commit 0e8415f2e5c42e87ca3b7a96138675f64696cb7a
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Sun Jul 20 19:28:58 2014 -0400
man: add systemd-verify(1)
commit 78002a678106a9a4e0e9d747f54458ba84322f1a
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Sun Jul 20 18:23:53 2014 -0400
systemd-verify: check man pages
commit 8b835fccdad78d89f9cc64f9b02059fb75ffbab1
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Sun Jul 20 17:58:35 2014 -0400
systemd-verify: a simple tool for offline unit verification
This tool will warn about misspelt directives, unknown sections, and
non-executable commands. It will also catch the common mistake of
using Accept=yes with a non-template unit and vice versa.
https://bugs.freedesktop.org/show_bug.cgi?id=56607
commit cf7d80a5fe549d4db11800015e02220dccec3096
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Sun Jul 20 17:56:57 2014 -0400
path-lookup: make SYSTEMD_UNIT_PATH more flexible
It can now contain more than one directory, and can be used
to only prepend, not totally override, the normal load path.
commit 8328d8c63332319965fd288634a9a709e9b96425
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Fri Jul 18 17:50:04 2014 -0400
test-cgroup-mask: fix masks in test and enable by default
Commit 637f421e5c6a ("cgroups: always propagate controller membership
to siblings") changed the mask propagation logic, but the test wasn't
updated.
Move to normal tests from manual tests, it should not touch the system
anymore.
commit c2ef6f8427031e17dd2ea3fe232959687c77ea82
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Tue Feb 18 23:28:15 2014 -0500
test-cgroup-mask: pass on kernels without memory controller
It seems that unit_get_siblings_mask returns the controllers
filtered by what is available, but get_members_mask and
get_cgroup_mask do not. This just fixes the test following the
symptoms.
commit 1cd974edfd7cd91dcdf321e7202bd220bac50a2d
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Fri Jul 18 17:05:18 2014 -0400
systemd: return the first error from manager_startup()
commit 0d8c31ff7237149b505290652864b4e7e866b2a7
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Tue Jan 7 08:41:24 2014 -0500
test-engine: fix access to unit load path
Also add a bit of debugging output to help diagnose problems,
add missing units, and simplify cppflags.
Move test-engine to normal tests from manual tests, it should now
work without destroying the system.
commit f0ea29eaeb3449822bfbdfa839b00e323dfc523e
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Sun Jul 20 19:47:42 2014 -0400
Add quotes to warning message
The message for SYSTEMD_LOG_LEVEL= looked a bit strange.
commit b87c2aa6bf1247c298c9bd9f56b9b56a87836b2d
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Tue Jan 7 00:00:05 2014 -0500
systemd: use pager for --test and --help
commit 4e6029435111adcad71489aca2dd68bc65aeffd4
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Sat Jul 19 21:05:07 2014 -0400
journalctl,man: allow + only between terms
https://bugzilla.redhat.com/show_bug.cgi?id=1110712
commit be8f4a9fa732d61e845e1ab1a62ac3a6b368d3a7
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Sat Jul 19 19:46:04 2014 -0400
bash-completion: -p option for journalctl
commit e9b11a8457293c553296e5d986a0bb7f86f275d5
Author: Michael Olbrich <m.olbrich at pengutronix.de>
Date: Fri Jul 18 06:33:52 2014 +0200
install: systemd-timesyncd.service is enabled by sysinit.target
systemd-timesyncd.service has a "WantedBy=sysinit.target" so the
initially generated link should match that.
commit 69a67d6aaec068654c0431e9156a91afcf75b7dd
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Mon Jan 6 21:26:20 2014 -0500
core: remove systemd_running_as lookup functions
They are unused and unlikely to ever be.
commit 91a81d93b569a98e04566eef1753a0956ba035f3
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Sat Jul 19 15:35:48 2014 -0400
escape: fix return code
commit 53290ee39d0b4a61d75df3e7ef9372380352594e
Author: David Herrmann <dh.herrmann at gmail.com>
Date: Sat Jul 19 11:32:25 2014 +0200
barrier: suppress false-positive warning
If poll() returns, one of both revents must be set, thus "buf" is set by
either clause. This is non-obvious for code-checkers so add an "else
continue;" clause to suppress "uninitialized variable" warnings.
commit a7850c7d1339b490ac021ff82c2081285ea28503
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Fri Dec 27 17:14:24 2013 -0500
core: show timeouts when watchdog howls
commit f7a5bb2842037fa27dbc99d92c3fee7fe1bbbc2a
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Fri Jul 18 14:01:13 2014 -0400
Small modernizations
commit 6b9732b2bf0499c5e4ea8a9d4f6051d98033f680
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Mon Mar 3 19:49:40 2014 -0500
Be more verbose when bind or listen fails
Also be more verbose in devnode_acl_all().
commit 3fb97a58fa3f233cc980cdc4ae33230a361b3c34
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Fri Jul 18 21:44:59 2014 -0400
Nuke update-kbd-map
Our version has evolved independently of the original table
in systemd-config-keyboard, so it cannot be ever regenerated from
original upstream. Remove script to avoid confusion.
commit e091457e822ff35ff7b1d3b3a1f91c2ee6249e5a
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Fri Jul 18 21:44:58 2014 -0400
Makefile.am: tweaks to python commands
commit e7e9b6bb0b0bc5b1eb256a44f8afec6b634f26ef
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Fri Jul 18 21:44:58 2014 -0400
machinectl: make sure we are not reading an unitialized variable
commit 1651e2c61e544de9ca947c8b3202552b1272ef57
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Fri Jul 18 21:44:36 2014 -0400
man,journal: add note about sd_journal_get_cutoff_monotonic_usec return value
Also modify the function itself to be a bit simpler to read.
commit 01c3322e017989d25f7b4b51268245d5315ae678
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Fri Jul 18 21:44:36 2014 -0400
compress: fix return value
commit 901fd8164797f3eeb9921c85915dc409d49ab5d8
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Fri Jul 18 21:44:34 2014 -0400
resolved: do not use unitialized variable
commit 7566e26721ee95d6fc864e9e6654fb61bd3cd603
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Fri Jul 18 20:12:13 2014 -0400
barrier: initalize file descriptors with -1
Explicitly initalize descriptors using explicit assignment like
bus_error. This makes barriers follow the same conventions as
everything else and makes things a bit simpler too.
Rename barier_init to barier_create so it is obvious that it is
not about initialization.
Remove some parens, etc.
commit cbd4560ea2c9f0ae77df1fc64685ff4e559810b6
Author: Lennart Poettering <lennart at poettering.net>
Date: Fri Jul 18 21:01:22 2014 +0200
resolved: various bad memory access fixes to the cache
commit 878cd63db2d6cfc00ae4d68355a2d5402cd9f24f
Author: Lennart Poettering <lennart at poettering.net>
Date: Fri Jul 18 21:01:07 2014 +0200
resolved: fix bus signatures to follow family as int change
commit eccb01acfb327f1f6819c1f3851765049b156865
Author: David Herrmann <dh.herrmann at gmail.com>
Date: Fri Jul 18 17:46:14 2014 +0200
terminal: suppress warning in subterm
Empty format-strings are just fine if format-functions do more than
printing. This is the case here, so suppress the "empty format-string"
warning by using "%s" with an empty argument.
commit 86db5dfb6d334e583ea4161191754522ce850eed
Author: David Herrmann <dh.herrmann at gmail.com>
Date: Fri Jul 18 17:34:03 2014 +0200
terminal: add unifont font-handling
The unifont layer of libsystemd-terminal provides a fallback font for
situations where no system-fonts are available, or if you don't want to
deal with traditional font-formats for some reasons.
The unifont API mmaps a pre-compiled bitmap font that was generated out of
GNU-Unifont font-data. This guarantees, that all users of the font will
share the pages in memory. Furthermore, the layout of the binary file
allows accessing glyph data in O(1) without pre-rendering glyphs etc. That
is, the OS can skip loading pages for glyphs that we never access.
Note that this is currently a test-run and we want to include the binary
file in the GNU-Unifont package. However, until it was considered stable
and accepted by the maintainers, we will ship it as part of systemd. So
far it's only enabled with the experimental --enable-terminal, anyway.
commit 545149a2fc3523bbcbf3703fae3ae1ca5312f8c8
Author: David Herrmann <dh.herrmann at gmail.com>
Date: Fri Jul 18 17:26:23 2014 +0200
terminal: only build if --enable-terminal was specified
Whoopsy, I totally forgot adding the "if ENABLE_TERMINAL" markers. Do that
now that we know it builds fine everywhere.
commit 46f08bea4b09e2cce4b50e3c082df4a92a22598c
Author: Lennart Poettering <lennart at poettering.net>
Date: Fri Jul 18 16:15:12 2014 +0200
in-addr-util: remove family_to_string() API
we already have a more complete one with af_to_name(), that is generated
from the header files, no need to duplicate this.
commit 0dd25fb9f005d8ab7ac4bc10a609d00569f8c56a
Author: Lennart Poettering <lennart at poettering.net>
Date: Fri Jul 18 16:09:30 2014 +0200
change type for address family to "int"
Let's settle on a single type for all address family values, even if
UNIX is very inconsitent on the precise type otherwise. Given that
socket() is the primary entrypoint for the sockets API, and that uses
"int", and "int" is relatively simple and generic, we settle on "int"
for this.
commit f41925b4e442a34c93ad120ef1426c974a047ed1
Author: Thomas Blume <Thomas.Blume at suse.com>
Date: Fri Jul 18 09:13:36 2014 -0400
systemd-detect-virt: detect s390 virtualization
A system that is running on a logical partition (LPAR) provided by
PR/SM has access to physical hardware (except CPU). It is true that
PR/SM abstracts the hardware, but only for sharing purposes.
Details are statet at:
http://publib.boulder.ibm.com/infocenter/eserver/v1r2/topic/eicaz/eicazzlpar.htm
-->--
In other words, PR/SM transforms physical resources into virtual resources so
that many logical partitions can share the same physical resources.
--<--
Still, from the OS point of view, the shared virtual resource is real
hardware. ConditionVirtualization must be set to false if the OS runs
directly on PR/SM (e.g. in an LPAR).
[zj: reorder code so that variables are not allocated when #if-def is
false. Add commit message.]
commit 7f035ea56bc0b75327c54e8aa4a56d57ed00dd6d
Author: Lennart Poettering <lennart at poettering.net>
Date: Fri Jul 18 13:59:55 2014 +0200
update TODO
commit 3c0cf502796be355431d4a64d738e75f543aa51d
Author: Lennart Poettering <lennart at poettering.net>
Date: Fri Jul 18 13:59:49 2014 +0200
resolved: add more const
commit 3f8916fb0dd9eb8c4c4979045d3e2b223f776698
Author: Thomas Hindoe Paaboel Andersen <phomes at gmail.com>
Date: Fri Jul 18 13:50:12 2014 +0200
terminal: add format attributes
commit 41cb81eab988920ef35032ecba7002e06b927594
Author: Thomas Hindoe Paaboel Andersen <phomes at gmail.com>
Date: Fri Jul 18 13:32:01 2014 +0200
terminal: silence warning
commit d243773263630f1cbc5868a12476b17c335abec8
Author: Tom Gundersen <teg at jklm.no>
Date: Fri Jul 18 13:25:18 2014 +0200
networkd-wait-online: fix comilation warning
sd_rtnl_message_read_string() was changed to take a const argument, update the users.
commit a72e03749f445a85010e4518ff94aa0d109043a0
Author: David Herrmann <dh.herrmann at gmail.com>
Date: Fri Jul 18 13:00:30 2014 +0200
autogen: add "t" switch with --enable-terminal
Just temporarily add a "t" switch to "./autogen t" runs with
--enable-terminal. Once it's compile-tested enough, we can add it to the
default flags.
commit 037ee337f0f64bd35ced765f2e2d97f496d4e7c7
Author: David Herrmann <dh.herrmann at gmail.com>
Date: Fri Jul 18 12:58:00 2014 +0200
journal: reduce test-journal-send timeout from 10s to 1s
The sleep(10) in test-journal-send is quite aggressive. We need it only
for the journal to get our cgroup information. But even that information
is not vital to the test, so a sleep(1) should be just fine.
commit 5ab887e98d80ffaf05a97abe4cdc1553a85f0637
Author: David Herrmann <dh.herrmann at gmail.com>
Date: Thu Jul 17 11:10:53 2014 +0200
terminal: add systemd-subterm example
The systemd-subterm example is a stacked terminal that shows how to
use sd-term. Instead of rendering images and displaying it via X11/etc.,
it uses its parent terminal to display the page (terminal-emulator inside
a terminal-emulator) (like GNU-screen and friends do).
This is only for testing and not installed system-wide!
commit e432f9e8f999fe75d79a2499035c8e84b04a8b1a
Author: David Herrmann <dh.herrmann at gmail.com>
Date: Tue Jul 8 15:11:29 2014 +0200
terminal: add screen-handling
The screen-layer represents the terminal-side (compared to the host-side).
It connects term_parser with term_page and implements all the required
control sequences.
We do not implement all available control sequences. Even though our
parser recognizes them, there is no need to handle them. Most of them are
legacy or unused. We try to be as compatible to xterm, so if we missed
something, we can implement it later. However, all the VT510 / VT440 stuff
can safely be skipped (who needs terminal macros? WTF?).
The keyboard-handling is still missing. It will be added once
systemd-console is available and we pulled in the key-definitions.
commit 1c9633d669948155455e29b0c6e770995a8b1ca3
Author: David Herrmann <dh.herrmann at gmail.com>
Date: Sun Jun 15 14:50:00 2014 +0200
terminal: add parser state-machine
The term-parser is used to parse any input from TTY-clients. It reads CSI,
DCS, OSC and ST control sequences and normal escape sequences. It doesn't
do anything with the parsed data besides detecting the sequence and
returning it. The caller has to react to them.
The parser also comes with its own UTF-8 helpers. The reason for that is
that we don't want to assert() or hard-fail on parsing errors. Instead,
we treat any invalid UTF-8 sequences as ISO-8859-1. This allows pasting
invalid data into a terminal (which cannot be controlled through the TTY,
anyway) and we still deal with it in a proper manner.
This is _required_ for 8-bit and 7-bit DEC modes (including the g0-g3
mappings), so it's not just an ugly fallback because we can (it's still
horribly ugly but at least we have an excuse).
commit 28622e8f5b28412d97bf2f3a5df49c419be1e2c5
Author: David Herrmann <dh.herrmann at gmail.com>
Date: Fri Jun 13 19:00:29 2014 +0200
terminal: add page handling for terminals
The page-layer is a one-dimensional array of lines. Combined with the
one-dimensional lines, you get a two-dimensional page. However, both
implementations, lines and pages only deal with their own dimension. That
means, lines don't know anything about other lines, and pages don't know
anything about cells.
Apart from pages, this also introduces history objects. A history object
is a scroll-back buffer. As some pages like alt-buffers don't have
histories, we keep them separate.
Pages itself forward all cell-related operations to the related line. Only
line-related operations are directly handled by the page. This is mostly
scrolling and history. To support proper resizing, we also keep a
fill-state just like lines do for cells.
commit 952f4b59592088f15615eb404c828aaac31bfe82
Author: David Herrmann <dh.herrmann at gmail.com>
Date: Fri Jul 18 12:41:37 2014 +0200
terminal: extend RGB attributes
There're 3 supported color-modes: term-color-codes, 256-color-code and
rgb-color. We now use the term-color as default so zero(attr) will do what
you'd expect. Furthermore, we split rgb and 256color so users can forward
them properly without requiring an internal RGB converter.
Furthermore, a "hidden" field according to VT510rm manual is added.
commit 1716f6dcf54d4c181c2e2558e3d5414f54c8d9ca
Author: Lennart Poettering <lennart at poettering.net>
Date: Fri Jul 18 12:34:02 2014 +0200
resolved: add LLMNR support for looking up names
commit 9d485985338a46b8cb1acdf1af6c1eb2e88acfee
Author: Lennart Poettering <lennart at poettering.net>
Date: Fri Jul 18 02:36:10 2014 +0200
shared: rename PROTO_ADDRESS_SIZE() to FAMILY_ADDRESS_SIZE()
We mostly use "family" to refer to AF_INET, AF_INET6, etc, let's use
this terminology here, too
commit ca4e095ab9e970cb8fa472ae69ea1f0648041722
Author: Lennart Poettering <lennart at poettering.net>
Date: Fri Jul 18 02:35:16 2014 +0200
sd-rtnl: make string returned by sd_rtnl_message_read_string() const
commit 0204152684188302e6c6232e50f30997fecb4ae3
Author: Thomas Hindoe Paaboel Andersen <phomes at gmail.com>
Date: Thu Jul 17 23:53:59 2014 +0200
test-tables: fix build-scan
commit 6dcaa6f59a39dd4acc67fc2e4873c37e2ed46430
Author: Tom Gundersen <teg at jklm.no>
Date: Wed Jul 16 11:05:25 2014 +0200
sd-network: fixup api
Do not expose link_is_loopback, people should just get this from rtnl directly.
Do not expose NTP servers as IP addresses, these must be strings.
Expose ifindex as int, not unsigned. This is what the kernel (mostly) and glibc uses.
commit 7de12ae764e73730df0658f9fb04bcf42add48e2
Author: Tom Gundersen <teg at jklm.no>
Date: Wed Jul 16 10:52:47 2014 +0200
networkd-wait-online: track links
Rather than refetching the link information on ever event, we liston to
rtnl to track them. Much code stolen from resolved.
This will allow us to simplify the sd-network api and don't expose
information available over rtnl.
commit 560852ced07a647e2d288ce2932aaf608712867d
Author: Tom Gundersen <teg at jklm.no>
Date: Thu Jul 17 16:49:39 2014 +0200
sd-network: expose 'unmanaged' as a regular state
This is useful to save in the consumer of the lib, unlike ENODATA/EBUSY which
means that the user should wait until a useful state is available.
commit 962225baa862c2023790b3c7f140d22bac9e801f
Author: Thomas Hindoe Paaboel Andersen <phomes at gmail.com>
Date: Thu Jul 17 21:12:39 2014 +0200
resolved: silence warnings
No need to write to r here since it will be overwritten as the first
step in parse_fail.
commit 99dfe1345caeb2cd107f69111aba8a9db18a0e6f
Author: Thomas Hindoe Paaboel Andersen <phomes at gmail.com>
Date: Thu Jul 17 20:23:53 2014 +0200
test-pty: silence a warning
commit f12ea7dad09366b2d6cc0c28609a72094a4c9353
Author: Thomas Hindoe Paaboel Andersen <phomes at gmail.com>
Date: Thu Jul 17 19:59:47 2014 +0200
resolved: remove unused variable
commit b6b63571ae3eca1741d54172922961af972b8f20
Author: Lennart Poettering <lennart at poettering.net>
Date: Thu Jul 17 19:39:23 2014 +0200
update TODO
commit 322345fdb9865ef2477fba8e4bdde0e1183ef505
Author: Lennart Poettering <lennart at poettering.net>
Date: Thu Jul 17 19:38:37 2014 +0200
resolved: add DNS cache
commit c5ed93163e6ef51a7462aa558a7e0912b17c4951
Author: Lennart Poettering <lennart at poettering.net>
Date: Thu Jul 17 19:32:10 2014 +0200
resolved: don't trip up when an rtlink message does not include the MTU
commit ea30eb86e5a370fb8cb94e352e075e24d940d159
Author: Lennart Poettering <lennart at poettering.net>
Date: Thu Jul 17 19:27:48 2014 +0200
nss-util: be a tiny bit more compatible with glibc's lookup behaviour regarding IPv6
Check for RES_USE_INET6 before we prefer IPv6 over IPv4, for all our NSS
modules. (Not that the DNS resolver that is configured with this matters
to us, but hey, let's try to be compatible).
commit a71516dfd1858f37712ef52a288bf5fb274383e0
Author: Thomas Blume <Thomas.Blume at suse.com>
Date: Thu Jul 17 11:25:37 2014 +0200
detect-virt: Fix Xen domU discovery
The conditional for detection xen virtualization contained a little mistake.
It is checking for i to be empty: 'if (!i) {', but it must check for cap instead,
because: 'cap = strsep(&i, ",")' will set cap to the discovered value and i to
the next value after the separator.
Hence, i would be empty, if there is only control_d in domcap, leading to a wrong
domU detection.
https://bugs.freedesktop.org/show_bug.cgi?id=77271
commit 6eb33ab207d090a44f6a71c9e303a3efaabd0946
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Thu Jul 17 08:10:10 2014 -0400
networkd: fix colud typo
sztanpet> if your already there, might fixing "Colud" to Could in 53af3b7
commit fa8b8030a476f1a4fd8c0f00423351788d36bd3a
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Thu Jul 17 08:08:11 2014 -0400
units: fix typo
vrutkovs> zbyszek:
http://cgit.freedesktop.org/systemd/systemd/diff/units/systemd-journal-upload.service.in?id=ad95fd1d2b9c6344864857c2ba7634fd87753f8e - typo in Group name
commit 84da4a3022bc599b26d9601cf1b7bf51d1d9f915
Author: David Herrmann <dh.herrmann at gmail.com>
Date: Thu Jun 12 17:51:14 2014 +0200
ui/term: add line/cell/char handling for terminal pages
This commit introduces libsystemd-ui, a systemd-internal helper library
that will contain all the UI related functionality. It is going to be used
by systemd-welcomed, systemd-consoled, systemd-greeter and systemd-er.
Further use-cases may follow.
For now, this commit only adds terminal-page handling based on lines only.
Follow-up commits will add more functionality.
commit 3496b9eeafa50234371da1642dca424e4ca0e5f4
Author: David Herrmann <dh.herrmann at gmail.com>
Date: Thu Jul 17 11:48:03 2014 +0200
nspawn: fix barrier-destroy call
I dropped the cleanup-helper before pushing so use _cleanup_() directly.
commit a47d1dfd0823cd3978dd10e217dadcee7e01b265
Author: David Herrmann <dh.herrmann at gmail.com>
Date: Fri Jul 11 16:29:56 2014 +0200
shared: add PTY helper
This Pty API wraps the ugliness that is POSIX PTY. It takes care of:
- edge-triggered HUP handling (avoid heavy CPU-usage on vhangup)
- HUP vs. input-queue draining (handle HUP _after_ draining the whole
input queue)
- SIGCHLD vs. HUP (HUP is no reliable way to catch PTY deaths, always
use SIGCHLD. Otherwise, vhangup() and friends will break.)
- Output queue buffering (async EPOLLOUT handling)
- synchronous setup (via Barrier API)
At the same time, the PTY API does not execve(). It simply fork()s and
leaves everything else to the caller. Usually, they execve() but we
support other setups, too.
This will be needed by multiple UI binaries (systemd-console, systemd-er,
...) so it's placed in src/shared/. It's not strictly related to
libsystemd-terminal, so it's not included there.
commit a2da110b78abe4e4b1b6d8ae4ef78b087c4dcc8b
Author: David Herrmann <dh.herrmann at gmail.com>
Date: Sun Jul 13 12:14:45 2014 +0200
nspawn: use Barrier API instead of eventfd-util
The Barrier-API simplifies cross-fork() synchronization a lot. Replace the
hard-coded eventfd-util implementation and drop it.
Compared to the old API, Barriers also handle exit() of the remote side as
abortion. This way, segfaults will not cause the parent to deadlock.
EINTR handling is currently ignored for any barrier-waits. This can easily
be added, but it isn't needed so far so I dropped it. EINTR handling in
general is ugly, anyway. You need to deal with pselect/ppoll/... variants
and make sure not to unblock signals at the wrong times. So genrally,
there's little use in adding it.
commit 279da1e3f99b9c767a69849b5445e3cfd8d83376
Author: David Herrmann <dh.herrmann at gmail.com>
Date: Thu Jul 10 15:25:47 2014 +0200
shared: add generic IPC barrier
The "Barrier" object is a simple inter-process barrier implementation. It
allows placing synchronization points and waiting for the other side to
reach it. Additionally, it has an abortion-mechanism as second-layer
synchronization to send abortion-events asynchronously to the other side.
The API is usually used to synchronize processes during fork(). However,
it can be extended to pass state through execve() so you could synchronize
beyond execve().
Usually, it's used like this (error-handling replaced by assert() for
simplicity):
Barrier b;
r = barrier_init(&b);
assert_se(r >= 0);
pid = fork();
assert_se(pid >= 0);
if (pid == 0) {
barrier_set_role(&b, BARRIER_CHILD);
...do child post-setup...
if (CHILD_SETUP_FAILED)
exit(1);
...child setup done...
barrier_place(&b);
if (!barrier_sync(&b)) {
/* parent setup failed */
exit(1);
}
barrier_destroy(&b); /* redundant as execve() and exit() imply this */
/* parent & child setup successful */
execve(...);
}
barrier_set_role(&b, BARRIER_PARENT);
...do parent post-setup...
if (PARENT_SETUP_FAILED) {
barrier_abort(&b); /* send abortion event */
barrier_wait_abortion(&b); /* wait for child to abort (exit() implies abortion) */
barrier_destroy(&b);
...bail out...
}
...parent setup done...
barrier_place(&b);
if (!barrier_sync(&b)) {
...child setup failed... ;
barrier_destroy(&b);
...bail out...
}
barrier_destroy(&b);
...child setup successfull...
This is the most basic API. Using barrier_place() to place barriers and
barrier_sync() to perform a full synchronization between both processes.
barrier_abort() places an abortion barrier which superceeds any other
barriers, exit() (or barrier_destroy()) places an abortion-barrier that
queues behind existing barriers (thus *not* replacing existing barriers
unlike barrier_abort()).
This example uses hard-synchronization with wait_abortion(), sync() and
friends. These are all optional. Barriers are highly dynamic and can be
used for one-way synchronization or even no synchronization at all
(postponing it for later). The sync() call performs a full two-way
synchronization.
The API is documented and should be fairly self-explanatory. A test-suite
shows some special semantics regarding abortion, wait_next() and exit().
Internally, barriers use two eventfds and a pipe. The pipe is used to
detect exit()s of the remote side as eventfds do not allow that. The
eventfds are used to place barriers, one for each side. Barriers itself
are numbered, but the numbers are reused once both sides reached the same
barrier, thus you cannot address barriers by the index. Moreover, the
numbering is implicit and we only store a counter. This makes the
implementation itself very lightweight, which is probably negligible
considering that we need 3 FDs for a barrier..
Last but not least: This barrier implementation is quite heavy. It's
definitely not meant for fast IPC synchronization. However, it's very easy
to use. And given the *HUGE* overhead of fork(), the barrier-overhead
should be negligible.
commit 18abe7bd3e13525b257da69ac49ff7841c289567
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Wed Jul 16 22:52:53 2014 -0400
core: nicer message when inotify watches are exhausted
inotify_add_watch returns ENOSPC, which translates to
"No space left on device", which is misleading.
https://bugs.freedesktop.org/show_bug.cgi?id=73628
commit 8c275eef38bf7e3e592e4cb35a497522d1f15bb6
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Wed Jul 16 22:17:29 2014 -0400
man: document yearly and annually in systemd.time(7)
https://bugs.freedesktop.org/show_bug.cgi?id=81158
commit 39762fdf67fd338e442abd25246ea4f0248f9bff
Author: Lennart Poettering <lennart at poettering.net>
Date: Thu Jul 17 01:58:14 2014 +0200
resolved: enforce limit on concurrent outstanding queries
commit 634af5665fda8776d22624d947c8de830e30a874
Author: Lennart Poettering <lennart at poettering.net>
Date: Thu Jul 17 01:48:40 2014 +0200
sd-login: always use "indices" as plural of "index"
So far both "indexes" and "indices" was used. Let's clean this up, and
stick to indices, since it appears to be used more frequently.
commit d12b8cad40aa78fc948362340204c3fde778082d
Author: Lennart Poettering <lennart at poettering.net>
Date: Thu Jul 17 01:46:21 2014 +0200
sd-network: rename "index" parameter to "ifindex"
makes things a bit clearer and avoids any clashes with libc's index()
symbol.
commit 8b9652a711ea3cebfc607435d66590b4a18aac77
Author: Lennart Poettering <lennart at poettering.net>
Date: Thu Jul 17 01:41:03 2014 +0200
sd-network: if a boolean is mising, we should just take it as false
That way, we can deprecate fields later on without problems
commit a2ba62c719224a4b47751623ca5e8b0333f49721
Author: Lennart Poettering <lennart at poettering.net>
Date: Thu Jul 17 01:39:46 2014 +0200
sd-network: remove redundant array size parameter from functions that return arrays
As long as the number of array entries is relatively small it's nicer to
simply return the number of entries directly, instead of using a size_t*
return parameter for it.
commit b45d9e86e41c453e0b57f2f8316bef06dee42e5a
Author: Lennart Poettering <lennart at poettering.net>
Date: Thu Jul 17 01:14:19 2014 +0200
resolved: fix check for mdns names
commit faec72d5dedae93f43c2dd624de1392ed9bacd80
Author: Lennart Poettering <lennart at poettering.net>
Date: Thu Jul 17 01:14:07 2014 +0200
resolved: we are never authoritative for localhost
commit e1c959948c0e31d6997bcdfbabfbd077784b2bae
Author: Lennart Poettering <lennart at poettering.net>
Date: Thu Jul 17 01:13:22 2014 +0200
resolved: properly handle MTU logic
commit 76f468c8ea568fce98fa75d7f1d540256eb0940a
Author: Lennart Poettering <lennart at poettering.net>
Date: Thu Jul 17 01:10:47 2014 +0200
dns-domain: enforce maximum DNS domain name length
commit 0014a4ad505d119c7ac4346d9d774c3f17f663a5
Author: Lennart Poettering <lennart at poettering.net>
Date: Thu Jul 17 01:07:17 2014 +0200
sd-network: fix parameter order for sd_network_monitor_new()
Constructors should return the object they created as first parameter,
except when they are generated as a child/member object of some other
object in which case that should be first.
commit 260b6323cc2aebe722d5b8e43fa63a502f906774
Author: Daniel Korostil <ted.korostiled at gmail.com>
Date: Thu Jul 17 02:07:29 2014 +0300
po: add Ukrainian translation
commit 54f3ff079f05fd024ff3686eeea26ab705994494
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Tue Jul 8 09:55:15 2014 -0400
journal/verify: flush progress bar, print offset in more places
Before, fragments of the progress bar would remain when
errors or warnings were printed.
commit 86bbe5bfbc0bf213e9d3fafbe6c64d59b9fc90ea
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Wed Jul 9 22:29:24 2014 -0400
test-tables: add new entries
One missing string found.
A few things had to be moved around to make it possible to test them.
commit e46eab86cd119b04ac14f5a2b404a614ae350016
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Wed Jul 16 18:37:52 2014 -0400
tty-ask-password-agent: modernization
commit ed88bcfb7c15029f9fc95ee2380759a9eb782d46
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Wed Jul 16 18:59:49 2014 -0400
Be more careful when checking for empty files
If we want to avoid reading a totally empty file, it seems better
to check after we have opened the file, not before.
commit 36f822c4bd077f9121757e24b6516e5c7ada63b5
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Wed Jul 16 18:27:12 2014 -0400
Let config_parse open file where applicable
Special care is needed so that we get an error message if the
file failed to parse, but not when it is missing. To avoid duplicating
the same error check in every caller, add an additional 'warn' boolean
to tell config_parse whether a message should be issued.
This makes things both shorter and more robust wrt. to error reporting.
commit e1bbf3d12f28b8e3d4394f2b257e1b7aea3d10fc
Author: Kay Sievers <kay at vrfy.org>
Date: Wed Jul 16 23:50:45 2014 +0200
resolved: do not free() sd_dhcp_lease_get_dns() results
commit 02bc213d0431072a75105162412303359ce3d2c7
Author: Lennart Poettering <lennart at poettering.net>
Date: Wed Jul 16 22:51:29 2014 +0200
update TODO
commit 309e9d86f0e7f9c5f0a2a09227bdfdb3174d4436
Author: Lennart Poettering <lennart at poettering.net>
Date: Wed Jul 16 22:50:41 2014 +0200
resolved: properly pass canonical name information to resolving client
Also, hook up nss-resolve to make use of this information
commit 8ba9fd9cee0eef572f7b3ed7a8c3ed31160e93d3
Author: Lennart Poettering <lennart at poettering.net>
Date: Wed Jul 16 22:09:00 2014 +0200
resolved: add CNAME lookup support
commit 75616a1332aff00d27db713cda3bd93c508a5b59
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Wed Jul 16 16:44:45 2014 -0400
missing.h: add IFLA_MACVLAN_FLAGS
Now we are getting into kernel < 3.4 territory...
https://bugs.freedesktop.org/show_bug.cgi?id=80095
commit a9d65ac908d8311c861ccf6d19d8489249244f77
Author: Lennart Poettering <lennart at poettering.net>
Date: Wed Jul 16 20:16:30 2014 +0200
update TODO
commit ad867662936a4c7ab2c7116d804c272338801231
Author: Lennart Poettering <lennart at poettering.net>
Date: Wed Jul 16 20:15:47 2014 +0200
resolved: support for TCP DNS queries
commit c73ce96b569e2f10dff64b7dc0bd271972674c2a
Author: Lennart Poettering <lennart at poettering.net>
Date: Wed Jul 16 18:04:14 2014 +0200
dns-packet: allow dynamic resizing of DNS packets
commit 3cb10d3a0b1b6a7c44f307f2abb5215104e16941
Author: Lennart Poettering <lennart at poettering.net>
Date: Wed Jul 16 18:03:46 2014 +0200
dns-domain: introduce macros for accessing all DNS header fields
commit acbc5016027950efd543e0b054e6370a8a4e17f9
Author: Lennart Poettering <lennart at poettering.net>
Date: Wed Jul 16 17:24:43 2014 +0200
update TODO
commit 6b609469ae315e2dd7b4eb6498f09f04c60329e7
Author: Kay Sievers <kay at vrfy.org>
Date: Wed Jul 16 15:14:46 2014 +0200
journal: add systemd-journal-remote to sysusers
commit 40780a626def76f611807b71994fdaafac4d2b7b
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Wed Jul 16 07:52:41 2014 -0400
journal-remote: remove obsolete variable
commit a812a8816c350261ab1ed6a2583fa4ec09b1eb4d
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Wed Jul 16 07:49:21 2014 -0400
journal-remote: fix double typedef and add missing header
commit 4e4877d96c8afd0818176a472080986bbf28ea3a
Author: Sjoerd Simons <sjoerd at luon.net>
Date: Wed Jul 16 12:09:56 2014 +0200
shared: include stdbool.h in mkdir.h
commit 5c059d2ead0787a90732d27ed1b485d236abf641
Author: Michael Biebl <biebl at debian.org>
Date: Wed Jul 16 12:09:47 2014 +0200
build-sys: don't move libgudev to /lib
It depends on libgobject and libgmodule which are installed in /usr/lib.
commit 3f2b585466f73031dfbd25c0cbe5972b41fb689c
Author: Thomas Hindoe Paaboel Andersen <phomes at gmail.com>
Date: Wed Jul 16 08:59:13 2014 +0200
test-compress-benchmark: add missing % before PRIu64 format
commit eda8090ba9abc7d00f30e2b4cb34273cde799704
Author: Thomas Hindoe Paaboel Andersen <phomes at gmail.com>
Date: Wed Jul 16 08:52:11 2014 +0200
test-socket-util: silence warnings
commit 4bf04322b8b7ecca4f3d65cfc642d0ac16356129
Author: Michael Olbrich <m.olbrich at pengutronix.de>
Date: Tue Jul 15 18:28:10 2014 +0200
units/serial-getty at .service: use the default RestartSec
For pluggable ttys such as USB serial devices, the getty is restarted
and exits in a loop until the remove event reaches systemd. Under
certain circumstances the restart loop can overload the system in a
way that prevents the remove event from reaching systemd for a long
time (e.g. at least several minutes on a small embedded system).
Use the default RestartSec to prevent the restart loop from
overloading the system. Serial gettys are interactive units, so
waiting an extra 100ms really doesn't make a difference anyways
compared to the time it takes the user to log in.
commit 4e0296a943e85316ecce0324248f9543887b8a9a
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Tue Jul 15 22:47:03 2014 -0400
resolve: avoid use of uninitalized variable
commit da2e1c71662c348d31f0fc39e42963283c550a28
Author: Marc-Antoine Perennou <Marc-Antoine at Perennou.com>
Date: Wed Jul 16 10:13:06 2014 +0900
test-compress-benchmark: silence warnings
and btw make it pass for 32bits where size_t != uint64_t
commit 92b10cbccdeef3896f45dc340eb7779c78577ede
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Fri Jul 11 23:20:08 2014 -0400
journal-remote: avoid copying input data
Instead of copying fields into new memory allocations, simply keep pointers
into the receive buffer. Data in this buffer is only copied when there is not
enough space for new data and a large chunk of the buffer contains old data.
commit 874bc134ac6504c45e94174e37af13ff21a6bfe2
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Mon Jul 14 16:53:23 2014 -0400
Clear up confusion wrt. ENTRY_SIZE_MAX and DATA_SIZE_MAX
Define DATA_SIZE_MAX to mean the maximum size of a single
field, and ENTRY_SIZE_MAX to mean the size of the whole
entry, with some rough calculation of overhead over the payload.
Check if entries are not too big when processing native journal
messages.
commit 93c0969cf91c4e4973806181a6098b66a4e8e2f8
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Fri Jul 11 23:17:57 2014 -0400
µhttp-util: fix compilation without gnutls
commit a8ca47227d1ab716ba928d8b9334b655ca5a840c
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Thu Jul 10 15:03:28 2014 -0400
man: describe new filename rules for journal-remote
commit 330427e271c37400f091bf4570b5d8fa96574d36
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Thu Jul 10 14:50:50 2014 -0400
man: document systemd-journal-upload
commit 29fc0ddcd737af906986d4029579d4dfe838ba02
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Tue Jul 15 22:22:05 2014 -0400
journal-upload: add config file
commit 5bc891206dd8eb4e4df58f502b0184b8426caf22
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Thu Jul 10 01:39:49 2014 -0400
journal-remote: let user specify just the main part of the url
We can append /upload ourselves.
commit 9ff48d0982fcb97923955685fe9fa4e0e67cb238
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Wed Jul 2 00:15:37 2014 -0400
journal-remote: rework fd and writer reference handling
commit a83f403760cb63b1bf7787e9ff325ffb6d891d39
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Tue Jul 1 23:18:44 2014 -0400
journal-remote: improve some messages
commit 4a0a6ac03864998c83918175609275df712a5a05
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Tue Jul 1 23:07:45 2014 -0400
Fix problem with allocating large buffers and log leftovers
commit e9f3d2d508bfd9fb5b54e82994bda365a71eb864
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Tue Jul 15 21:03:11 2014 -0400
Constify ConfigTableItem tables
commit 8201af08fa09c2bd0f005fbe262f27e2c5bd2d86
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Sun Jun 22 13:36:31 2014 -0400
journal-remote: allow splitting incoming logs by source host
Previously existing scheme where the file name would be based on
the source was just too ugly and unpredicatable. Now there are
only two options:
1. just one file (until rotation),
2. one file per source host, using the hostname as filename part.
For the cases where the source is specified by the user, only
option one is allowed, and the full of the file must be specified.
commit 24739b7b757d22a4b629d410a768e4e85fb02282
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Mon Jun 30 01:11:32 2014 -0400
Allow addresses to be specified for --listen-... args
Hostnames still aren't accepted.
commit d3b7fd541b97a946bc0c351357d0f2d277f119cd
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Mon Jun 30 00:57:15 2014 -0400
Add simple generator of fake journal export stream
commit ef274c6444d5c5aa93ffd58c7ec6c12295bf55dc
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Sun Jun 29 22:06:48 2014 -0400
shared/socket-label: fix error message
Was: Failed to listen on [::]:2000: Success
commit b31f535c9a7af9b5f5c4f5d4e52be9159af72127
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Sun Jun 29 19:24:56 2014 -0400
shared/socket-util: add function to query remote address
commit ad95fd1d2b9c6344864857c2ba7634fd87753f8e
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Sun Mar 30 23:08:02 2014 -0400
journal-remote: add units and read certs from default locations
commit a3152e7655231b94fa7b9582906fb86ab00b9c99
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Tue Apr 1 20:30:13 2014 -0400
journal-upload: add watchdog support
commit 722b6795655149a68277b3cffeba711e1d440e5a
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Tue Apr 1 09:09:35 2014 -0400
journal-upload: make state persistent
commit eacbb4d33e2bb5c54311544851140efe3dd0f774
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Sat Mar 29 00:37:25 2014 -0400
journal-upload: use journal as the source
commit 7449bc1f34c206e3ff8e274cd74e2db950d492a1
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Sat Mar 29 00:44:48 2014 -0400
journal-upload: HTTPS support
commit 3d090cc6f34e5970765dd1e7ee5e648a056d180d
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Mon Mar 17 22:54:28 2014 -0400
journal-upload: a tool to push messages to systemd-journal-remote
commit 851d4e2a67efb2c8777df151b697391ff1a76af0
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Sun Mar 30 22:35:37 2014 -0400
journal-remote: reject fields above maximum size
Also fix an infinite loop on E2BIG.
Remember what range we already scanned for '\n', to avoid
quadratic behaviour on long "text" fields.
commit 5c879495eab608bf9b6e7bec1020d916a0503b6e
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Sun Mar 23 12:36:05 2014 -0400
journal-remote: small fixes
commit 36ef43edcf1c9640b3fda017b381c4b1854641f4
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Mon Mar 17 22:52:53 2014 -0400
build-sys: add check for libcurl
commit 1e4e7b71e1938daa9b2b9718a9f54c69017a9ef5
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Tue Mar 25 22:30:24 2014 -0400
Move network-related journal programs to src/journal-remote/
Directory src/journal has become one of the largest directories,
and since systemd-journal-gatewayd, systemd-journal-remote, and
forthcoming systemd-journal-upload are all closely related, create
a separate directory for them.
commit 5937a4d4f263a5a3254e081c6dbb1ea2f860d471
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Sat Mar 29 11:58:11 2014 -0400
microhttp-util: rework gnutls logging
commit b3306e9c3c1e036396bc6bf74555eecea3f45ad9
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Sun Mar 30 14:20:34 2014 -0400
journal: allow files with no data whatsoever
If a file was opened for writing, and then closed immediately without
actually writing any entries, on subsequent opening, it would be
considered "corrupted". This should be totally fine, and even in
read mode, an empty file can become non-empty later on.
commit b7e6c03d3bb4e571ad3391862e3f5e4d6bb0cfbb
Author: Kay Sievers <kay at vrfy.org>
Date: Wed Jul 16 03:48:10 2014 +0200
resolved: add busname unit file
commit 18641cb17e2d5e95ba0edfd7f441df1998f8abd2
Author: Kay Sievers <kay at vrfy.org>
Date: Wed Jul 16 03:39:09 2014 +0200
resolved: add legacy dbus service and policy files
commit f1f520e8dfe2072a6d8c50d35bc9f2f145596aa5
Author: Lennart Poettering <lennart at poettering.net>
Date: Wed Jul 16 03:32:29 2014 +0200
update TODO
commit 4d1cf1e229c9bdbc44778c0863eaad918f5724e7
Author: Lennart Poettering <lennart at poettering.net>
Date: Wed Jul 16 03:31:30 2014 +0200
resolved: add small NSS module that uses resolved to resolve DNS names
commit 555bd6e95bf2b469306d9cd86e126c0122d0895b
Author: Lennart Poettering <lennart at poettering.net>
Date: Wed Jul 16 03:30:40 2014 +0200
nss: various minor fixes to nss-myhostname + nss-mymachines
commit 1fa65c593c6d2fbafe9d0f7caa6eb1c8034da2e0
Author: Lennart Poettering <lennart at poettering.net>
Date: Wed Jul 16 03:29:20 2014 +0200
dns-domain: never allow labels that are larger than 63 chars
commit 3fe1169fe3a692b8416848abc451bd1e4cbc4e4a
Author: Lennart Poettering <lennart at poettering.net>
Date: Wed Jul 16 03:28:52 2014 +0200
dns-domain: fix generation of reverse IP address lookup name
commit b9d394ea565fd742bcdd34e8dd61ae07c58a9565
Author: Lennart Poettering <lennart at poettering.net>
Date: Wed Jul 16 03:28:18 2014 +0200
resolve: add distinct bus error code for hosts that exist but lack A or AAAA records
commit 9d6db739ce1eaa3eace21801fd606d523b73c8f4
Author: Lennart Poettering <lennart at poettering.net>
Date: Wed Jul 16 00:31:27 2014 +0200
update TODO
commit 74b2466e14a1961bf3ac0e8a60cfaceec705bd59
Author: Lennart Poettering <lennart at poettering.net>
Date: Wed Jul 16 00:26:02 2014 +0200
resolved: add a DNS client stub resolver
Let's turn resolved into a something truly useful: a fully asynchronous
DNS stub resolver that subscribes to network changes.
(More to come: caching, LLMNR, mDNS/DNS-SD, DNSSEC, IDN, NSS module)
commit 337ede5693cb8860ee86a2d71ffedec682abf6bc
Author: Thomas Hindoe Paaboel Andersen <phomes at gmail.com>
Date: Tue Jul 15 20:38:49 2014 +0200
networkd: remove unused variable
commit 53af3b7564d9c16720aa06b8bdd2aa054f952bff
Author: Tom Gundersen <teg at jklm.no>
Date: Tue Jul 15 19:07:35 2014 +0200
networkd: netdev - set mac for bond/bridge devicse
Suggested by poma.
commit f5de5b00204f041aaec828d336c8afd9e860a5c3
Author: Tom Gundersen <teg at jklm.no>
Date: Tue Jul 15 18:55:31 2014 +0200
sd-dhcp-client: make request broadcasts opt-in
It appears there is no good way to decide whether or not broadcasts should be enabled,
there is hardware that must have broadcast, and there are networks that only allow
unicast. So we give up and make this configurable.
By default, unicast is used, but if the kernel were to inform us abotu certain
interfaces requiring broadcast, we could change this to opt-in by default in
those cases.
commit 30632d97d9d68c8202e562f34afae8f8d6e9c377
Author: Kay Sievers <kay at vrfy.org>
Date: Tue Jul 15 17:35:53 2014 +0200
rules: uaccess - add ID_SOFTWARE_RADIO
On Tue, Jul 15, 2014 at 1:52 PM, Alick Zhao <alick9188 at gmail.com> wrote:
>>>
>>> So maybe ID_SOFTWARE_RADIO ?
>>
>> Hmm, SDR is more a term for a generic technology than for a device
>> class. To me it does not really sound like an administrator would know
>> what this is.
>>
>> What exactly is the device or subsystem you want to make accessible to
>> locally logged-in users only?
>
> Initially it is bladeRF, but many more are of interest: USRP, rtl-sdr,
> HackRF, ... [1]
>
> I agree an administrator might not know what SDR is, since it is
> currently still not widely known, and makes sense only for amateurs
> and researchers. But as a SDR fan, I see many new SDR peripherals
> are created recently, and expect to see more. So a generic ID seems
> reasonable to me.
>
> [1] http://en.wikipedia.org/wiki/List_of_software-defined_radios
commit 285cd771cbe275265e165bdb5650b92b31eeab47
Author: Umut Tezduyar Lindskog <umut.tezduyar at axis.com>
Date: Tue Jul 15 08:36:29 2014 +0200
core: fix oneshot service resource control
Oneshot services's cgroup is removed when the service
exits. An assert is hit otherwise.
commit c0a67aef31bb9716617ffe150ca8be19c5df203e
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Mon Jul 14 19:24:46 2014 -0400
shell-completion: restore completion for -p
It was broken since systemd was moved out of /bin.
For zsh it was never there.
commit ae2db4e7e868fb89f5053a962a3a43337ddfd4e0
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Mon Jul 14 18:29:27 2014 -0400
timesyncd: add sockaddr_pretty wrapper
commit c566ee3253132cc2ec37ed04c5bccbadf8e60c58
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Tue Jul 15 09:52:17 2014 -0400
timesyncd: only listen to clock changes when connected
This reverts previous commit and applies a different fix.
manager_clock_watch() callback calls manager_send_request() to kick
off a resync. We can only do that when we're actually connected to
something. It is not useful to setup the callback from manager_new().
Now the callback will be dropped in manager_connect() and requested
in manager_begin().
https://bugs.freedesktop.org/show_bug.cgi?id=80932
commit afc7b1b9c170b9d23a3d91367e00f33b2ee2e89e
Author: Kay Sievers <kay at vrfy.org>
Date: Tue Jul 15 02:24:35 2014 +0200
timesyncd: suppress resync at system time change when not connected
Jul 04 17:46:03 orchid systemd[1]: Starting Network Time Synchronization...
Jul 04 17:46:03 orchid systemd[1]: Started Network Time Synchronization.
Jul 04 17:46:22 orchid systemd-timesyncd[301]: System time changed. Resyncing.
Jul 04 17:46:22 orchid systemd-timesyncd[301]: Assertion 'm->current_server_name'
https://bugs.freedesktop.org/show_bug.cgi?id=80932
commit 64dfe7b74446bd56e2d0e1588f900372ac13ae42
Author: Kay Sievers <kay at vrfy.org>
Date: Tue Jul 15 02:04:47 2014 +0200
rules: consistently use "?*" instead of "*?"
commit 99f9dd8d3fa4244e907af3720643ad98fa1e7ecf
Author: Tom Gundersen <teg at jklm.no>
Date: Mon Jul 14 22:08:10 2014 +0200
TODO
commit 679b3605f0ea52ee56ae76e57dfd17bcfef5b122
Author: Tom Gundersen <teg at jklm.no>
Date: Sun Jul 13 01:11:52 2014 +0200
networkd: link - fix memory leak
Make link_initialized() idempotent to avoid taking refs on several udev_device
objects.
commit 5347925a59530bd4e6616eb8c8d43a02c3e14c46
Author: Tom Gundersen <teg at jklm.no>
Date: Sat Jul 12 23:15:17 2014 +0200
test: network - skip if we don't have permissions to create netdevs
commit 1231c4d238844e77018caf5b5852f01d96373c47
Author: Tom Gundersen <teg at jklm.no>
Date: Sat Jul 12 23:07:33 2014 +0200
sd-dhcp-server: make gcc happy
It complains about optoffset possibly being uninitialized. It is wrong,
but let's just initialize it.
commit 4b4923e65423e60d755841b5b264730e8f3deab3
Author: Tom Gundersen <teg at jklm.no>
Date: Sat Jul 12 23:07:33 2014 +0200
sd-dhcp6-client: make gcc happy
It complains about {max,init}_retransmit_time possibly being
uninitialized. It is wrong, but let's just initialize it.
commit 3be1d7e0c5bf60658d34eb6311d4e77c6803578c
Author: Tom Gundersen <teg at jklm.no>
Date: Sun Jul 6 14:07:34 2014 +0200
networkd: netdev - introduce vtable for netdev kinds
Split each netdev kind into its own .h/.c.
commit 2023dc8a9a7d59eab16e020bbcd38b9e377ea452
Author: Tom Gundersen <teg at jklm.no>
Date: Fri Jul 4 17:03:37 2014 +0200
networkd: netdev - rework load_one
We now:
- parse config
- match on environment
- verify and complement config
- create netdev
commit 6235b3def8f58afe5777f1f5b4e7951f9396c32c
Author: Tom Gundersen <teg at jklm.no>
Date: Sat Jul 5 15:00:59 2014 +0200
networkd: netdev - split out bridge creation
commit 3f2650377631aed3bc26fdbc3a2eef6e33cdf7e7
Author: Tom Gundersen <teg at jklm.no>
Date: Sat Jul 5 14:53:54 2014 +0200
networkd: netdev - rename 'enslave' to 'join'
Enslave only really makes sense when referring to bridges and bonds, so try to be
a bit more neutral.
commit 7c1cff4ff79f3121189403a8c1b7c350925b3aaa
Author: Tom Gundersen <teg at jklm.no>
Date: Mon Jul 14 12:25:42 2014 +0200
man: systemd.netdev - make it clear that we do not touch preexisting netdevs
We will happily use bridges/bonds as master devices, but we will not change their settings if they were created by
someone else.
commit dde2efef37b25f759a8690be7b8be353daa3ff75
Author: Tom Gundersen <teg at jklm.no>
Date: Mon Jul 14 12:14:23 2014 +0200
networkd: add back route destination support
This was accidentally dropped when adding metric support.
commit b621239e29ac5483fb3f340d4e46fbb4b081fee7
Author: Tom Gundersen <teg at jklm.no>
Date: Mon Jul 14 12:13:45 2014 +0200
networkd: bond - explicitly map to kernel mode values
commit edb85f0d8d0a84f27308a3728f3fde3c52b9dce2
Author: Susant Sahani <susant at redhat.com>
Date: Mon Jul 14 13:34:18 2014 +0530
networkd: dhcp add vendor class indentifier option 60
Vendor Class Identifier be used by DHCP clients to identify
their vendor type and configuration. When using this option,
vendors can define their own specific identifier values, such
as to convey a particular hardware or operating system
configuration or other identifying information.
Vendor-specified DHCP options—features that let administrators assign
separate options to clients with similar configuration requirements.
For example, if DHCP-aware clients for example we want to separate
different gateway and option for different set of people
(dev/test/hr/finance) in a org or devices for example web/database
servers or let's say in a embedded device etc and require a different
default gateway or DNS server than the rest of clients.
commit 5d8e593dce074bff966fc0a46579c61b4f3bc33a
Author: Susant Sahani <susant at redhat.com>
Date: Thu Jul 10 23:09:58 2014 +0530
networkd: make metric of routes configurable
Now route metric can be configuted via conf file:
example conf:
[Match]
Name=em1
[Route]
Gateway=192.168.1.12
Metric=10
Test:
ip route output
default via 192.168.1.12 dev em1 metric 10
[tomegun: squash TODO update and reword man page a bit]
commit 5bdd314cd9954b605542571490738326f007c46c
Author: Tom Gundersen <teg at jklm.no>
Date: Mon Jul 14 11:04:13 2014 +0200
networkd: return 1 from successful event handlers
commit c9467d65f05a2058afe71e76424112386c78bf1a
Author: Tom Gundersen <teg at jklm.no>
Date: Mon Jul 14 10:50:37 2014 +0200
TODO: update networkd
commit 0ce5a80601597fe4d1a715a8f70ce8d5ccaa2d86
Author: Mantas Mikulėnas <grawity at gmail.com>
Date: Sun Jul 13 18:49:00 2014 +0300
fileio: quote more shell characters in envfiles
Turns out, making strings shell-proof is harder than expected:
# machinectl set-hostname "foo|poweroff" && . /etc/machine-info
(This could be simplified by quoting *and* escaping all characters,
which is harmless in shell but unnecessary.)
commit 667a1cd645c9402921dedff08a86bb35cddbcbf9
Author: Tanu Kaskinen <tanu.kaskinen at linux.intel.com>
Date: Sat Jul 12 18:59:19 2014 +0300
path-lookup: don't make ~/.local/share/systemd/user a symlink
We already encourage upstreams to keep the default configuration
separate from user customizations for software that is installed in
the system location. Let's allow that separation also for software
that is installed in the home directory.
Some discussion:
http://thread.gmane.org/gmane.comp.sysutils.systemd.devel/19627
commit 91acdc17a5b47e775369c6b907601f44fab07dcb
Author: Tanu Kaskinen <tanu.kaskinen at linux.intel.com>
Date: Sat Jul 12 19:36:16 2014 +0300
man: mention XDG_DATA_HOME in systemd.unit
commit eb34cba76323ea673471e226f97721bd6bdbcbf6
Author: Sjoerd Simons <sjoerd at luon.net>
Date: Sun Jul 13 16:56:16 2014 +0200
man: sysusers.d correct default user shell
For the non-root user sysusers uses nologin as the default shell, not
login. Correct the documentation to match the code.
commit 5146e7e8aec2d394c06771d4c9d0d03fc2cd911c
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Sun Jul 13 20:32:46 2014 -0400
man: add systemd-coredump(8) and a bunch of links
commit f7f628b5db770feb8b18990436baefaec55c460b
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Sun Jul 13 21:10:38 2014 -0400
Add function to open temp files in selinux mode
commit a334cbba7222d3d7d886c17c828fa4227c656535
Author: Colin Walters <walters at verbum.org>
Date: Sun Jul 13 13:35:33 2014 -0700
sysusers: preserve label of /etc/{passwd, group}
These files are specially labeled on SELinux systems, and we need to
preserve that label.
commit 3864c28549d742427fdf33026e522e9f10a7e4ec
Author: Jon Severinsson <jon at severinsson.net>
Date: Fri Jul 11 14:37:36 2014 +0200
build-sys: Do not distribute generated emergency.service
It is already in nodist_systemunit_DATA and if it is
shipped, it contains the hardcoded path to systemctl
which will cause it to fail to start when
rootprefix != prefix and rootbindir != bindir.
commit 3ce142490907d31c33ac03d72554f92459192f92
Author: Mike Gilbert <floppym at gentoo.org>
Date: Fri Jul 4 14:43:14 2014 -0400
Revert "build-sys: include PolicyKit files as part of distribution"
This reverts commit 0c26bfc3d21fdb3963f1248c237e2f1a33b5566d.
src/core/org.freedesktop.systemd1.policy.in.in depends on values which
are specified at configure time, so we cannot ship the corresponding
policy file in the tarball.
Since we need to regenerate one policy file, we might as well generate
them all.
commit 92daebc0d0268c35f416c1665e0da3d4be5dd69f
Author: Lennart Poettering <lennart at poettering.net>
Date: Fri Jul 11 16:48:35 2014 +0200
sd-event: don't require a signal event source to be enabled for the child event source to work
commit eea1aadb5bb3fc121e8f66332249d05e5437debc
Author: David Herrmann <dh.herrmann at gmail.com>
Date: Fri Jul 11 16:35:37 2014 +0200
gitignore: ignore .swp files
vim places them in the source-tree while editing files. Ignore them.
commit b63c8d4f0364457b0ead8793504012bb7113974f
Author: David Herrmann <dh.herrmann at gmail.com>
Date: Thu Jul 10 00:47:23 2014 +0200
sd-event: always call epoll_ctl() on mask-updates if edge-triggered
A call to sd_event_source_set_io_events() skipps calling into the kernel
if the new event-mask matches the old one. This is safe for
level-triggered sources as the kernel moves them onto the ready-list
automatically if events change. However, edge-triggered sources might not
be on the ready-list even though events are present.
A call to sd_event_source_set_io_events() with EPOLLET set might thus be
used to just move the io-source onto the ready-list so the next poll
will return it again. This is very useful to avoid starvation in
priority-based event queues.
Imagine a read() loop on an edge-triggered fd. If we cannot read data fast
enough to drain the receive queue, we might decide to skip reading for now
and schedule it for later. On edge-triggered io-sources we have to make
sure it's put on the ready-list so the next dispatch-round will return it
again if it's still the highest priority task. We could make sd-event
handle edge-triggered sources directly and allow marking them ready again.
However, it's much simpler to let the kernel do that for now via
EPOLL_CTL_MOD.
commit 1ca5fd003f5d3ffb32db581cb8d82d0721b5b12d
Author: David Herrmann <dh.herrmann at gmail.com>
Date: Wed Jul 9 20:20:46 2014 +0200
shared: fix coding-style for ring-buffer implementation
We use "typedef struct Ring Ring" with camel-case for internal objects.
So rename "struct ring" to "Ring".
commit 7df23077e45e55a6fc15eb99fe2ae439678e37e0
Author: David Herrmann <dh.herrmann at gmail.com>
Date: Mon Jun 30 15:43:40 2014 +0200
shared: add MIN3 macro
This is like MIN but evaluates 3 arguments. We already have MAX3, so add
the equivalent for MIN.
commit 3b1a55e110ab387a8d213581983e20c0a63d7894
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Fri Jul 11 10:42:06 2014 -0400
Fix build without any compression enabled
commit 6017365a1d0c1c78fc34a7da63768ee5df5da511
Author: Lennart Poettering <lennart at poettering.net>
Date: Fri Jul 11 16:13:13 2014 +0200
endian: explicitly include endian.h wherever we want to use __BYTE_ORDER
commit 4f4b92ba7ae9c56cb0f181d5f95d709e085b8bd5
Author: Lennart Poettering <lennart at poettering.net>
Date: Fri Jul 11 15:56:16 2014 +0200
always check for __BYTE_ORDER == __BIG_ENDIAN when checking for endianess
Let's always stick to glibc's way to determine byte order, and not mix
autoconf-specific checks with gcc checks.
commit ce0f1493c399178a3c7796415bfe5abd105ad610
Author: Lennart Poettering <lennart at poettering.net>
Date: Fri Jul 11 15:50:32 2014 +0200
hostnamed: introduce new location machin-info field, too
commit 1e5b1aaa4c8531ef531ec46f6ecbb28fb2f81008
Author: Lennart Poettering <lennart at poettering.net>
Date: Fri Jul 11 15:38:17 2014 +0200
hostnamed: drop nss-myhostname check
The check only cares about whether the module is installed, not enabled.
But installation we should know anyway, after all we ship the module
with systemd these days...
commit c2142cf1d1276f4f220bdd9af4ff7a716cc7a305
Author: Lennart Poettering <lennart at poettering.net>
Date: Fri Jul 11 15:37:11 2014 +0200
hostnamed: make use of in_charset() to verify charset
commit d4c9895d93700d20b7d092244a278009789d8e74
Author: Lennart Poettering <lennart at poettering.net>
Date: Fri Jul 11 15:34:18 2014 +0200
nss-myhostname: simplify array building a bit
commit d77ab3f7e3e56a4fd370caff6347bf4e56e51dec
Author: Lennart Poettering <lennart at poettering.net>
Date: Fri Jul 11 15:31:49 2014 +0200
hostnamed: minor modernization
commit 46b131574fdd7d77c15a0919ca9010cad7aa6ac7
Author: Lennart Poettering <lennart at poettering.net>
Date: Fri Jul 11 13:30:16 2014 +0200
journald: turn ForwardToSyslog= off by default
After all, rsyslog and friends nowadays read their data directly from
the journal, hence the forwarding is unnecessary in most cases.
commit 1cb1767a29458b3d16d6b161b4ee34dd496ff60d
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Fri Jul 11 09:21:15 2014 -0400
util: fix has cc check and add test
commit ccb03ac39d5360433e62b8b82e474aa044421bd9
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Fri Jul 11 09:08:47 2014 -0400
shell-completion: add hostnamectl set-deployment
commit 799298d6513e7d40125c19d46578bb870d047db4
Author: Jóhann B. Guðmundsson <johannbg at gmail.com>
Date: Tue Jul 8 21:26:05 2014 +0000
Add DEPLOYMENT to hostnamectl
[zj: remove the check against a fixed list of environments.]
commit 1ed774956406941d4812a3fb4493d2915f130f12
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Fri Jul 11 08:25:20 2014 -0400
shell-completion,man: beef up chassis completions and description
Parameters to hostnamectl command are not optional and should not be marked
as such in the man page.
commit dc5cd2b77288dc85c82cb95810cd14caee311e7e
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Thu Jul 10 22:34:43 2014 -0400
man: document x-systemd.device-timeout for crypttab
https://bugs.freedesktop.org/show_bug.cgi?id=54210
commit 8e8ba962c73310d40e74f62cf0184f74ccff0ca1
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Thu Jul 10 22:18:32 2014 -0400
man: proper link for dmesg
commit 938a560b7608e8906134ed7d717c3f5aa459a760
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Thu Jul 10 08:50:32 2014 -0400
sysusers: allow overrides in /etc and /run
An administrator might want to block a certain sysusers config file from
being executed, e.g. to block the creation of a certain user.
Only a relatively short description is added in the man page, since
overrides should be relatively rare.
commit cabb0bc6b1a4ec57e108dc99364687d7c4f9670f
Author: Lennart Poettering <lennart at poettering.net>
Date: Fri Jul 11 03:15:21 2014 +0200
nss-mymachines: add new NSS module for automatically resolving addresses of all local containers
commit 2de30868edab5b099cb1e5413e47ed11ded4cc63
Author: Lennart Poettering <lennart at poettering.net>
Date: Fri Jul 11 03:13:24 2014 +0200
build-sys: export sd_path APIs
commit c9fdc26e96493175668fbde61a04fc70abff300d
Author: Lennart Poettering <lennart at poettering.net>
Date: Thu Jul 10 23:33:55 2014 +0200
nss-myhostname: move NSS boilerplate to nss-util.h
commit f48e75cb9a8112d35855c44a156934f2ee0edb2e
Author: Lennart Poettering <lennart at poettering.net>
Date: Thu Jul 10 23:12:32 2014 +0200
machinectl: show network interface name for containers
Also, append the if indexes as scope field to the addresses we show.
That way they may be used for connecting to the containers directly.
commit 5aa4bb6b5b0b9dcea524d56cf8664b892a5a976a
Author: Lennart Poettering <lennart at poettering.net>
Date: Thu Jul 10 22:48:30 2014 +0200
nspawn: register external network interface with machined
commit 9b5ed6feda08290edce3bf916fa7362733dd30ea
Author: Lennart Poettering <lennart at poettering.net>
Date: Thu Jul 10 22:47:55 2014 +0200
machined: allow registering host-side network interfaces for communication with containers
commit 4faefc7ff884eae65a80e82313fd9f4bb859d6db
Author: Lennart Poettering <lennart at poettering.net>
Date: Thu Jul 10 21:32:44 2014 +0200
networkd: always prefer dhcp routes over ipv4ll routes
commit 496a5a69707653b231fbb350c0d8d837762248bb
Author: Lennart Poettering <lennart at poettering.net>
Date: Thu Jul 10 21:27:14 2014 +0200
machined: when querying addresses of a container, use same code as nss-myhostname uses
commit 3cb4674019567ef93e4a463dd145fd3af6242877
Author: Lennart Poettering <lennart at poettering.net>
Date: Thu Jul 10 21:16:40 2014 +0200
libsystemd: make use of our common sockaddr_union everywhere
commit 3b653205cf7bd3851befd0a9f6a3ded6e267c173
Author: Lennart Poettering <lennart at poettering.net>
Date: Thu Jul 10 21:15:26 2014 +0200
shared: split out in_addr related calls from socket-util.[ch] into its private in-addr-util.[ch]
These are enough calls for a new file, and they are sufficiently
different from the sockaddr-related calls, hence let's split this out.
commit e80af1bdddbc7a51191e29b0c841e8dcafe7b1cc
Author: Lennart Poettering <lennart at poettering.net>
Date: Thu Jul 10 21:01:25 2014 +0200
nss-myhostname: move local address listing logic into shared, so that we can make use of it from machined
commit 947127ff6230b44623afec3e6aacc85f54168db2
Author: Lennart Poettering <lennart at poettering.net>
Date: Thu Jul 10 20:38:07 2014 +0200
nss-myhostname: only export the NSS entry point symbols, nothing else
commit bb62fb68f61fac69fa7f2470db943da859844acf
Author: Lennart Poettering <lennart at poettering.net>
Date: Thu Jul 10 20:21:20 2014 +0200
machined: various modernizations when enumerating container addresses
commit 47efffc22badb20124dca5ed8c3b52911d71fc31
Author: Lennart Poettering <lennart at poettering.net>
Date: Thu Jul 10 20:12:07 2014 +0200
nss-myhostname: following the usual naming scheme for .c/.h files
commit 5502f0d97185218b93f01f9fe979a71bae38e213
Author: Lennart Poettering <lennart at poettering.net>
Date: Thu Jul 10 19:55:53 2014 +0200
nss-myhostname: various modernizations
commit 096b6773886bd7a0c8c97aa684b0b67dfae58355
Author: Lennart Poettering <lennart at poettering.net>
Date: Thu Jul 10 18:25:51 2014 +0200
resolved: properly free network monitor
commit 138992534878483de28417dfc61c546bba5cb8ad
Author: Lennart Poettering <lennart at poettering.net>
Date: Thu Jul 10 18:25:08 2014 +0200
event: pull in sd-event.h from event-util.h
commit 27f1e9ebf6f9e7ff8a898f894c1b38cbdecfa77c
Author: Lennart Poettering <lennart at poettering.net>
Date: Thu Jul 10 18:24:55 2014 +0200
update TODO
commit 38c74dad1c3d605018e61074e0b80f6b9523b1c8
Author: Lennart Poettering <lennart at poettering.net>
Date: Wed Jul 9 19:21:42 2014 +0200
sysusers: don't allow control characters in gecos fields
commit 932ad62b84165b0acf690ea34c4b8083657ae244
Author: Lennart Poettering <lennart at poettering.net>
Date: Wed Jul 9 19:20:58 2014 +0200
sysusers: don't allow user names longer than UT_NAMESIZE
As pointed out by Miloslav Trmač it might be a good idea to make sure
that usernames stay with in the utmp-defined limits.
commit e2a69298819b58f008be61d314f8ab95ccaec427
Author: Lennart Poettering <lennart at poettering.net>
Date: Wed Jul 9 19:20:48 2014 +0200
update TODO
commit d3381512282f2ca1c7669f77fb736a90fdce6982
Author: Michal Sekletar <msekleta at redhat.com>
Date: Tue Jul 8 17:42:23 2014 +0200
units: make ExecStopPost action part of ExecStart
Currently after exiting rescue shell we isolate default target. User
might want to isolate to some other target than default one. However
issuing systemctl isolate command to desired target would bring system
to default target as a consequence of running ExecStopPost action.
Having common ancestor for rescue shell and possible followup systemctl
default command should fix this. If user exits rescue shell we will
proceed with isolating default target, otherwise, on manual isolate,
parent shell process is terminated and we don't isolate default target,
but target chosen by user.
Suggested-by: Michal Schmidt <mschmidt at redhat.com>
commit b72ddf0f4f552dd53d6404b6ddbc9f17d02b8e12
Author: Kay Sievers <kay at vrfy.org>
Date: Wed Jul 9 14:29:20 2014 +0200
timedated: manage systemd-timesyncd directly instead of lists of alternatives
Alternative NTP implementations should add a:
Conflicts=systemd-timesyncd.service
to take over the built-in NTP functionality of systemd.
commit efab8d0b0ebf6d715949b7af66fecaf5e5e5d77b
Author: Tomasz Torcz <tomek at pipebreaker.pl>
Date: Wed Jul 9 13:37:50 2014 +0200
hostnamed: update documentation with new "watch" chassis type
commit c49e59c1831f20fe02276d7bc6ba7d23d24c4ab3
Author: Lennart Poettering <lennart at poettering.net>
Date: Wed Jul 9 13:20:05 2014 +0200
hostnamed: add a new chassis type for watches
commit 1930eed2a7855d2df06ccf51f9e394428bf547e2
Author: Jon Severinsson <jon at severinsson.net>
Date: Tue Jul 8 18:29:46 2014 +0200
journal/compress: improve xz compression performance
The new lzma2 compression options at the top of compress_blob_xz are
equivalent to using preset "0", exept for using a 1 MiB dictionary
(the same as preset "1"). This makes the memory usage at most 7.5 MiB
in the compressor, and 1 MiB in the decompressor, instead of the
previous 92 MiB in the compressor and 8 MiB in the decompressor.
According to test-compress-benchmark this commit makes XZ compression
20 times faster, with no increase in compressed data size.
Using more realistic test data (an ELF binary rather than repeating
ASCII letters 'a' through 'z' in order) it only provides a factor 10
speedup, and at a cost if a 10% increase in compressed data size.
But that is still a worthwhile trade-off.
According to test-compress-benchmark XZ compression is still 25 times
slower than LZ4, but the compressed data is one eighth the size.
Using more realistic test data XZ compression is only 18 times slower
than LZ4, and the compressed data is only one quarter the size.
$ ./test-compress-benchmark
XZ: compressed & decompressed 2535300963 bytes in 42.30s (57.15MiB/s), mean compresion 99.95%, skipped 3570 bytes
LZ4: compressed & decompressed 2535303543 bytes in 1.60s (1510.60MiB/s), mean compresion 99.60%, skipped 990 bytes
commit 92261977d81fd6a5bfb1418eddd86582d8a57fcd
Author: Ronny Chevalier <chevalier.ronny at gmail.com>
Date: Tue Jul 8 09:22:25 2014 +0200
fix #ifdef
commit da625e4b80ba8b03e68ce1782753acd34cf19bd5
Author: Ronny Chevalier <chevalier.ronny at gmail.com>
Date: Mon Jul 7 10:04:33 2014 +0200
update .gitignore
commit 2945a452b084879c6885efe51aefea00c179aa5f
Author: Michael Biebl <biebl at debian.org>
Date: Tue Jul 8 21:06:07 2014 +0200
escape: move to rootbindir
The systemd-escape utility might be used during early boot (e.g. when
being triggered from udev rules), so move it to rootbindir to support
systems with a split /usr setup.
commit a545c6e1aa31b4d7e80c9d3609d9fc4fc9921498
Author: Bastien Nocera <hadess at hadess.net>
Date: Tue Jul 8 18:29:06 2014 +0200
accelerometer: Don't wait for new data from the sensor
Instead of waiting for new data from the sensor, which might be
a long time coming, depending on the sensor device, ask the kernel
for the last state for that particular input device.
commit 9a8c867fecec55998b7a78470aebdede2db0673e
Author: Michal Schmidt <mschmidt at redhat.com>
Date: Tue Jul 8 17:17:14 2014 +0200
load-fragment: ConditionFirstBoot wants a bool string, not a path
commit b7bbdabeb4a5b66fdbcdfed0d097109cfb39c43e
Author: Michal Schmidt <mschmidt at redhat.com>
Date: Tue Jul 8 15:17:36 2014 +0200
systemctl: fix visual alignment for lines prefixed with color dots
commit 154034270c4643b7cfe61c0be1676d78bb1b7b07
Author: David Herrmann <dh.herrmann at gmail.com>
Date: Tue Jul 8 12:56:55 2014 +0200
logind: allow switching to unused VTs via SwitchTo()
If compositors use the new SwitchTo() logic to map F1-F12, we should allow
them to switch to unregistered VTs, too. Otherwise, the auto-spawn logic
of gettys won't trigger.
Reported-by: Jasper St. Pierre <jstpierre at mecheye.net>
Signed-off-by: David Herrmann <dh.herrmann at gmail.com>
commit 5aded369782f28255bc6b494ca905d7acaea7a56
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Mon Jul 7 18:25:54 2014 -0400
man: add a mapping for external manpages
It is annoying when we have dead links on fd.o.
Add project='man-pages|die-net|archlinux' to <citerefentry>-ies.
In generated html, add external links to
http://man7.org/linux/man-pages/man, http://linux.die.net/man/,
https://www.archlinux.org/.
By default, pages in sections 2 and 4 go to man7, since Michael
Kerrisk is the autorative source on kernel related stuff.
The rest of links goes to linux.die.net, because they have the
manpages.
Except for the pacman stuff, since it seems to be only available from
archlinux.org.
Poor gummiboot gets no link, because gummitboot(8) ain't to be found
on the net. According to common wisdom, that would mean that it does
not exist. But I have seen Kay using it, so I know it does, and
deserves to be found. Can somebody be nice and put it up somewhere?
commit 061df014fd60a6c1eefadcf9b84705015d0ce511
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Mon Jul 7 18:30:41 2014 -0400
Fix typo
commit 126cc76074b763c7de9edec848fb86b22e8a78ef
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Mon Jul 7 18:36:03 2014 -0400
fstab-generator: fix trivial leak
commit a509e0e6946aee5c3dd51bc3a6f40d0a623c9e2c
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Mon Jul 7 18:29:19 2014 -0400
README: add liblz4
commit 1ec7120e50bc084342f8c44aea771c79aaeb774d
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Mon Jul 7 18:31:10 2014 -0400
journal/compress: fix calls to decompress_blob
commit c92e531c82a9815ec349aa1bf31236b86b2d5311
Author: Lennart Poettering <lennart at poettering.net>
Date: Mon Jul 7 23:11:48 2014 +0200
resolved: make use of union in_addr_union in resolved, too
commit 186fe1db20902b6542cee58ba499ced914d687a8
Author: Lennart Poettering <lennart at poettering.net>
Date: Mon Jul 7 23:11:03 2014 +0200
networkd: simplify signal handling of SIGTERM/SIGINT
sd-event makes handling SIGTERM/SIGINT a lot easier than it used to,
let's make use of this
commit b9e7a9d870ac41d4db954edd52a1f5dd7d153389
Author: Lennart Poettering <lennart at poettering.net>
Date: Mon Jul 7 23:09:02 2014 +0200
resolved: make sure SIGTER/SIGINT actually can be caught and processed
commit 987d561fe202568c0a2880cf047c7833fd365c7a
Author: Lennart Poettering <lennart at poettering.net>
Date: Mon Jul 7 23:03:17 2014 +0200
resolved: let config_parse() open the configuration file for us
commit de48d5ab62e452b596d6f2762422d0ab32c4d313
Author: Lennart Poettering <lennart at poettering.net>
Date: Mon Jul 7 22:49:59 2014 +0200
shared: fix format string for usec_t type
commit 9869e75929acd9377aa460074334d8523cf8e822
Author: Lennart Poettering <lennart at poettering.net>
Date: Mon Jul 7 22:48:25 2014 +0200
man: document systemd-escape(1)
commit a1948c7bfeb87b54bc7715a44490c01593ee6e23
Author: Lennart Poettering <lennart at poettering.net>
Date: Mon Jul 7 22:23:00 2014 +0200
escape: beef up new systemd-escape tool
Add various options for making it easy unescape, or mangle, or format as
template instance or append a suffix.
commit b1a5a9989ada9b3738d71605f051ff393d41f2ff
Author: Michael Biebl <biebl at debian.org>
Date: Wed Jun 4 01:57:11 2014 +0200
add new systemd-escape tool
commit 58f55364fa00a6a4706df2c4a01c6967f432e531
Author: Lennart Poettering <lennart at poettering.net>
Date: Mon Jul 7 21:20:29 2014 +0200
update TODO
commit f5a4b0d3534bb13ef734a857647ab04be236c6f3
Author: Thomas Hindoe Paaboel Andersen <phomes at gmail.com>
Date: Mon Jul 7 21:40:00 2014 +0200
dropin: add format attribute and fix a wrong caller
commit 36a259d22c450fbf3f696df0161db50275a98667
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Mon Jul 7 16:10:38 2014 -0400
fstab-generator: add comma when removed option is in the middle
xxx,x-systemd.default-timeout=y,zzz was filtered to xxxzzz,
but should be xxx,zzz, of course.
commit c9fa3670bf24edf51c59c6e3904c2d0a1dd4b59d
Author: Susant Sahani <susant at redhat.com>
Date: Fri Jul 4 21:49:08 2014 +0530
networkd TODO: add more bonding options
Add more bonding option in TODO section
commit 467aa4a25874dc8d2dee229829b1b7115ab03680
Author: Susant Sahani <susant at redhat.com>
Date: Fri Jul 4 21:47:17 2014 +0530
networkd todo : remove tun/tap
Remove tun/tap from todo
commit fe8ac65b683ec7408b26ba40040134e6d66b1c5c
Author: Susant Sahani <susant at redhat.com>
Date: Fri Jul 4 22:35:02 2014 +0530
networkd: add support for mode
This patch adds supports networkd to configure bond mode
during creation via persistent conf. Mode can be configured
with conf param 'Mode'. A new section Bond is added to the
conf to support bond mode.
These modes can be configured now.
balance-rr
active-backup
balance-xor
broadcast
802.3ad
balance-tlb
balance-alb
Example conf file: test-bond.conf
[NetDev]
Name=bond1
Kind=bond
[Bond]
Mode=balance-xor
Test case:
1. start networkd service:
12: bond1: <BROADCAST,MULTICAST,MASTER,UP,LOWER_UP> mtu 1500 qdisc
noqueue state UNKNOWN mode DEFAULT group default
link/ether 22:89:6c:47:23:d2 brd ff:ff:ff:ff:ff:ff
2. find bond mode:
cat /proc/net/bonding/bond1
Ethernet Channel Bonding Driver: v3.7.1 (April 27, 2011)
Bonding Mode: load balancing (xor)
Transmit Hash Policy: layer2 (0)
MII Status: up
MII Polling Interval (ms): 0
Up Delay (ms): 0
Down Delay (ms): 0
Changes:
1. Added file networkd-bond.c
2. Bond mode enum BondMode
3. conf section [Bond]
[tomegun: whitespace]
commit 948a6f8eb42c85d2b96e9b5817fcfa29ad4752ae
Author: Susant Sahani <susant at redhat.com>
Date: Mon Jul 7 22:07:39 2014 +0530
networkd veth: Make kind assert
It's more appropriate to make it's assert than -ENOTSUP
commit de7a2c8f39bd9f04184fe3fa15d4c9954b5829c9
Author: Lennart Poettering <lennart at poettering.net>
Date: Mon Jul 7 21:07:23 2014 +0200
update TODO
commit e26807239bd65bc17535a53cd540f38600e7ef24
Author: Lennart Poettering <lennart at poettering.net>
Date: Mon Jul 7 19:25:31 2014 +0200
firstboot: get rid of firstboot generator again, introduce ConditionFirstBoot= instead
As Zbigniew pointed out a new ConditionFirstBoot= appears like the nicer
way to hook in systemd-firstboot.service on first boots (those with /etc
unpopulated), so let's do this, and get rid of the generator again.
commit 45035609fcfc3fe09324988c4929a3c147171c23
Author: Lennart Poettering <lennart at poettering.net>
Date: Mon Jul 7 18:57:09 2014 +0200
firstboot: follow lock protocol when changing /etc/shadow
commit 30f10abf42f9e4d251a0b45b07812aafdef6be7c
Author: Lennart Poettering <lennart at poettering.net>
Date: Mon Jul 7 18:45:53 2014 +0200
man: document systemd-firstboot(1)
commit ed3e4a3fd96891b5e7015723978e78cd21efd4fe
Author: Lennart Poettering <lennart at poettering.net>
Date: Mon Jul 7 18:45:07 2014 +0200
man: drop references to the --priviliged command line option which has been removed a while back
commit 30d7c9c472bd7be1b6a09d3bd5afd939988de990
Author: Harald Hoyer <harald at redhat.com>
Date: Mon Jul 7 17:45:53 2014 +0200
base-filesystem.c: terminate string array elements with \0
NULSTR_FOREACH() looks for a terminating zero and the element also needs
one.
commit 8cfdb077b8e3da1c47fc1d735d051f21f33144c1
Author: Lennart Poettering <lennart at poettering.net>
Date: Mon Jul 7 17:33:46 2014 +0200
service: flush status text and errno values each time a service is started
We shouldn't show status texts from previous service starts
commit b4af5a803aa71a57733ca46fef29b7afb20a626c
Author: Lennart Poettering <lennart at poettering.net>
Date: Mon Jul 7 17:33:26 2014 +0200
systemctl: show StatusErrno value in "systemctl status"
commit 2040ccf171404b709acb0ecf1d1f17b87c5d05f0
Author: Lennart Poettering <lennart at poettering.net>
Date: Mon Jul 7 17:32:44 2014 +0200
service: don't accept negative ERRNO= notification messages
commit 5e56b378b40dc4dc5557e653487b608fd91fcc26
Author: Lennart Poettering <lennart at poettering.net>
Date: Mon Jul 7 17:03:34 2014 +0200
service: minor modernization
commit 4774e357268e4a1e9fa82adb0563a538932a4c8e
Author: Miguel Angel Ajo <mangelajo at redhat.com>
Date: Mon Jul 7 14:20:36 2014 +0200
core: Added support for ERRNO NOTIFY_SOCKET message parsing, and added StatusErrno dbus property along StatusText to allow notification of numeric status condition while degraded service operation or any other special situation.
commit 3250929b7049f3fbbb610a92438c8a8b638ec155
Author: Lennart Poettering <lennart at poettering.net>
Date: Mon Jul 7 16:54:09 2014 +0200
firstboot: change /etc/shadow access mode to 000
It appears to be customary to remove all access bits from /etc/shadow
including those for the root owner), hence let's do the same.
commit ffc90a11962274ac597b7838f31a4aff0362aa46
Author: Michal Sekletar <msekleta at redhat.com>
Date: Mon Jul 7 15:27:24 2014 +0200
dhcp-network: make clear that we are ANDing Fragment offset field with mask
Reading BPF assembly written as C macros is inherently difficult. Don't
make it harder than necessary and provide clearer explanation in the
comment.
commit b064329fd80b8d0fe2e46c561f92886090fa20d1
Author: Michal Sekletar <msekleta at redhat.com>
Date: Mon Jul 7 14:15:41 2014 +0200
dhcp-network: ignore IP packets with More Fragments (MF) flag set
We already ignore IP fragments, because we expect that Fragment
offset (FO) field is not set. However first fragment in a fragmented IP
flow will have all zeroes in FO field. We should ignore such packet as
well, thus we need to look at MF flag in the IP header. Checking MF flag
will filter out all except last packet in fragmented flows. Last one
will be ruled out by next check for value of FO.
commit 418b9be50018303cde79b423d4701b7fd86ddbdc
Author: Lennart Poettering <lennart at poettering.net>
Date: Mon Jul 7 15:05:37 2014 +0200
firstboot: add new component to query basic system settings on first boot, or when creating OS images offline
A new tool "systemd-firstboot" can be used either interactively on boot,
where it will query basic locale, timezone, hostname, root password
information and set it. Or it can be used non-interactively from the
command line when prepareing disk images for booting. When used
non-inertactively the tool can either copy settings from the host, or
take settings on the command line.
$ systemd-firstboot --root=/path/to/my/new/root --copy-locale --copy-root-password --hostname=waldi
The tool will be automatically invoked (interactively) now on first boot
if /etc is found unpopulated.
This also creates the infrastructure for generators to be notified via
an environment variable whether they are running on the first boot, or
not.
commit 037c26d0aeb750ca9c8d605884ea1db7baecfea8
Author: Lennart Poettering <lennart at poettering.net>
Date: Mon Jul 7 14:59:06 2014 +0200
architecture: add string table entries for mips-le archs which were missing
commit ac8ddf8c964f813464ef32cad1fcb7b61b692a01
Author: Lennart Poettering <lennart at poettering.net>
Date: Mon Jul 7 14:58:36 2014 +0200
man: chroot jails are no longer detected by ConditionVirtualization=
commit f1e4d93f573087655ab1d0adb725102d5d2c1960
Author: Lennart Poettering <lennart at poettering.net>
Date: Mon Jul 7 14:58:13 2014 +0200
man: add missing archs to ConditionArchitecture= description
commit 736937e5aab60888f0bd2ca75674105f7b7fd0f0
Author: Lennart Poettering <lennart at poettering.net>
Date: Mon Jul 7 12:05:41 2014 +0200
fileio: simplify write_env_file()
commit 6294aa76d818e831de4592b41a37e225fd0871f9
Author: Lennart Poettering <lennart at poettering.net>
Date: Mon Jul 7 12:04:55 2014 +0200
util: don't consider tabs special in string_has_cc() anymore
Instead, take a list of exceptions to our usual CC check
commit 7568345034f2890af745747783c5abfbf6eccf0f
Author: Lennart Poettering <lennart at poettering.net>
Date: Mon Jul 7 11:49:48 2014 +0200
shared: make timezone and locale enumeration and validation generic
This way we can reuse it other code thatn just localectl/localed +
timedatectl/timedated.
commit a940778fb1dd16479f455bab3ac6cbdbc5b06165
Author: Lennart Poettering <lennart at poettering.net>
Date: Mon Jul 7 11:48:06 2014 +0200
update TODO
commit 3408ba015aee3a88c91962c028738be757779519
Author: Lennart Poettering <lennart at poettering.net>
Date: Mon Jul 7 11:47:46 2014 +0200
main: explain our /etc empty check a bit in a comment
commit 3a8a916338d8446b938f3cf40f6aae0c611892e3
Author: Lennart Poettering <lennart at poettering.net>
Date: Mon Jul 7 11:47:10 2014 +0200
util: consider 0x7F a control chracter (which it is: DEL)
Let's better be safe than sorry.
commit a669ea9860900d5cdebbc4cb9aaea72db7e28a02
Author: Tom Gundersen <teg at jklm.no>
Date: Mon Jul 7 14:50:16 2014 +0200
udev: link_config - ignore errors due to missing MAC address
Otherwis, we get misleading error messages on links with MACs.
Reported by Leonid Isaev.
commit 3dde3f819732aaa66ab8e881305488adaea17641
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Mon Jul 7 08:55:30 2014 -0400
vconsole-setup: fix inverted error messages
Introduced in abee28c56d.
Pointed-out-by: Werner Fink <werner at suse.de>
commit 1a43ddc8b1323a6815bbb20db9655ee4aef33e6c
Author: Tom Gundersen <teg at jklm.no>
Date: Mon Jul 7 14:24:07 2014 +0200
man: network - document Peer key
commit e04468dec04a968c523ee09da7d2163a1d1a5a15
Author: Tom Gundersen <teg at jklm.no>
Date: Mon Jul 7 14:18:26 2014 +0200
networkd: netdev - add missing refs
Without this, the underlying device would get freed (and hence
fail).
commit c081882f07617e56bcbce54105068137e4e0bb52
Author: Susant Sahani <susant at redhat.com>
Date: Mon Jul 7 14:58:56 2014 +0530
networkd: add support for peer address
This patch adds peer address support for
networkd . In the [Address] a new configurable
param is Peer.
[Match]
Name=ipip-tun
[Address]
Address=10.0.0.1/32
Peer=10.0.0.2/32
commit 58587a7a0c3bf5595190486781d3bbc00654c6ef
Author: Michal Sekletar <msekleta at redhat.com>
Date: Thu Jun 19 15:14:14 2014 +0200
dhcp-network: add check for DHCP.chaddr
Check that received DHCP packets actually include our MAC address in
chaddr field. BPF interpreter has 32 bit wide registers but MAC address
is 48 bits long so we have to do check in two steps.
commit 31cda3d1759dee3e48c8ed4a949d99f041bdca1c
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Sun Jul 6 18:35:46 2014 -0400
coredumpctl: show a useful error on permission problems
commit fd53fee04b1f1c1ca1e30e8d470d7416900a35dc
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Sat Jul 5 14:29:56 2014 -0400
compress: add benchmark-style test
This is useful to test the behaviour of the compressor for various buffer
sizes.
Time is limited to a minute per compression, since otherwise, when LZ4
takes more than a second which is necessary to reduce the noise, XZ
takes more than 10 minutes.
% build/test-compress-benchmark (without time limit)
XZ: compressed & decompressed 2535300963 bytes in 794.57s (3.04MiB/s), mean compresion 99.95%, skipped 3570 bytes
LZ4: compressed & decompressed 2535303543 bytes in 1.56s (1550.07MiB/s), mean compresion 99.60%, skipped 990 bytes
% build/test-compress-benchmark (with time limit)
XZ: compressed & decompressed 174321481 bytes in 60.02s (2.77MiB/s), mean compresion 99.76%, skipped 3570 bytes
LZ4: compressed & decompressed 2535303543 bytes in 1.63s (1480.83MiB/s), mean compresion 99.60%, skipped 990 bytes
It appears that there's a bug in lzma_end where it leaks 32 bytes.
commit d89c8fdf48c7bad5816b9f2e77e8361721f22517
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Thu Jul 3 22:42:22 2014 -0400
journal: add LZ4 as optional compressor
Add liblz4 as an optional dependency when requested with --enable-lz4,
and use it in preference to liblzma for journal blob and coredump
compression. To retain backwards compatibility, XZ is used to
decompress old blobs.
Things will function correctly only with lz4-119.
Based on the benchmarks found on the web, lz4 seems to be the best
choice for "quick" compressors atm.
For pkg-config status, see http://code.google.com/p/lz4/issues/detail?id=135.
commit 5e592c66bdf76dfc8445b332f7a5088ca504ee90
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Fri Jul 4 19:53:58 2014 -0400
journal/compress: return early in uncompress_startswith
uncompress_startswith would always decode the whole stream, even
if it did not start with the given prefix.
Reallocation policy was also strange.
commit abee28c56d523e55751b0c007d0bf812cc285c00
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Tue Jul 1 22:20:11 2014 -0400
vconsole-setup: run setfont before loadkeys
https://bugs.freedesktop.org/show_bug.cgi?id=80685
commit bce415edcae8e7af8327de8265d621f95fa5426f
Author: Ronny Chevalier <chevalier.ronny at gmail.com>
Date: Sun Jul 6 13:33:38 2014 +0200
sysusers: fix uninitialized warning
commit f14aa1f1b2e4e99ee20393871b5f64f1378ed6c3
Author: Tom Gundersen <teg at jklm.no>
Date: Sun Jul 6 14:12:28 2014 +0200
machine: don't return uninitialized variable
Repotred by Ronny Chevalier
commit 108e8cd11e88bd4795a62bf335921d438592601c
Author: Lennart Poettering <lennart at poettering.net>
Date: Fri Jul 4 12:17:12 2014 +0200
man: document nspawn's new --volatile switch
commit c38d2eb828f1a62ae9052c9db45ccc70f98fdb47
Author: Steven Noonan <steven at uplinklabs.net>
Date: Thu Jul 3 19:42:19 2014 -0700
networkd: accept section DHCP in systemd.network files
commit b1e1238fb3af77419eca704fb64f68a313954734
Author: Steven Noonan <steven at uplinklabs.net>
Date: Thu Jul 3 19:43:56 2014 -0700
networkd: don't clear dhcpv6 lease timers if there's no previous lease
If client->lease is NULL, dhcp6_lease_clear_timers will cause a segmentation
fault.
commit 4d9f07b492ba1707d4a92cd937b87b8baf827f7d
Author: Lennart Poettering <lennart at poettering.net>
Date: Fri Jul 4 03:22:33 2014 +0200
nspawn: add new --volatile switch for booting containers in volatile (ephemeral) mode
Two modes are supported: --volatile=yes mounts only /usr into the
container, and a tmpfs as root directory. --volatile=state mounts the
full OS tree in, but overmounts /var with a tmpfs.
--volatile=yes hence boots with an unpopulated /etc and /var, starting
with pristine configuration and state.
--volatile=state hence boots with an unpopulated /var, only starting
with pristine state.
commit baa1bdf70f21848fbe01d3f383ae0f59d86a9bf3
Author: Lennart Poettering <lennart at poettering.net>
Date: Fri Jul 4 03:13:05 2014 +0200
main: change check whether /etc is unpopulated to look for /etc/machine-id
Previously, we checked whether /etc was completely empty. This makes it
difficult though for container managers such as nspawn to install a
small number of files (such as /etc/timezone), and have the system
otherwise populate its own tree.
Hence, change this by looking for /etc/machine-id, which should be a
good sign whether /etc is populated or not.
commit fa229d09281d435153b4cfd138a2a62fa66d889b
Author: Lennart Poettering <lennart at poettering.net>
Date: Fri Jul 4 03:10:09 2014 +0200
units: conditionalize configfs and debugfs with CAP_SYS_RAWIO
We really don't want these in containers as they provide a too lowlevel
look on the system.
Conditionalize them with CAP_SYS_RAWIO since that's required to access
/proc/kcore, /dev/kmem and similar, which feel similar in style. Also,
npsawn containers lack that capability.
commit e0c74691c41a204eba2fd5f39615049fc9ff1648
Author: Lennart Poettering <lennart at poettering.net>
Date: Fri Jul 4 03:07:20 2014 +0200
units: conditionalize static device node logic on CAP_SYS_MODULES instead of CAP_MKNOD
npsawn containers generally have CAP_MKNOD, since this is required
to make PrviateDevices= work. Thus, it's not useful anymore to
conditionalize the kmod static device node units.
Use CAP_SYS_MODULES instead which is not available for nspawn
containers. However, the static device node logic is only done for being
able to autoload modules with it, and if we can't do that there's no
point in doing it.
commit 54f601debc07addbed803fb847cd5bd3e91e021e
Author: Tom Gundersen <teg at jklm.no>
Date: Fri Jul 4 01:26:19 2014 +0200
man: netdev - mention tun and tap
Reported by Moviuro <moviuro at gmail.com>
commit 4958aee4977f325be19f0e1e4b424922c3cada5f
Author: Tom Gundersen <teg at jklm.no>
Date: Thu Jul 3 22:47:51 2014 +0200
networkd: properly track addresses when first added
When doing a NEWADDR, the reply we get back is the NEWADDR itself, rather
than just an empty ack (unlike how NEWLINK works). For this reason, the
process that did the NEWADDR does not get the broadcast message.
We were only listening for broadcast messages, and hence not tracking the
addresses we added ourselves. This went unnoticed as the kernel will usually
send NEWADDR messages from time to time anyway, so things would mostly work,
but in the worst case we would not notice that a routable address was available
and consider ourselves offline.
commit 393c0c5e64d0cb85ce14f25a06fa8958c9e119e7
Author: Tom Gundersen <teg at jklm.no>
Date: Thu Jul 3 21:35:03 2014 +0200
networkd: link - improve link tracking logging
commit bc4bc52bc3de56405045b0437e145a7067fb085d
Author: Lennart Poettering <lennart at poettering.net>
Date: Thu Jul 3 22:52:44 2014 +0200
architecture: remove "cris" from uname list
the only correct name appears to be "crisv32"...
http://lists.freedesktop.org/archives/systemd-devel/2014-July/020899.html
commit 0c7448867271180e8ac5795ebdff4bee0c0acd0c
Author: Umut Tezduyar Lindskog <umut.tezduyar at axis.com>
Date: Thu Jul 3 22:28:29 2014 +0200
sd-path: add missing header
commit 9c5dcb68b058b6bde056fc1ece768ba74a120091
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Mon Jun 30 20:10:16 2014 -0400
man: add link to Open Group Base Specifications
More information about the systemd-commits
mailing list