chiark / gitweb /
elogind.git
4 years agobus-util: remove stray errno assignment
Zbigniew Jędrzejewski-Szmek [Sat, 7 Mar 2015 19:09:50 +0000 (14:09 -0500)]
bus-util: remove stray errno assignment

4 years agonetworkctl: avoid leak if a field was specified twice
Zbigniew Jędrzejewski-Szmek [Sat, 7 Mar 2015 19:06:35 +0000 (14:06 -0500)]
networkctl: avoid leak if a field was specified twice

The input data would have to be borked, so this is unlikely to happen,
but since we have a nice helper function to do it properly... why not?

CID #1261390.

4 years agomachine: do not rely on asprintf setting arg on error
Zbigniew Jędrzejewski-Szmek [Sat, 7 Mar 2015 19:01:45 +0000 (14:01 -0500)]
machine: do not rely on asprintf setting arg on error

Strictly speaking, the output variable is undefined if asprintf fails.
We use the return value not the arg everywhere, and should we do here.

4 years agov4l_id: use standard option parsing loop
Zbigniew Jędrzejewski-Szmek [Sat, 7 Mar 2015 18:54:32 +0000 (13:54 -0500)]
v4l_id: use standard option parsing loop

Not terribly important, but the loop wasn't an actual loop,
making coverity unhappy.

CID #1261725.

4 years agoshared/machine-pool: remove unnecessary check
Zbigniew Jędrzejewski-Szmek [Sat, 7 Mar 2015 18:40:48 +0000 (13:40 -0500)]
shared/machine-pool: remove unnecessary check

CID #128739.

4 years agosysusers: do not reject users with already present /etc/shadow entries
Ivan Shapovalov [Sat, 7 Mar 2015 15:11:32 +0000 (18:11 +0300)]
sysusers: do not reject users with already present /etc/shadow entries

This is needed to interoperate firstboot and sysusers. The former one is started
first, and it writes only /etc/shadow when it is told to set the root password.
It's better to relax checks here than to duplicate functionality in firstboot.

4 years agofirstboot: set all spwd fields to -1 for consistency with sysusers
Ivan Shapovalov [Wed, 25 Feb 2015 23:46:24 +0000 (02:46 +0300)]
firstboot: set all spwd fields to -1 for consistency with sysusers

4 years agocore: do not spawn jobs or touch other units during coldplugging
Ivan Shapovalov [Sat, 7 Mar 2015 13:44:52 +0000 (08:44 -0500)]
core: do not spawn jobs or touch other units during coldplugging

Because the order of coldplugging is not defined, we can reference a
not-yet-coldplugged unit and read its state while it has not yet been
set to a meaningful value.

This way, already active units may get started again.

We fix this by deferring such actions until all units have been at
least somehow coldplugged.

Fixes https://bugs.freedesktop.org/show_bug.cgi?id=88401

4 years agoadjust for time spent in timedated even without dbus timestamp
Shawn Landden [Sat, 7 Mar 2015 09:43:32 +0000 (01:43 -0800)]
adjust for time spent in timedated even without dbus timestamp

it is trivial to fall back to our own timestamp

v2: use now()
v3: remove useless if ()
v4: add comment

4 years agopo: update French translation
Sylvain Plantefève [Fri, 6 Mar 2015 23:56:46 +0000 (00:56 +0100)]
po: update French translation

4 years agovconsole: match on vtcon events, not fbcon ones
Jan Engelhardt [Tue, 24 Feb 2015 16:49:02 +0000 (17:49 +0100)]
vconsole: match on vtcon events, not fbcon ones

I observe that upon loading of framebuffer drivers, I do not get the
desired system font, but the kernel-level defaults (usually
lib/fonts/font_8x16.c, but your mileage may vary depending on kernel
config and boot options).

The fbcon driver may be loaded at a time way before the first
framebuffer device is active, such that the vconsole setup helper
runs too early.

The existing rule is non-fitting. The going live of the fbcon kernel
component does not indicate the proper time at which to load the
visuals, which really ought to be done when a new vtcon object comes
into existence. (The font table is a per-vtcon property.)

4 years agologin: make hold-off timeout configurable
David Herrmann [Fri, 6 Mar 2015 13:37:09 +0000 (14:37 +0100)]
login: make hold-off timeout configurable

