chiark / gitweb /
elogind.git
10 years agologind: mute/restore VT on behalf of session controllers
David Herrmann [Thu, 28 Nov 2013 14:10:24 +0000 (15:10 +0100)]
logind: mute/restore VT on behalf of session controllers

If a session process calls TakeControl(), we now put the VT into
KD_GRAPHICS+K_OFF mode. This way, the new session controller can solely
rely on the logind-dbus API to manage the session.

Once the controller exits or calls ReleaseControl(), we restore the VT. We
also restore it, if we lost a controller during crash/restart (but only if
there really *was* a controller previously).

Note that we also must put the VT into VT_PROCESS mode. We want VT_AUTO
semantics, but VT_AUTO+KD_GRAPHICS actually disables *all* VT switches
(who came up with that great idea?). Hence, we set VT_PROCESS for logind
but acknowledge *all* requests immediately.

If a compositor wants custom VT setups, they can still get this by *first*
calling TakeControl() and afterwards setting up the VT. logind doesn't
touch the VT during controller runtime, only during setup/teardown. This
is actually what weston already does.

10 years agologind: restore session-controller after crash
David Herrmann [Thu, 28 Nov 2013 13:58:57 +0000 (14:58 +0100)]
logind: restore session-controller after crash

We now save the unique bus-name of a session-controller as CONTROLLER=%s
in the session files. This allows us to restore the controller after a
crash or restart.

Note that we test whether the name is still valid (dbus guarantees that
the name is unique as long as the machine is up and running). If it is,
we know that the controller still exists and can safely restore it. Our
dbus-name-tracking guarantees that we're notified once it exits.

Also note that session-devices are *not* restored. We have no way to know
which devices where used before the crash. We could store all these on
disk, too, or mark them via udev. However, this seems to be rather
cumbersome. Instead, we expect controllers to listen for NewSession
signals for their own session. This is sent on session_load() and they can
then re-request all devices.

The only race I could find is if logind crashes, then the session
controller tries calling ReleaseControl() (which will fail as logind is
down) but keeps the bus-connection valid for other independent requests.
If logind is restarted, it will restore the old controller and thus block
the session.
However, this seems unlikely for several reasons:
 - The ReleaseControl() call must occur exactly in the timespan where
   logind is dead.
 - A process which calls ReleaseControl() usually closes the
   bus-connection afterwards. Especially if ReleaseControl() fails, the
   process should notice that something is wrong and close the bus.
 - A process calling ReleaseControl() usually exits afterwards. There may
   be any cleanup pending, but other than that, usual compositors exit.
 - If a session-controller calls ReleaseControl(), a session is usually
   considered closing. There is no known use-case where we hand-over
   session-control in a single session. So we don't care whether the
   controller is locked afterwards.

So this seems negligible.

10 years agologind: ignore failing close() on session-devices
David Herrmann [Thu, 28 Nov 2013 13:51:40 +0000 (14:51 +0100)]
logind: ignore failing close() on session-devices

Unfortunately, close() on a revoked/removed character-device fails with
ENODEV. I tried tracking this down in the kernel, but couldn't figure out
were exactly it comes from. However, can be easily reproduced with:
  fd = open("/dev/input/event0", O_RDWR);
  ioctl(fd, EVIOCREVOKE, 0);
  r = close(fd);
A second close on @fd would return EBADF so the close is actually valid.

We simply ignore close() errors for all session-devices as their access
may be revoked asynchronously, or the device might get unplugged.
We use close_nointr() in case anyone ever looks at the return value (or
anyone runs "grep 'close(' -r src/" to find broken close() calls).

Fixes:
  systemd-logind[31992]: Assertion 'close_nointr(fd) == 0' failed at src/shared/util.c:185, function close_nointr_nofail(). Aborting.

10 years agobus: add bus_name_has_owner() helper
David Herrmann [Thu, 28 Nov 2013 13:50:19 +0000 (14:50 +0100)]
bus: add bus_name_has_owner() helper

Small helper to run a synchronous "NameHasOwner" request on the
dbus-daemon.

10 years agologin: revert lazy session-activation on non-VT seats
David Herrmann [Thu, 28 Nov 2013 09:52:18 +0000 (10:52 +0100)]
login: revert lazy session-activation on non-VT seats

