chiark / gitweb /
elogind.git
9 years agotree-wide: use _packed_ macro instead of raw gcc __attribute__
Lennart Poettering [Sun, 8 Mar 2015 23:07:44 +0000 (00:07 +0100)]
tree-wide: use _packed_ macro instead of raw gcc __attribute__

9 years agoudevd: close race in udev settle
Tom Gundersen [Mon, 9 Mar 2015 15:16:23 +0000 (16:16 +0100)]
udevd: close race in udev settle

The udev-settle guarantees that udevd is no longer processing any of the
events casued by udev-trigger. The way this works is that it sends a
synchronous PING to udevd after udev-trigger has ran, and when that returns
it knows that udevd has started processing the events from udev-trigger.
udev-settle will then wait for the event queue to empty before returning.

However, there was a race here, as we would only update the /run state at
the beginning of the event loop, before reading out new events and before
processing the ping.

That means that if the first uevent arrived in the same event-loop iteration
as the PING, we would return the ping before updating the queue state in /run
(which would happen on the next iteration).

The race window here is tiny (as the /run state would probably get updated
before udev-settle got a chance to read /run), but still a possibility.

Fix the problem by updating the /run state as the last step before returning
the PING.

We must still update it at the beginning of the loop as well, otherwise we
risk being stuck in poll() with a stale state in /run.

Reported-by: Daniel Drake <drake@endlessm.com>
9 years agomissing.h: add NDA_*
Michael Olbrich [Mon, 9 Mar 2015 11:27:25 +0000 (12:27 +0100)]
missing.h: add NDA_*

This is necessary to build with older kernel headers. NDA_VLAN was
introduced in v3.9 and NDA_PORT, NDA_VNI and NDA_IFINDEX in v3.10

9 years agoFix typos
Torstein Husebø [Mon, 9 Mar 2015 12:02:56 +0000 (13:02 +0100)]
Fix typos

9 years agopo: update Russian translation - pluralize fsckd
Sergey Ptashnick [Sun, 8 Mar 2015 15:51:41 +0000 (18:51 +0300)]
po: update Russian translation - pluralize fsckd

Correctly pluralize strings for fsckd.

9 years agosd-journal: return error when we cannot open a file
Zbigniew Jędrzejewski-Szmek [Sun, 8 Mar 2015 15:11:50 +0000 (11:11 -0400)]
sd-journal: return error when we cannot open a file

Lack of this caused journalctl not to display a hint about missing groups
properly when the user lacks permissions.

9 years agojournalctl: update hint now that we set ACL everywhere
Zbigniew Jędrzejewski-Szmek [Sun, 8 Mar 2015 15:04:59 +0000 (11:04 -0400)]
journalctl: update hint now that we set ACL everywhere

9 years agopo: update Russian translation - importd
Sergey Ptashnick [Sun, 8 Mar 2015 14:41:23 +0000 (17:41 +0300)]
po: update Russian translation - importd

Add strings for importd, by analogy with 1eb37584a8.

9 years agobus: fix leak in error path
Zbigniew Jędrzejewski-Szmek [Sat, 7 Mar 2015 20:05:50 +0000 (15:05 -0500)]
bus: fix leak in error path

CID #1271349.

9 years agosystemctl: remove dead check
Zbigniew Jędrzejewski-Szmek [Sat, 7 Mar 2015 20:00:22 +0000 (15:00 -0500)]
systemctl: remove dead check

r could never be less than zero.

CID #1271350.

9 years agocore/load-fragment: safe_close() protects errno
Zbigniew Jędrzejewski-Szmek [Sat, 7 Mar 2015 19:36:14 +0000 (14:36 -0500)]
core/load-fragment: safe_close() protects errno

9 years agolibsystemd-terminal: use at most LOG_ERR for XKB errors
Zbigniew Jędrzejewski-Szmek [Sat, 7 Mar 2015 19:30:56 +0000 (14:30 -0500)]
libsystemd-terminal: use at most LOG_ERR for XKB errors

XKB errors aren't *that* important.

Coverity complained that the same action is taken in multiple
branches, which is semi-valid, so is fixed too (CID #1256582).

9 years agologin: fix copy-pasto in error path
Zbigniew Jędrzejewski-Szmek [Sat, 7 Mar 2015 19:23:38 +0000 (14:23 -0500)]
login: fix copy-pasto in error path

CID #1256583.

9 years agonspawn: fix use-after-free and leak in error paths
Zbigniew Jędrzejewski-Szmek [Sat, 7 Mar 2015 19:19:20 +0000 (14:19 -0500)]
nspawn: fix use-after-free and leak in error paths

CID #1257765.

9 years agocore/dbus-manager: remove dead check
Zbigniew Jędrzejewski-Szmek [Sat, 7 Mar 2015 19:16:18 +0000 (14:16 -0500)]
core/dbus-manager: remove dead check

CID #1257766.

9 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

9 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.

9 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.

9 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.

9 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.

9 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.

9 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

9 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

9 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

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

9 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.)

9 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.

9 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

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

9 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

9 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

9 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]

9 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.

9 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.

9 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.

9 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

9 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.

9 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

9 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

9 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.

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

9 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

9 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.

9 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().

9 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

9 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.

9 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

9 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.

9 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

9 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.

9 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.

9 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

9 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.

9 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

9 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

9 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.

9 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.

9 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.

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

9 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%).

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

9 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

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

9 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.

9 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

9 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

9 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.]

9 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

9 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

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

9 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

9 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.

9 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

9 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.

9 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.

9 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-"

9 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

9 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.

9 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

9 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

9 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

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

9 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.

9 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

9 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

9 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.

9 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.

9 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.]

9 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));
         ^

9 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]

9 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);
         ^

9 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.

9 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

9 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.

9 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>

9 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

9 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

9 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

9 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

9 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.