This introduces 'HoldoffTimeoutSec' to logind.conf to make
IGNORE_LID_SWITCH_{SUSPEND,STARTUP}_USEC configurable.

Background: If an external monitor is connected, or if the system is
docked, we want to ignore LID events. This is required to support setups
where a laptop is used with external peripherals while the LID is closed.
However, this requires us to probe all hot-plugged devices before reacting
to LID events. But with modern buses like USB, the standards do not impose
any timeout on the slots, so we have no chance to know whether a given
slot is used or not. Hence, after resume and startup, we have to wait a
fixed timeout to give the kernel a chance to probe devices. Our timeout
has always been generous enough to support even the slowest devices.
However, a lot of people didn't use these features and wanted to disable
the hold-off timer. Now we provide a knob to do that.

4 years agohwdb: add Lenovo W451 to TOUCHPAD_HAS_TRACKPOINT_BUTTONS list
Peter Hutterer [Fri, 6 Mar 2015 01:02:04 +0000 (11:02 +1000)]
hwdb: add Lenovo W451 to TOUCHPAD_HAS_TRACKPOINT_BUTTONS list

4 years agomachinectl: minor --help text improvements
Lennart Poettering [Thu, 5 Mar 2015 15:52:15 +0000 (16:52 +0100)]
machinectl: minor --help text improvements

4 years agotmpfiles: Fix handling of duplicate lines
Martin Pitt [Thu, 5 Mar 2015 13:58:56 +0000 (14:58 +0100)]
tmpfiles: Fix handling of duplicate lines

Commit 3f93da987 accidentally dropped the "return 0" after detection of a
duplicate line. Put it back, to get back the documented and intended "first
match wins" behaviour.

https://launchpad.net/bugs/1428540

4 years agohwdb: add Logitech G5 Laser Mouse
Jonathon Gilbert [Thu, 5 Mar 2015 10:29:56 +0000 (20:29 +1000)]
hwdb: add Logitech G5 Laser Mouse

4 years agonspawn: Map all seccomp filters to capabilities
Jay Faulkner [Fri, 20 Feb 2015 21:59:47 +0000 (21:59 +0000)]
nspawn: Map all seccomp filters to capabilities

This change makes it so all seccomp filters are mapped
to the appropriate capability and are only added if that
capability was not requested when running the container.

This unbreaks the remaining use cases broken by the
addition of seccomp filters without respecting requested
capabilities.

Co-Authored-By: Clif Houck <me@clifhouck.com>
[zj: - adapt to our coding style, make struct anonymous]

4 years agobuild-sys: generate CLEANFILES from EXTRA_DIST
Zbigniew Jędrzejewski-Szmek [Tue, 3 Mar 2015 13:33:15 +0000 (08:33 -0500)]
build-sys: generate CLEANFILES from EXTRA_DIST

Everything that is generated can be assumed to belong to CLEANFILES,
which means that the original file has to be in EXTRA_DIST. Simplify
the rules by generating as in $subject.

We have less lists to adjust manually, and 'make clean' actually
removes more stuff that before.

4 years agoAllow up to 4096 simultaneous connections
Hannes Reinecke [Wed, 4 Mar 2015 15:32:17 +0000 (16:32 +0100)]
Allow up to 4096 simultaneous connections

On large system we hit the limit on 512 simultaneous dbus
connections, resulting in tons of annoying messages:

Too many concurrent connections, refusing

This patch raises the limit to 4096.

4 years agoRemove the cap on epoll events
Hannes Reinecke [Wed, 4 Mar 2015 15:32:16 +0000 (16:32 +0100)]
Remove the cap on epoll events

Currently the code will silently blank out events if there are more
then 512 epoll events, causing them never to be handled at all. This
patch removes the cap on the number of events for epoll_wait, thereby
avoiding this issue.

4 years agohwdb: fix Dell XPS12 9Q33 key name
Zbigniew Jędrzejewski-Szmek [Thu, 5 Mar 2015 01:25:04 +0000 (20:25 -0500)]
hwdb: fix Dell XPS12 9Q33 key name

https://bugs.freedesktop.org/show_bug.cgi?id=84437

4 years agobuild-sys: fix check for efi-lds file
Mirco Tischler [Thu, 5 Mar 2015 00:22:01 +0000 (01:22 +0100)]
build-sys: fix check for efi-lds file