Existing applications like gdm already depend on new sessions to get
immediately activated on seats without VTs. Fixes a bug reported as:
  [systemd-devel] systemd 208:trouble with inactive user sessions at non-seat0 seats

This patch restores the original behavior. We either need to add a new
flag for session-creation or some other heuristic to avoid activating new
sessions in the future.

10 years agobuild-sys: avoid warnings from assert_cc
Zbigniew Jędrzejewski-Szmek [Thu, 28 Nov 2013 08:41:33 +0000 (03:41 -0500)]
build-sys: avoid warnings from assert_cc

10 years agopo: install translations
Zbigniew Jędrzejewski-Szmek [Thu, 28 Nov 2013 08:29:26 +0000 (03:29 -0500)]
po: install translations

10 years agocatalog,po: add Russian translation
Sergey Ptashnick [Thu, 28 Nov 2013 08:11:04 +0000 (03:11 -0500)]
catalog,po: add Russian translation

10 years agocatalog: fix typos in the French translation
Sylvain Plantefeve [Wed, 27 Nov 2013 19:43:09 +0000 (20:43 +0100)]
catalog: fix typos in the French translation

10 years agobus: update kdbus.h and always subscribe to KDBUS_HELLO_ATTACH_NAMES
Kay Sievers [Thu, 28 Nov 2013 01:26:03 +0000 (02:26 +0100)]
bus: update kdbus.h and always subscribe to KDBUS_HELLO_ATTACH_NAMES

10 years agoautomount: log info about triggering process
Kay Sievers [Thu, 28 Nov 2013 00:25:10 +0000 (01:25 +0100)]
automount: log info about triggering process

10 years agocore: initialize variable
Kay Sievers [Thu, 28 Nov 2013 00:24:56 +0000 (01:24 +0100)]
core: initialize variable

10 years agoTODO: add sd-rtnl items
Tom Gundersen [Wed, 27 Nov 2013 22:15:04 +0000 (23:15 +0100)]
TODO: add sd-rtnl items

10 years agoRevert "socket-proxyd: Add --listener option for listener/destination pairs."
Lennart Poettering [Wed, 27 Nov 2013 19:55:15 +0000 (20:55 +0100)]
Revert "socket-proxyd: Add --listener option for listener/destination pairs."

This reverts commit adcf4c81c58511b67644e17fa743d1729d3c9ccf.

We have a better solution for the problem of making two processes run in
the same namespace, and --listener is not needed hence and should be
dropped.

Conflicts:
man/systemd-socket-proxyd.xml

10 years agonamespace: comment typo fix
Lennart Poettering [Wed, 27 Nov 2013 19:31:51 +0000 (20:31 +0100)]
namespace: comment typo fix

10 years agobus: properly handle if we get disconnected during HELLO phase
Lennart Poettering [Wed, 27 Nov 2013 19:24:10 +0000 (20:24 +0100)]
bus: properly handle if we get disconnected during HELLO phase

10 years agoservice: add the ability for units to join other unit's PrivateNetwork= and PrivateTm...
Lennart Poettering [Wed, 27 Nov 2013 19:23:18 +0000 (20:23 +0100)]
service: add the ability for units to join other unit's PrivateNetwork= and PrivateTmp= namespaces

10 years agoTODO: add dbus runtime depedency
Tom Gundersen [Wed, 27 Nov 2013 15:50:53 +0000 (16:50 +0100)]
TODO: add dbus runtime depedency

10 years agonetworkd: Initialize variable to NULL
Patrik Flykt [Wed, 27 Nov 2013 15:28:54 +0000 (17:28 +0200)]
networkd: Initialize variable to NULL

If any number of arguments are given, _cleanup_manager_free_ is used
with unitialized memory causing a crash.

10 years agoTODO: remove dbus requirement
Kay Sievers [Wed, 27 Nov 2013 12:15:10 +0000 (13:15 +0100)]
TODO: remove dbus requirement

10 years agoupdates for TODO and README
Lukasz Skalski [Wed, 27 Nov 2013 10:02:10 +0000 (11:02 +0100)]
updates for TODO and README

* library support for setns() system call was added to glibc
version 2.14 (setns() call is use in src/machine/machinectl.c
and src/libsystemd-bus-container.c)

