1
0
mirror of https://github.com/systemd/systemd.git synced 2024-10-27 18:55:40 +03:00
Commit Graph

1267 Commits

Author SHA1 Message Date
Zbigniew Jędrzejewski-Szmek
bd441fa27a build-sys: make multi-seat-x optional
At some point it should become disabled by default.

http://lists.freedesktop.org/archives/systemd-devel/2013-November/014869.html
2013-11-28 14:37:11 -05:00
Lennart Poettering
5b12334d35 bus: add new sd_bus_creds object to encapsulate process credentials
This way we can unify handling of credentials that are attached to
messages, or can be queried for bus name owners or connection peers.

This also adds the ability to extend incomplete credential information
with data from /proc,

Also, provide a convenience call that will automatically determine the
most appropriate credential object for an incoming message, by using the
the attached information if possible, the sending name information if
available and otherwise the peer's credentials.
2013-11-28 18:42:18 +01:00
Sergey Ptashnick
247913054e catalog,po: add Russian translation 2013-11-28 03:43:07 -05:00
Lennart Poettering
d0767ffd08 journal: add a test case for flushing messages out of a series of journal files into a single new one 2013-11-27 01:01:53 +01:00
Tom Gundersen
02b59d57e0 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.
2013-11-26 01:32:25 +01:00
Tom Gundersen
a553fd32d1 networkd: fix build
Forgot to 'git add'...
2013-11-23 02:47:12 +01:00
David Strauss
21acf11d40 cgroups: Fix test service inclusion in Makefile 2013-11-23 02:49:05 +10:00
Lennart Poettering
baabc57764 build-sys: move more files from core/ to share/ that are generic enough 2013-11-22 16:31:40 +01:00
Lennart Poettering
780896a4f1 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.
2013-11-22 04:23:22 +01:00
David Strauss
6414b7c981 cgroups: Cache controller masks and optimize queues. 2013-11-22 11:22:47 +10:00
Lennart Poettering
718db96199 core: convert PID 1 to libsystemd-bus
This patch converts PID 1 to libsystemd-bus and thus drops the
dependency on libdbus. The only remaining code using libdbus is a test
case that validates our bus marshalling against libdbus' marshalling,
and this dependency can be turned off.

This patch also adds a couple of things to libsystem-bus, that are
necessary to make the port work:

- Synthesizing of "Disconnected" messages when bus connections are
  severed.

- Support for attaching multiple vtables for the same interface on the
  same path.

This patch also fixes the SetDefaultTarget() and GetDefaultTarget() bus
calls which used an inappropriate signature.

As a side effect we will now generate PropertiesChanged messages which
carry property contents, rather than just invalidation information.
2013-11-20 20:52:36 +01:00
Sylvain Plantefeve
0571a6b0a9 catalog: add French translation 2013-11-17 11:56:19 -05:00
Zbigniew Jędrzejewski-Szmek
952d97ed2b random-seed: improve debugging messages a bit 2013-11-15 22:53:14 -05:00
Dave Reisner
4e1b76c214 build: use printf to generate symbol tests
echo is basically unportable, so use printf instead.
2013-11-15 22:44:02 -05:00
Tom Gundersen
b5643a8b1b build-sys: don't mix dynamic and static libs 2013-11-15 14:00:24 +01:00
Tom Gundersen
b4f2a5b197 rtnl: add event loop integration 2013-11-14 23:22:58 +01:00
Tom Gundersen
81eca919f7 loopback-setup: move to rtnl
This should be equivalent to the old behavior.
2013-11-14 15:11:15 +01:00
Marko Myllynen
51d0f1c9f6 zsh-completion: add bootctl 2013-11-13 23:02:23 -05:00
Kay Sievers
64a9e4d763 libsystemd-id128: statically include sd_listen_fds() 2013-11-13 02:47:25 +01:00
Zbigniew Jędrzejewski-Szmek
9173a3082f build-sys: parallelize 'exported' target 2013-11-12 19:02:28 -05:00
Zbigniew Jędrzejewski-Szmek
dc579853d4 build-sys: make public libraries depend on .sym files
This way modyfing the .sym file causes a rebuild.
2013-11-12 19:00:23 -05:00
Zbigniew Jędrzejewski-Szmek
f1e0c18340 build-sys: add a link test for exported symbols
I know that this is a pretty big net to catch some small fish,
but we *do* regularly forget to properly export symbols that
were supposed to be exported.

This time sd_bus_get_current and some renamed symbols are caught.
2013-11-12 18:58:34 -05:00
Colin Walters
3c9317d2d9 build-sys: Add --disable-networkd option
For GNOME (Continuous), we are unlikely to require or want
systemd-networkd in the near term future; all of the tools and code
are targeting NetworkManager.