Using the DIR macro breaks caching and has no benefit as it only offers
performance improvements when AS_FOR is used with a single element list.
Also --with-lds-dir= was broken as we never set have_efi_lds in this case.
Fix this and check if PATH actually contains the efi-lds file.

4 years agoUse correct uname identifiers in arch_map for SuperH architecture
John Paul Adrian Glaubitz [Wed, 4 Mar 2015 23:07:33 +0000 (00:07 +0100)]
Use correct uname identifiers in arch_map for SuperH architecture

https://bugs.freedesktop.org/show_bug.cgi?id=89421

4 years agoman: replace obsolete wiki link with man page
Zachary Cook [Wed, 4 Mar 2015 23:43:20 +0000 (18:43 -0500)]
man: replace obsolete wiki link with man page

4 years agoimportd: add new bus calls for importing local tar and raw images
Lennart Poettering [Wed, 4 Mar 2015 23:56:08 +0000 (00:56 +0100)]
importd: add new bus calls for importing local tar and raw images

This also adds "machinectl import-raw" and "machinectl import-tar" to
wrap these new bus calls.

THe commands basically do for local files that "machinectl pull-raw" and
friends do for remote files.

4 years agopull: improve --help text
Lennart Poettering [Wed, 4 Mar 2015 17:54:08 +0000 (18:54 +0100)]
pull: improve --help text

4 years agoimport: split out compression logic, so that we can share it with between import...
Lennart Poettering [Wed, 4 Mar 2015 17:53:37 +0000 (18:53 +0100)]
import: split out compression logic, so that we can share it with between import and pull calls

4 years agoimport: rename download code from "import" to "pull"
Lennart Poettering [Wed, 4 Mar 2015 16:07:12 +0000 (17:07 +0100)]
import: rename download code from "import" to "pull"

That way we can call the code for local container/VM imports "import"
without confusion.

4 years agosd-dhcp6-client: delay setting the DUID and don't fail constructor
Thomas Haller [Tue, 3 Mar 2015 20:06:29 +0000 (21:06 +0100)]
sd-dhcp6-client: delay setting the DUID and don't fail constructor

sd_dhcp6_client_new() tried to set the DUID based on the machine id.
If the host has no /etc/machine-id, the constructor would fail
making it impossible to create an sd_dhcp6_client instance.

Relax this and create a DUID only later as needed. This way a caller
caller can workaround a missing machine-id file and set a DUID of his
choosing via sd_dhcp6_client_set_duid().

4 years agonetworkd: Make DHCP client ID creation configurable
Jan Janssen [Tue, 3 Mar 2015 18:49:48 +0000 (19:49 +0100)]
networkd: Make DHCP client ID creation configurable

4 years agonetworkd: netdev - inform when we take over an existing netdev
Tom Gundersen [Wed, 4 Mar 2015 09:33:50 +0000 (10:33 +0100)]
networkd: netdev - inform when we take over an existing netdev

The crucial point here is that we will not change the settings of a netdev created by someone else
we simply use it as is and trust it was set up as intended.

This is confusing in the case of the pre-created netdev's (bond0 etc.), the solution should probably
be to simply make the kernel stop creating these devices as they are pretty useless.

4 years agohwdb: add pnpid for the T450s touchpad
Peter Hutterer [Wed, 4 Mar 2015 03:24:45 +0000 (13:24 +1000)]
hwdb: add pnpid for the T450s touchpad

https://bugs.freedesktop.org/show_bug.cgi?id=89411

4 years agoshared/util: assume ac when /sys/class/power_supply is missing
Zbigniew Jędrzejewski-Szmek [Wed, 4 Mar 2015 00:07:28 +0000 (19:07 -0500)]
shared/util: assume ac when /sys/class/power_supply is missing

On s390 (at least) /sys/class/power_supply is not present. We should
treat this like if this directory was empty, and not an error.

4 years agoDo not advertise .d snippets over main config file
Zbigniew Jędrzejewski-Szmek [Wed, 4 Mar 2015 00:10:21 +0000 (19:10 -0500)]
Do not advertise .d snippets over main config file

For daemons which have a main configuration file, there's
little reason for the administrator to use configuration snippets.
They are useful for packagers which need to override settings, but
we shouldn't advertise that as the main way of configuring those
services.