* utf8 validation call are already exported (via sd-utf8.c file) -
commit - 369c583b3fb3d672ef469d53141e274ec9d2e8a7

10 years agologind: log which process is delaying suspend and not closing locks
Lennart Poettering [Wed, 27 Nov 2013 01:38:06 +0000 (02:38 +0100)]
logind: log which process is delaying suspend and not closing locks

10 years agojournald: mention how long we needed to flush to /var in the logs
Lennart Poettering [Wed, 27 Nov 2013 00:54:25 +0000 (01:54 +0100)]
journald: mention how long we needed to flush to /var in the logs

10 years agojournal: simplify pre-allocation logic
Lennart Poettering [Wed, 27 Nov 2013 00:44:52 +0000 (01:44 +0100)]
journal: simplify pre-allocation logic

let's just do a single fallocate() as far as possible, and don't
distuingish between allocated space and file size.

This way we can save a syscall for each append, which makes quite some
benefits.

10 years agojournal: add a test case for flushing messages out of a series of journal files into...
Lennart Poettering [Wed, 27 Nov 2013 00:01:53 +0000 (01:01 +0100)]
journal: add a test case for flushing messages out of a series of journal files into a single new one

10 years agojournal: allow journal_file_copy_entry() to work on non-local files
Lennart Poettering [Tue, 26 Nov 2013 23:59:07 +0000 (00:59 +0100)]
journal: allow journal_file_copy_entry() to work on non-local files

10 years agojournal: fix iteration when we go backwards from the beginning of an array chain...
Lennart Poettering [Tue, 26 Nov 2013 23:58:39 +0000 (00:58 +0100)]
journal: fix iteration when we go backwards from the beginning of an array chain element

10 years agojournal: optimize bisection logic a bit by caching the last position
Lennart Poettering [Tue, 26 Nov 2013 19:37:53 +0000 (20:37 +0100)]
journal: optimize bisection logic a bit by caching the last position

This way we can do a quick restart limiting a bit how wildly we need to
jump around during the bisection process.

10 years agojournald: keep statistics on how of we hit/miss the mmap cache
Lennart Poettering [Tue, 26 Nov 2013 17:58:44 +0000 (18:58 +0100)]
journald: keep statistics on how of we hit/miss the mmap cache

10 years agojournal: make table const
Lennart Poettering [Tue, 26 Nov 2013 17:40:23 +0000 (18:40 +0100)]
journal: make table const

10 years agojournal: when appending to journal file, allocate larger blocks at once
Lennart Poettering [Tue, 26 Nov 2013 17:39:42 +0000 (18:39 +0100)]
journal: when appending to journal file, allocate larger blocks at once

10 years agotree-wide usage of %m specifier instead of strerror(errno)
Daniel Buch [Tue, 26 Nov 2013 08:38:02 +0000 (09:38 +0100)]
tree-wide usage of %m specifier instead of strerror(errno)

Also for log_error() except where a specific error is specified

e.g. errno ? strerror(errno) : "Some user specified message"

10 years agoman: networkd - document bridging
Tom Gundersen [Tue, 26 Nov 2013 10:52:38 +0000 (11:52 +0100)]
man: networkd - document bridging

10 years agosystemctl: fix enable/disable reply handling
Kay Sievers [Tue, 26 Nov 2013 04:19:04 +0000 (05:19 +0100)]
systemctl: fix enable/disable reply handling

10 years agopam_systemd: do not set XDG_RUNTIME_DIR if the session's original user is not the...
Lennart Poettering [Tue, 26 Nov 2013 04:05:00 +0000 (05:05 +0100)]
pam_systemd: do not set XDG_RUNTIME_DIR if the session's original user is not the same as the newly logged in one

It's better not to set any XDG_RUNTIME_DIR at all rather than one of a
different user. So let's do this.

This changes the bus call parameters of CreateSession(), but that is
explicitly an internal API hence should be fine. Note however, that a
logind restart (the way the RPM postinst scriptlets do it) is necessary
to make things work again.

10 years agonspawn: improve error message when we cannot resolve the root directory argument
Lennart Poettering [Tue, 26 Nov 2013 02:50:32 +0000 (03:50 +0100)]
nspawn: improve error message when we cannot resolve the root directory argument