The long term story is still an open question of course, but for now,
there's no reason for gnome-continuous to build or ship this.
2013-11-12 22:38:08 +01:00
Lennart Poettering
2b5c5383e4 bus: beautify bus_message_dump() output a bit 2013-11-12 00:12:44 +01:00
Lennart Poettering
d23284faa9 build-sys: subtract list of exported symbols from "check-api-unused" list 2013-11-10 23:54:55 +01:00
Zbigniew Jędrzejewski-Szmek
39da205fbb build-sys: simplify defined/undefined definition 2013-11-09 19:02:53 -05:00
Tom Gundersen
f579559b3a networkd: add a basic network daemon
This daemon listens for and configures network devices tagged with
'systemd-networkd'. By default, no devices are tagged so this daemon
can safely run in parallel with existing network daemons/scripts.

Networks are configured in /etc/systemd/network/*.network. The first .network
file that matches a given link is applied. The matching logic is similar to
the one for .link files, but additionally supports matching on interface name.

The mid-term aim is to provide an alternative to ad-hoc scripts currently used
in initrd's and for wired setups that don't change much (e.g., as seen on
servers/and some embedded systems).

Currently, static addresses and a gateway can be configured.

Example .network file:

[Match]
Name=wlp2s0

[Network]
Description=My Network
Gateway=192.168.1.1
Address=192.168.1.23/24
Address=fe80::9aee:94ff:fe3f:c618/64
2013-11-09 23:41:17 +01:00
Lennart Poettering
f842cd74ea build-sys: fix rule for generating undefined list 2013-11-08 18:12:45 +01:00
Lennart Poettering
9070a9c103 build-sys: add make check-api-unused 2013-11-08 16:53:29 +01:00
Lennart Poettering
862e8bf8c6 build-sys: install busctl 2013-11-08 16:53:28 +01:00
Marc-Antoine Perennou
f459b6025f systemctl: port to libsystemd-bus 2013-11-08 14:07:27 +01:00
Simon Peeters
f8f14b3654 loginctl: convert to sd-bus
NOTE: the show-* subcommands do not print some properties:
  this are those with types like (so), a(so), (uo),...
  we need to fix this, but I'm not sure how
2013-11-07 21:01:48 +01:00
Lennart Poettering
fa57130d35 man: add docs for sd_is_special() and some man page symlinks 2013-11-07 17:51:09 +01:00
Lennart Poettering
a27e222b58 build-sys: add a make target to look for undocumented symbols
With super-pretty output!
2013-11-07 17:26:01 +01:00
Lennart Poettering
aac6ad0d2f build-sys: don't install sd-shutdown.h, it is a drop-in header like sd-readahead.h 2013-11-07 16:53:25 +01:00
Kay Sievers
48d7417d3e build-sys: link most internal libraries statically
Libraries and tools, both use shared symbols wich have global state
and should only exist once in the final image.
2013-11-07 14:59:16 +01:00
Lennart Poettering
c3b8df24a9 build-sys: add .pc file for libsystemd-bus 2013-11-07 03:27:58 +01:00
Lennart Poettering
c8a8806e77 build-sys: merge sd-event into sd-bus
The sd-event APIs should be available only as part of libsystemd-bus so
that the utility calls are not linked into each independently and we can
minimize the number of libraries we have.
2013-11-07 03:20:40 +01:00
Lennart Poettering
faaa5728d9 utf8: export utf8 validation functions as part of sd-bus
To write useful bus code clients need to validate utf8 frequently since
the bus reacts allergic to it. Since glibc does not provide any calls
for this, let's provide it as part of libsystemd-bus.
2013-11-07 03:07:40 +01:00
Kay Sievers
7b14798286 build-sys: distribute libsystemd-*.sym 2013-11-07 01:43:33 +01:00
Kay Sievers
7c693da9df build-sys: remove no longer needed DBUS_CFLAGS 2013-11-07 01:33:07 +01:00
Kay Sievers
fdd6816f7d build-sys: add sd-event to socket-proxyd 2013-11-06 23:28:07 +01:00
Lennart Poettering
175a3d25d0 active: rework make_socket_fd() to be based on socket_address_listen()
Among other things this makes sure we set SO_REUSEADDR which is
immensely useful.
2013-11-06 23:03:12 +01:00
Zbigniew Jędrzejewski-Szmek
ffcfcb6b2c pam_systemd: port to libsystemd-bus 2013-11-06 14:56:47 -05:00
Zbigniew Jędrzejewski-Szmek
f7262a9f28 bus: add public libsystemd-event 2013-11-06 14:56:47 -05:00
Zbigniew Jędrzejewski-Szmek
d9f644e2cd bus: export libsystemd-bus as a public library
Old static libsystemd-bus.la becomes libsystemd-bus-internal.la.
memfd functions are also exported in the same library.

(Best viewed with --color-words -U0).
2013-11-06 14:56:47 -05:00
Kay Sievers
d91ed6423b build-sys: remove CFLAGS default assignment 2013-11-05 21:35:20 +01:00
Kay Sievers
997d4ae7f2 login: port test-inhibit to libsystemd-bus 2013-11-05 21:34:42 +01:00
Lennart Poettering
b8b7e4060f bus: delete some now used dbus1 code 2013-11-05 03:07:39 +01:00
Lennart Poettering
cc37738108 logind: port logind to libsystemd-bus 2013-11-05 01:13:05 +01:00