https://bugs.freedesktop.org/show_bug.cgi?id=89397

4 years agotmpfiles.d: only copy /etc/pam.d if PAM is present
Ross Burton [Tue, 3 Mar 2015 11:37:52 +0000 (11:37 +0000)]
tmpfiles.d: only copy /etc/pam.d if PAM is present

If HAVE_PAM isn't set then don't attempt to copy /etc/pam.d from the
factory, as it doesn't get installed.

4 years agoREADME: mention ACLs more
Zbigniew Jędrzejewski-Szmek [Tue, 3 Mar 2015 14:00:39 +0000 (09:00 -0500)]
README: mention ACLs more

They are now useful for any fs used for journal storage.

4 years agoDo not run sysv-generator-test when sysv compat is disabled
Zbigniew Jędrzejewski-Szmek [Tue, 3 Mar 2015 15:36:47 +0000 (10:36 -0500)]
Do not run sysv-generator-test when sysv compat is disabled

4 years agobuild-sys: add fsckd.h to sources
Zbigniew Jędrzejewski-Szmek [Tue, 3 Mar 2015 02:39:55 +0000 (21:39 -0500)]
build-sys: add fsckd.h to sources

Otherwise distribution tarfiles are not generated properly.

4 years agobuild-sys: systemd.conf is generated, do not distribute
Zbigniew Jędrzejewski-Szmek [Tue, 3 Mar 2015 05:21:10 +0000 (00:21 -0500)]
build-sys: systemd.conf is generated, do not distribute

4 years agobus-proxyd: avoid logging oom twice
Zbigniew Jędrzejewski-Szmek [Tue, 3 Mar 2015 05:05:14 +0000 (00:05 -0500)]
bus-proxyd: avoid logging oom twice

4 years agofsck: remove unnecessary check
Zbigniew Jędrzejewski-Szmek [Tue, 3 Mar 2015 05:02:31 +0000 (00:02 -0500)]
fsck: remove unnecessary check

gcc was complaining that progress_rc might be used uninitalized.
But it was actually always set, because the condition was always
satisfied. Remove the condition.

4 years agotmpfiles: quietly ignore ACLs on unsupported filesystems
Hans-Peter Deifel [Mon, 2 Mar 2015 23:35:08 +0000 (00:35 +0100)]
tmpfiles: quietly ignore ACLs on unsupported filesystems

A warning is printed if ACLs cannot be retrieved for any reason other
than -ENOSYS. For -ENOSYS, debug log is printed.

4 years agopo: update Russian translation
Sergey Ptashnick [Sun, 1 Mar 2015 21:37:45 +0000 (00:37 +0300)]
po: update Russian translation

Add some forgotten strings for systemd, logind and machined.

4 years agoupdate TODO
Lennart Poettering [Mon, 2 Mar 2015 23:20:23 +0000 (00:20 +0100)]
update TODO

4 years agoimportd: automatically grow /var/lib/machines/ loopback filesystem during downloads
Lennart Poettering [Mon, 2 Mar 2015 23:13:12 +0000 (00:13 +0100)]
importd: automatically grow /var/lib/machines/ loopback filesystem during downloads

If /var/lib/machines is mounted as btrfs loopback file system in
/var/lib/machines.raw with this change we automatically grow the file
system as it fills up. After each 10M we write to it during imports, we
check the free disk space, and if the fill level grows beyond 66% we
increase the size of the file system to 3x the fill level (thus lowering
it to 33%).

4 years agoman: fix typo
Lennart Poettering [Mon, 2 Mar 2015 23:11:51 +0000 (00:11 +0100)]
man: fix typo

4 years agosd-daemon: replace VLA with alloca(), to make llvm happy
Lennart Poettering [Mon, 2 Mar 2015 19:55:38 +0000 (20:55 +0100)]
sd-daemon: replace VLA with alloca(), to make llvm happy

https://bugs.freedesktop.org/show_bug.cgi?id=89379

4 years agoupdate TODO
Lennart Poettering [Mon, 2 Mar 2015 19:25:32 +0000 (20:25 +0100)]
update TODO

4 years agoimport: add support for gpg2 for verifying imported images
Lennart Poettering [Mon, 2 Mar 2015 19:24:11 +0000 (20:24 +0100)]
import: add support for gpg2 for verifying imported images