10 years agoman: explain the precise syntax and feature set of unit names at the end of the man...
Lennart Poettering [Tue, 26 Nov 2013 01:25:34 +0000 (02:25 +0100)]
man: explain the precise syntax and feature set of unit names at the end of the man page, given that it is detail information

10 years agosystemctl: replace the three job mode options by a single --job-mode= option
Lennart Poettering [Tue, 26 Nov 2013 01:14:27 +0000 (02:14 +0100)]
systemctl: replace the three job mode options by a single --job-mode= option

Also, expose the new "flush" job mode this way.

10 years agocore: add new "flush" job mode to cancel all other jobs when queuing a new job
Lennart Poettering [Tue, 26 Nov 2013 01:13:41 +0000 (02:13 +0100)]
core: add new "flush" job mode to cancel all other jobs when queuing a new job

10 years agocore: replace OnFailureIsolate= setting by a more generic OnFailureJobMode= setting...
Lennart Poettering [Tue, 26 Nov 2013 00:39:53 +0000 (01:39 +0100)]
core: replace OnFailureIsolate= setting by a more generic OnFailureJobMode= setting and make use of it where applicable

10 years agonetworkd: add bridge support
Tom Gundersen [Sun, 24 Nov 2013 22:37:56 +0000 (23:37 +0100)]
networkd: add bridge support

A bridge is specified in a .netdev file with a section [Bridge]
and at least the entry Name=.

A link may be joined to a bridge if the .network applied to it has
a Bridge= entry giving the name of the bridge in its [Network] section.

We eagerly create all bridges on startup, and links are added to
bridges as soon as they both appear.

10 years agonetworkd: minor fixes
Tom Gundersen [Sun, 24 Nov 2013 22:36:58 +0000 (23:36 +0100)]
networkd: minor fixes

In particular, store the ifname, though we should only use it carefully, as
it is not guaranteed to be stable. Using it for logging is fine though.

10 years agortnl: add support for IFLA_MASTER
Tom Gundersen [Sun, 24 Nov 2013 21:08:30 +0000 (22:08 +0100)]
rtnl: add support for IFLA_MASTER

10 years agortnl: add preliminary support for containers
Tom Gundersen [Thu, 21 Nov 2013 19:44:29 +0000 (20:44 +0100)]
rtnl: add preliminary support for containers

For now, we only support one container type IFLA_LINKINFO, and we
still lack support for parsing the containers again.

10 years agonetworkd: use correct printf formatter
Dave Reisner [Mon, 25 Nov 2013 23:19:10 +0000 (18:19 -0500)]
networkd: use correct printf formatter

uint64_t can be formatted correctly with %ju, rather than casting to
unsigned and potentially losing accuracy.

10 years agoconf-parser: fix memory realloc error
Yin Kangkai [Mon, 25 Nov 2013 15:14:46 +0000 (23:14 +0800)]
conf-parser: fix memory realloc error

Otherwise there is some memory corruption and undefined behavior,
e.g., in my case systemd-udev was always aborted at the
_cleanup_freep_ around that code blocks.

10 years agocore: fix order of parameters in broadcast_signal()
Lennart Poettering [Mon, 25 Nov 2013 22:03:03 +0000 (23:03 +0100)]
core: fix order of parameters in broadcast_signal()

10 years agobus: properly return errors to client if invalid parameters are passed to built-in...
Lennart Poettering [Mon, 25 Nov 2013 21:32:18 +0000 (22:32 +0100)]
bus: properly return errors to client if invalid parameters are passed to built-in methods

10 years agoservice: fix handling of PID file inotify events
Lennart Poettering [Mon, 25 Nov 2013 21:20:57 +0000 (22:20 +0100)]
service: fix handling of PID file inotify events

10 years agocore: include following set data in dump
Lennart Poettering [Mon, 25 Nov 2013 20:16:37 +0000 (21:16 +0100)]
core: include following set data in dump

10 years agoswap: always track the current real device node of all swap devices, even when not...
Lennart Poettering [Mon, 25 Nov 2013 20:08:39 +0000 (21:08 +0100)]
swap: always track the current real device node of all swap devices, even when not active

This way, we can avoid executing two /bin/swapon jobs to be dispatched
for the same swap device if it is configured for two different paths.

Previously we were just tracking the device nodes of active swap
devices, which would not allow us to recognize the identity of two swap
devices before they are active.

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