gpg2 insists on created a trust db even if we tun off all trust db
support. Hence create a temporary home where the trust db is placed, and
remove it after use.

4 years agoman: document that machinectl set-limit creates a btrfs loopback too
Lennart Poettering [Mon, 2 Mar 2015 18:35:50 +0000 (19:35 +0100)]
man: document that machinectl set-limit creates a btrfs loopback too

4 years agomachined: also set up /var/lib/machines as btrfs, if "machinectl set-limit" is called
Lennart Poettering [Mon, 2 Mar 2015 18:21:04 +0000 (19:21 +0100)]
machined: also set up /var/lib/machines as btrfs, if "machinectl set-limit" is called

4 years agojournal: fix Inappropriate ioctl for device on ext4
Cristian Rodríguez [Mon, 2 Mar 2015 00:13:10 +0000 (21:13 -0300)]
journal: fix Inappropriate ioctl for device on ext4

Logs constantly show

systemd-journald[395]: Failed to set file attributes: Inappropriate ioctl for device

This is because ext4 does not support FS_NOCOW_FL.

[zj: fold into one conditional as suggested on the ML and
     fix (preexisting) r/errno confusion in error message.]

4 years agojournal-remote: fix saving of binary fields
Zbigniew Jędrzejewski-Szmek [Mon, 2 Mar 2015 15:34:51 +0000 (10:34 -0500)]
journal-remote: fix saving of binary fields

Binary fields were not processed properly, and resulting journal files
were non-conforming, resulting in an error ("Invalid field.") when reading.

https://bugs.freedesktop.org/show_bug.cgi?id=89391

4 years agobuild-sys: allow lto and FORTIFY_SOURCE with -O[sz]
Zbigniew Jędrzejewski-Szmek [Mon, 2 Mar 2015 03:46:43 +0000 (22:46 -0500)]
build-sys: allow lto and FORTIFY_SOURCE with -O[sz]

https://bugs.freedesktop.org/show_bug.cgi?id=89382

4 years agoupdate TODO
Lennart Poettering [Mon, 2 Mar 2015 11:15:11 +0000 (12:15 +0100)]
update TODO

4 years agomachinectl: update --help text to clarify that set-limit can also change pool size
Lennart Poettering [Mon, 2 Mar 2015 11:15:01 +0000 (12:15 +0100)]
machinectl: update --help text to clarify that set-limit can also change pool size

4 years agoimportd: take a lock while we set up /var/lib/machines/
Lennart Poettering [Sun, 1 Mar 2015 15:46:50 +0000 (16:46 +0100)]
importd: take a lock while we set up /var/lib/machines/

This way, we can safely set up the directories from two processes at the
same time, including machined and importd simultaneously.

4 years agoimportd: split out setup logic for /var/lib/machines into its own API file
Lennart Poettering [Sun, 1 Mar 2015 15:39:31 +0000 (16:39 +0100)]
importd: split out setup logic for /var/lib/machines into its own API file

4 years agocore: expose consumed CPU time per unit
Lennart Poettering [Sun, 1 Mar 2015 15:24:19 +0000 (16:24 +0100)]
core: expose consumed CPU time per unit

This adds support for showing the accumulated consumed CPU time per-unit
in the "systemctl status" output. The property is also readable via the
bus.

4 years agosd-bus: sync kdbus.h (ABI break)
Daniel Mack [Mon, 2 Mar 2015 10:36:35 +0000 (11:36 +0100)]
sd-bus: sync kdbus.h (ABI break)

After some reconsideration, we decided to move the binary protocol
back to 64-bit wide UIDs and GIDs. After all, it should be possible
to redefine [gu]id_t to uint64_t and things should continue to
work. As we want to avoid such data types in kdbus.h, let's move
back to 64-bit values and be safe.

In sd-bus, we have to do a translation between uint64_t and gid_t
now for supplementary gids.

Some inline comments have also been updated in kdbus upstream.

4 years agoboot: efi - ignore .conf snippets starting with "auto-"
Kay Sievers [Sat, 28 Feb 2015 11:21:25 +0000 (12:21 +0100)]
boot: efi - ignore .conf snippets starting with "auto-"

4 years agoboot: efi - remove a couple of Loader* variables
Kay Sievers [Sat, 28 Feb 2015 11:15:48 +0000 (12:15 +0100)]
boot: efi - remove a couple of Loader* variables