10 years agoshutdown: during final killing spree also send SIGHUP in addition to SIGTERM to deal...
Lennart Poettering [Mon, 25 Nov 2013 17:08:02 +0000 (18:08 +0100)]
shutdown: during final killing spree also send SIGHUP in addition to SIGTERM to deal with shells

This makes shutdown a bit faster if debug-shell.service is enabled.

10 years agodelete unused variables
Thomas Hindoe Paaboel Andersen [Mon, 25 Nov 2013 20:16:26 +0000 (21:16 +0100)]
delete unused variables

10 years agonetworkd: add support for [Address] sections
Tom Gundersen [Tue, 19 Nov 2013 15:54:42 +0000 (16:54 +0100)]
networkd: add support for [Address] sections

This will allow specifying more options per address than the
simple Address= entry in the [Network] section.

Preliminary support for the same functionality for [Route] sections
are added, but not yet hooked up, as more testing is needed.

10 years agoconf-parser: distinguish between multiple sections with the same name
Tom Gundersen [Tue, 19 Nov 2013 15:17:55 +0000 (16:17 +0100)]
conf-parser: distinguish between multiple sections with the same name

Pass on the line on which a section was decleared to the parsers, so they
can distinguish between multiple sections (if they chose to). Currently
no parsers take advantage of this, but a follow-up patch will do that
to distinguish

[Address]
Address=192.168.0.1/24
Label=one

[Address]
Address=192.168.0.2/24
Label=two

from

[Address]
Address=192.168.0.1/24
Label=one
Address=192.168.0.2/24
Label=two

10 years agodevice: fix typo
Lennart Poettering [Mon, 25 Nov 2013 16:46:21 +0000 (17:46 +0100)]
device: fix typo

10 years agoudev-builtin-keyboard: More useful error message
Martin Pitt [Mon, 25 Nov 2013 16:44:57 +0000 (17:44 +0100)]
udev-builtin-keyboard: More useful error message

Make the "Error calling EVIOCSKEYCODE" error message more useful by mentioning
which scan/key code it tried to set.

10 years agosystemctl: remove debug log message
Lennart Poettering [Mon, 25 Nov 2013 16:34:57 +0000 (17:34 +0100)]
systemctl: remove debug log message

10 years agosystemctl: when status is called without arguments show pager
Lennart Poettering [Mon, 25 Nov 2013 16:28:42 +0000 (17:28 +0100)]
systemctl: when status is called without arguments show pager

10 years agocore: fix bus serialization of conditions
Lennart Poettering [Mon, 25 Nov 2013 16:18:38 +0000 (17:18 +0100)]
core: fix bus serialization of conditions

10 years agocore: fix serialization of exec command structs
Lennart Poettering [Mon, 25 Nov 2013 15:59:51 +0000 (16:59 +0100)]
core: fix serialization of exec command structs

10 years agocore: set some event source priorities to enforce dispatching order
Lennart Poettering [Mon, 25 Nov 2013 14:35:10 +0000 (15:35 +0100)]
core: set some event source priorities to enforce dispatching order

10 years agoswap: split state machine state ACTIVATING into two
Lennart Poettering [Mon, 25 Nov 2013 14:26:30 +0000 (15:26 +0100)]
swap: split state machine state ACTIVATING into two

We expect the event on /proc/swaps before we expect the SIGCHILD,
reflect this in the state machine.

10 years agodevice: modernizations
Lennart Poettering [Mon, 25 Nov 2013 14:25:01 +0000 (15:25 +0100)]
device: modernizations

10 years agocore: dispatch run queue only if there's nothing else to do
Lennart Poettering [Mon, 25 Nov 2013 14:22:41 +0000 (15:22 +0100)]
core: dispatch run queue only if there's nothing else to do

Always read all external events before we decide what we do next.

10 years agocgroups-agent: down-grade log level
Lennart Poettering [Mon, 25 Nov 2013 14:20:59 +0000 (15:20 +0100)]
cgroups-agent: down-grade log level

10 years agoudev: net_setup_link - don't use Description as Alias
Tom Gundersen [Mon, 25 Nov 2013 00:33:04 +0000 (01:33 +0100)]
udev: net_setup_link - don't use Description as Alias