4 years agocore: downgrade unit type not supported message
Umut Tezduyar Lindskog [Fri, 20 Feb 2015 09:53:28 +0000 (10:53 +0100)]
core: downgrade unit type not supported message

Otherwise every daemon reload prints out warnings like:

systemd[1]: Unit type .busname is not supported on this system.
systemd[1]: Unit type .swap is not supported on this system.

4 years agoshared: AFS is also a network filesystem
Cristian Rodríguez [Fri, 20 Feb 2015 18:35:11 +0000 (15:35 -0300)]
shared: AFS is also a network filesystem

4 years agomachined: use x-machine-unix prefix for the container bus on dbus1
Benjamin Franzke [Thu, 19 Feb 2015 19:47:28 +0000 (20:47 +0100)]
machined: use x-machine-unix prefix for the container bus on dbus1

This fixes "machinectl login" on systems configured with --disable-kdbus.

The error was:
machinectl login foo
Failed to get machine PTY: Input/output error

4 years agocore: fix return value on OOM
Thomas Hindoe Paaboel Andersen [Sat, 28 Feb 2015 22:39:55 +0000 (23:39 +0100)]
core: fix return value on OOM

4 years agoupdate TODO
Lennart Poettering [Sat, 28 Feb 2015 16:38:23 +0000 (17:38 +0100)]
update TODO

4 years agocore: rework device state logic
Lennart Poettering [Fri, 27 Feb 2015 20:55:08 +0000 (21:55 +0100)]
core: rework device state logic

This change introduces a new state "tentative" for device units. Device
units are considered "plugged" when udev announced them, "dead" when
they are not available in the kernel, and "tentative" when they are
referenced in /proc/self/mountinfo or /proc/swaps but not (yet)
announced via udev.

This should fix a race when device nodes (like loop devices) are created
and immediately mounted. Previously, systemd might end up seeing the
mount unit before the device, and would thus pull down the mount because
its BindTo dependency on the device would not be fulfilled.

4 years agobootctl: avoid NULL pointer dereference
Zbigniew Jędrzejewski-Szmek [Fri, 27 Feb 2015 22:31:43 +0000 (17:31 -0500)]
bootctl: avoid NULL pointer dereference

4 years agobuild-sys: use -Wno-missing-field-initializers for efi stuff
Zbigniew Jędrzejewski-Szmek [Fri, 27 Feb 2015 22:26:48 +0000 (17:26 -0500)]
build-sys: use -Wno-missing-field-initializers for efi stuff

4 years agoman: correct description of systemd-user-sessions
Zbigniew Jędrzejewski-Szmek [Fri, 27 Feb 2015 22:26:42 +0000 (17:26 -0500)]
man: correct description of systemd-user-sessions

That part of functionality was removed in 7fb3ee51c1b377.

4 years agobuild-sys: make systemd-user-sessions conditional on PAM again
Zbigniew Jędrzejewski-Szmek [Fri, 27 Feb 2015 22:26:26 +0000 (17:26 -0500)]
build-sys: make systemd-user-sessions conditional on PAM again

This undoes a part of previous commit: s-u-s is dependent on HAVE_PAM
again, but not on HAVE_LOGIND.

4 years agouser-sessions: move into own subdir and build independently of logind
Ivan Shapovalov [Wed, 25 Feb 2015 18:47:26 +0000 (21:47 +0300)]
user-sessions: move into own subdir and build independently of logind

Suggested by Zbyszek on IRC.

[zj: /run/nologin is used with PAM. systemd-user-session is independent
     of logind.]

4 years agoshared/condition: fix gcc5 warning
Daniel Mack [Fri, 27 Feb 2015 19:05:26 +0000 (20:05 +0100)]
shared/condition: fix gcc5 warning

Fixes the warning below.

src/shared/condition.c: In function ‘condition_new’:
src/shared/condition.c:47:27: warning: logical not is only applied to the left hand side of comparison [-Wlogical-not-parentheses]
         assert(!parameter == (type == CONDITION_NULL));
                           ^
src/shared/macro.h:42:44: note: in definition of macro ‘_unlikely_’
 #define _unlikely_(x) (__builtin_expect(!!(x),0))
                                            ^