Use Description only internally, and allow Alias to be set
as a separate option. For instance SNMP uses ifalias for
a specific purpose, so let's not write to it by default.

10 years agoRevert "man: suggest using hash= atribut for swap in example"
Lukas Nykryn [Mon, 25 Nov 2013 08:31:09 +0000 (09:31 +0100)]
Revert "man: suggest using hash= atribut for swap in example"

This reverts commit fa7abba2328eb2d23a7e27708f86f5013059ddcf.

10 years agosocket-proxyd: Fix man page because --listener takes an argument.
David Strauss [Mon, 25 Nov 2013 00:58:13 +0000 (10:58 +1000)]
socket-proxyd: Fix man page because --listener takes an argument.

10 years agosocket-proxyd: Add --listener option for listener/destination pairs.
David Strauss [Mon, 25 Nov 2013 00:44:48 +0000 (10:44 +1000)]
socket-proxyd: Add --listener option for listener/destination pairs.

10 years agocore: set finish_timestamp only after all jobs have finished
Kay Sievers [Sun, 24 Nov 2013 18:18:36 +0000 (19:18 +0100)]
core: set finish_timestamp only after all jobs have finished

10 years agonetworkd: fix build
Tom Gundersen [Sat, 23 Nov 2013 01:47:12 +0000 (02:47 +0100)]
networkd: fix build

Forgot to 'git add'...

10 years agonetworkd: use Type=notify
Tom Gundersen [Sat, 23 Nov 2013 01:07:08 +0000 (02:07 +0100)]
networkd: use Type=notify

Also start earlier during boot.

10 years agoUpdate TODO
David Strauss [Fri, 22 Nov 2013 21:55:37 +0000 (07:55 +1000)]
Update TODO

10 years agobus: protected dual timestamp property macro for misusage
Lennart Poettering [Fri, 22 Nov 2013 19:19:54 +0000 (20:19 +0100)]
bus: protected dual timestamp property macro for misusage

10 years agocore: don't warn loudly if we cannot send a bus signal to a disconnected client
Lennart Poettering [Fri, 22 Nov 2013 19:19:27 +0000 (20:19 +0100)]
core: don't warn loudly if we cannot send a bus signal to a disconnected client

10 years agosystemctl: indicate in list-dependencies whether a unit is already running
Lennart Poettering [Fri, 22 Nov 2013 18:18:52 +0000 (19:18 +0100)]
systemctl: indicate in list-dependencies whether a unit is already running

10 years agoservice: honour that for services RestartSec=0 means immediate restarts but TimeoutSe...
Lennart Poettering [Fri, 22 Nov 2013 18:17:52 +0000 (19:17 +0100)]
service: honour that for services RestartSec=0 means immediate restarts but TimeoutSec= means no timing out at all

10 years agojob: fix serialization
Lennart Poettering [Fri, 22 Nov 2013 18:14:11 +0000 (19:14 +0100)]
job: fix serialization

10 years agocgroups: Fix test service inclusion in Makefile
David Strauss [Fri, 22 Nov 2013 16:36:14 +0000 (02:36 +1000)]
cgroups: Fix test service inclusion in Makefile

10 years agobus: when closing a bus, drop all refs to queued messages, so that the bus can be...
Lennart Poettering [Fri, 22 Nov 2013 14:35:23 +0000 (15:35 +0100)]
bus: when closing a bus, drop all refs to queued messages, so that the bus can be freed

10 years agoman: simplify socket-proxyd examples
Lennart Poettering [Fri, 22 Nov 2013 13:31:31 +0000 (14:31 +0100)]
man: simplify socket-proxyd examples

10 years agobuild-sys: move more files from core/ to share/ that are generic enough
Lennart Poettering [Fri, 22 Nov 2013 13:30:52 +0000 (14:30 +0100)]
build-sys: move more files from core/ to share/ that are generic enough

10 years agotest: test-sched-prio - skip if XDG_RUNTIME_DIR is not set
Kay Sievers [Fri, 22 Nov 2013 14:58:39 +0000 (15:58 +0100)]
test: test-sched-prio - skip if XDG_RUNTIME_DIR is not set

=================================
No control group support available, not creating root group.

Failed to determine XDG_RUNTIME_DIR

Assertion 'r >= 0' failed at src/test/test-sched-prio.c:42, function main(). Aborting.
=================================

10 years agomacro: fix problem with __LINE__ macro expansion
Lukasz Skalski [Fri, 22 Nov 2013 13:44:45 +0000 (14:44 +0100)]
macro: fix problem with __LINE__ macro expansion

David:
I already applied a fix for that, but this patch definitely looks nicer. I
changed CONCATENATE_HELPER() -> XCONCATENATE() similar to XSTRINGIFY and
added the UNIQUE() helper.

10 years agocore: fix timestamp assignment
Kay Sievers [Fri, 22 Nov 2013 12:54:50 +0000 (13:54 +0100)]
core: fix timestamp assignment

10 years agomacro: fix assert_cc() fallback
David Herrmann [Fri, 22 Nov 2013 08:19:00 +0000 (09:19 +0100)]
macro: fix assert_cc() fallback

We need two-level macro-expansion, otherwise __LINE__ will not get
evaluated.

10 years agohwdb: Update database of Bluetooth company identifiers
Marcel Holtmann [Sat, 21 Sep 2013 18:45:05 +0000 (11:45 -0700)]
hwdb: Update database of Bluetooth company identifiers

10 years agobus: rework sd_bus_error APIs
Lennart Poettering [Fri, 22 Nov 2013 03:01:46 +0000 (04:01 +0100)]
bus: rework sd_bus_error APIs

All calls that set a sd_bus_error structure will now return the same
error converted to a negative errno. This may be used as syntactic sugar
to return from a function and setting a bus_error structure in one go.

Also, translate all Linux Exyz (EIO, EINVAL, EUCLEAN, EPIPE, ...)
automatically into counterparts in the (new) "Posix.Error." namespace.

If we fail to allocate memory for the components of a sd_bus_error
automatically reset it to an OOM error which we always can write.

10 years agocgroups: Cache controller masks and optimize queues.
David Strauss [Mon, 11 Nov 2013 09:03:31 +0000 (19:03 +1000)]
cgroups: Cache controller masks and optimize queues.

10 years agobus: deal with duplicate values from enumerators
Lennart Poettering [Fri, 22 Nov 2013 00:51:19 +0000 (01:51 +0100)]
bus: deal with duplicate values from enumerators

10 years agoevent: rename sd_event_get() to sd_event_source_get_event()
Lennart Poettering [Fri, 22 Nov 2013 00:28:45 +0000 (01:28 +0100)]
event: rename sd_event_get() to sd_event_source_get_event()

10 years agobus: add calls to query attached objects
Lennart Poettering [Fri, 22 Nov 2013 00:21:59 +0000 (01:21 +0100)]
bus: add calls to query attached objects

10 years agobus: also add error parameter to object find and enumerator callbacks
Lennart Poettering [Fri, 22 Nov 2013 00:14:57 +0000 (01:14 +0100)]
bus: also add error parameter to object find and enumerator callbacks

Just in order to bring things inline with the method and property
callbacks.

10 years agobus: restore selinux access control to PID 1 for properties
Lennart Poettering [Thu, 21 Nov 2013 22:36:51 +0000 (23:36 +0100)]
bus: restore selinux access control to PID 1 for properties

10 years agotimer: make timer accuracy configurable
Lennart Poettering [Thu, 21 Nov 2013 21:07:51 +0000 (22:07 +0100)]
timer: make timer accuracy configurable

And make it default to 1min

10 years agobuild-sys: enable gcc Link Time Optimization when optimization is enabled
Kay Sievers [Thu, 21 Nov 2013 20:56:18 +0000 (21:56 +0100)]
build-sys: enable gcc Link Time Optimization when optimization is enabled

10 years agocore: actually make SwitchRoot() bus call do the deed
Lennart Poettering [Thu, 21 Nov 2013 20:36:04 +0000 (21:36 +0100)]
core: actually make SwitchRoot() bus call do the deed

10 years agocore: fix serilization of ListJobs() response
Lennart Poettering [Thu, 21 Nov 2013 20:32:23 +0000 (21:32 +0100)]
core: fix serilization of ListJobs() response

10 years agocore: fix serialization of client tracker
Lennart Poettering [Thu, 21 Nov 2013 20:17:34 +0000 (21:17 +0100)]
core: fix serialization of client tracker