src/shared/macro.h:226:22: note: in expansion of macro ‘assert_se’
 #define assert(expr) assert_se(expr)
                      ^
src/shared/condition.c:47:9: note: in expansion of macro ‘assert’
         assert(!parameter == (type == CONDITION_NULL));
         ^

4 years agonetworkd: add support for Uplink Failure Detection
Alin Rauta [Tue, 17 Feb 2015 12:06:57 +0000 (04:06 -0800)]
networkd: add support for Uplink Failure Detection

Introduce BindCarrier= to indicate the set of links that determine if
the current link should be brought UP or DOWN.

[tomegun: add a bit to commit message]

4 years agoboot: efi - fix missing include
Marcel Holtmann [Fri, 27 Feb 2015 00:19:33 +0000 (01:19 +0100)]
boot: efi - fix missing include

src/boot/efi/splash.c:312:9: warning: implicit declaration of function ‘graphics_mode’ [-Wimplicit-function-declaration]
         err = graphics_mode(TRUE);
         ^

4 years agohwdb: add sdio identifiers for Broadcom WLAN cards
Arend van Spriel [Wed, 25 Feb 2015 10:02:39 +0000 (11:02 +0100)]
hwdb: add sdio identifiers for Broadcom WLAN cards

This patch adds the sdio identifiers known to be supported by
the brcmfmac open-source driver.

4 years agosysctl: add some hints how to override settings
Zbigniew Jędrzejewski-Szmek [Fri, 27 Feb 2015 00:05:51 +0000 (19:05 -0500)]
sysctl: add some hints how to override settings

Also a link to decent documentation for sysrq keys. It is surprising
hard to find.

https://lists.fedoraproject.org/pipermail/devel/2015-February/208412.html

4 years agosysctl: downgrade message about sysctl overrides to debug
Zbigniew Jędrzejewski-Szmek [Fri, 27 Feb 2015 00:00:11 +0000 (19:00 -0500)]
sysctl: downgrade message about sysctl overrides to debug

Printing it at info level was tedious. We don't do that for any other
overrides.

4 years agosd-rtnl: types - fix check for unsupported type
Tom Gundersen [Wed, 25 Feb 2015 20:29:37 +0000 (15:29 -0500)]
sd-rtnl: types - fix check for unsupported type

Spotted by Thomas H.P. Andersen <phomes@gmail.com>

4 years agosd-rtnl: types - don't assert_return in private API
Tom Gundersen [Wed, 25 Feb 2015 20:28:48 +0000 (15:28 -0500)]
sd-rtnl: types - don't assert_return in private API

4 years agoboot: efi - remove custom splash support
Kay Sievers [Thu, 26 Feb 2015 18:51:08 +0000 (19:51 +0100)]
boot: efi - remove custom splash support

4 years agoboot: efi - split graphics and splash handling
Kay Sievers [Thu, 26 Feb 2015 18:45:08 +0000 (19:45 +0100)]
boot: efi - split graphics and splash handling

4 years agoboot: efi - support embedded splash image
Kay Sievers [Thu, 26 Feb 2015 17:33:37 +0000 (18:33 +0100)]
boot: efi - support embedded splash image

4 years agocore: emit changes for NFailedUnits property
Lucas De Marchi [Wed, 18 Feb 2015 16:22:37 +0000 (14:22 -0200)]
core: emit changes for NFailedUnits property

By notifying the clients when this property is changed it's possible to
allow "system health monitor" tools to get transitions like
running<->degraded. This is an alternative to send changes on the
SystemState property since the latter is more difficult to derive.

4 years agoUpdate TODO
Zbigniew Jędrzejewski-Szmek [Thu, 26 Feb 2015 14:27:12 +0000 (09:27 -0500)]
Update TODO

4 years agounit: When stopping due to BindsTo=, log which unit caused it
Colin Walters [Tue, 17 Feb 2015 18:47:34 +0000 (13:47 -0500)]
unit: When stopping due to BindsTo=, log which unit caused it

I'm trying to track down a relatively recent change in systemd
which broke OSTree; see https://bugzilla.gnome.org/show_bug.cgi?id=743891

Systemd started to stop sysroot.mount, and this patch should help
me debug why at least.

While we're here, "break" on the first unit we find that will
deactivate, as there's no point in further iteration.

4 years agotimedated: when performing "SetTime" compensate for program lag
Shawn Landden [Mon, 16 Feb 2015 19:47:08 +0000 (11:47 -0800)]
timedated: when performing "SetTime" compensate for program lag

(David: fix up compile-failure and simplify code a bit)

4 years agobuild-sys: efi - move cflag from x86_64 to common section
Kay Sievers [Thu, 26 Feb 2015 00:55:32 +0000 (01:55 +0100)]
build-sys: efi - move cflag from x86_64 to common section

4 years agoboot: efi - print generic error message if we fail to execute an image
Kay Sievers [Thu, 26 Feb 2015 00:15:18 +0000 (01:15 +0100)]
boot: efi - print generic error message if we fail to execute an image

4 years agoboot: efi - remove default boot splash handling
Kay Sievers [Wed, 25 Feb 2015 14:56:54 +0000 (15:56 +0100)]
boot: efi - remove default boot splash handling

4 years agoupdate TODO
Lennart Poettering [Wed, 25 Feb 2015 23:43:08 +0000 (00:43 +0100)]
update TODO

4 years agomachined: if /var/lib/machines is backed by a loop file, resize it on "machinectl...
Lennart Poettering [Wed, 25 Feb 2015 23:40:43 +0000 (00:40 +0100)]
machined: if /var/lib/machines is backed by a loop file, resize it on "machinectl set-limit"

When the pool size limit is altered with "machinectl set-limit", then
not only set the subvolume quota of the /var/lib/machine subvolume, but
also resize the backing loop file and the btrfs file system on it
dynamically.

4 years agobootctl: check that partition uuid is valid
Thomas Hindoe Paaboel Andersen [Wed, 25 Feb 2015 22:10:35 +0000 (23:10 +0100)]
bootctl: check that partition uuid is valid

It probably is but check anyway to make coverity happy.

CID#1271354

4 years agounit: use weaker dependencies between mount and device units in --user mode
Lennart Poettering [Wed, 25 Feb 2015 21:05:14 +0000 (22:05 +0100)]
unit: use weaker dependencies between mount and device units in --user mode

When running in user mode unmounting of mount units when a device
vanishes is unlikely to work, and even if it would work is already done
by PID 1 anyway. HEnce, when creating implicit dependencies between
mount units and their backing devices, created a Wants= type dependency
in --user mode, but leave a BindsTo= dependency in --system mode.

4 years agonspawn: make kill signal to use for PID 1 configurable
Lennart Poettering [Wed, 25 Feb 2015 21:04:48 +0000 (22:04 +0100)]
nspawn: make kill signal to use for PID 1 configurable

4 years agomachined,machinectl: add calls for changing container/VM quotas
Lennart Poettering [Tue, 24 Feb 2015 22:50:37 +0000 (23:50 +0100)]
machined,machinectl: add calls for changing container/VM quotas

4 years agojournal: make skipping of exhausted journal files effective again
Michal Schmidt [Tue, 24 Feb 2015 18:45:17 +0000 (19:45 +0100)]
journal: make skipping of exhausted journal files effective again

Commit 668c965af "journal: skipping of exhausted journal files is bad if
direction changed" fixed a correctness issue, but it also significantly
limited the cases where the optimization that skips exhausted journal
files could apply.
As a result, some journalctl queries are much slower in v219 than in v218.
(e.g. queries where a "--since" cutoff should have quickly eliminated
older journal files from consideration, but didn't.)

If already in the initial iteration find_location_with_matches() finds
no entry, the journal file's location is not updated. This is fine,
except that:
 - We must update at least f->last_direction. The optimization relies on
   it. Let's separate that from journal_file_save_location() and update
   it immediately after the direction checks.
 - The optimization was conditional on "f->current_offset > 0", but it
   would always be 0 in this scenario. This check is unnecessary for the
   optimization.

4 years agohwdb: Update database of Bluetooth company identifiers
Marcel Holtmann [Wed, 25 Feb 2015 06:27:49 +0000 (07:27 +0100)]
hwdb: Update database of Bluetooth company identifiers

4 years agopo: update Polish translation
Piotr Drąg [Thu, 19 Feb 2015 15:18:10 +0000 (16:18 +0100)]
po: update Polish translation

https://bugs.freedesktop.org/show_bug.cgi?id=89230