Commit graph

12525 commits

Author SHA1 Message Date
Lennart Poettering ae7bed3f2d bus: make sure we can match well-known names 2013-10-30 02:08:57 +01:00
Lennart Poettering 0fc6e1ed00 autogen: use -O0 for "autogen.sh c" after all
-Og actually breaks gdb still, so let's stick to -O0 for now, but
introduce "autogen.sh g" for those who don't need gdb.
2013-10-30 02:08:57 +01:00
Lennart Poettering d36679f72e bus: it is OK to have signals with multiple parameters 2013-10-30 02:08:57 +01:00
Lennart Poettering bd03703884 bus: don't fail if GetAll() is used to get properties of the built-in interfaces 2013-10-30 02:08:57 +01:00
Lennart Poettering 3fc047f43c bus: make bus message dump output a bit smaller 2013-10-30 02:08:57 +01:00
Lennart Poettering dd8243a3ba bus: don't include the introspected object in list of subobjects 2013-10-30 02:08:57 +01:00
Kay Sievers 0aa5b4d1f7 udev: do not allow to change the DEVPATH of a device 2013-10-30 01:58:26 +01:00
Tom Gundersen e0221a35c8 udev: link-config - reset ctx on exit 2013-10-29 23:36:18 +01:00
Tom Gundersen d8921c6d5c rtnl-util: add missing files 2013-10-29 21:52:22 +01:00
Tom Gundersen 16d26d559d udev-event: use rtnl to set ifname 2013-10-29 21:26:22 +01:00
Tom Gundersen 3aeb37bc4f rtnl: move set_link_properties to rtnl-utils 2013-10-29 21:26:22 +01:00
Tom Gundersen d4bbdb77af rtnl: fix sockaddr confusion 2013-10-29 21:26:22 +01:00
Lennart Poettering 897e7561a0 strv: introduce new STRV_MAKE and STRV_MAKE_EMPTY macros to create string arrays nicely on the fly 2013-10-29 20:09:16 +01:00
Lennart Poettering 80ba3b84dd bus: add extra validity checks 2013-10-29 19:55:37 +01:00
Lennart Poettering 250a918dc4 strv: introduce new strv_from_stdarg_alloca() macro to generate a string array from stdarg function parameters
This allows us to turn lists of strings passed in easily into string
arrays without having to allocate memory.
2013-10-29 19:53:43 +01:00
Lennart Poettering 7b1132f60d rc-local: use access(X_OK) to check if files are executable
... and other modernizations.
2013-10-29 19:34:59 +01:00
Lennart Poettering 88e262b667 timedate: handle more nicely if something or somebody keeps open /dev/rtc and thus blocks out everybody else
chrony is appears to keep the RTC open continuously these days which is
a bad idea, and /dev/rtc is a single-user device, which is a bad idea
too. Together both bad ideas mean that nobody else can access the RTC
anymore. That's something to fix, but in the meantime we should handle
this more gracefully.
2013-10-29 19:34:59 +01:00
Lennart Poettering 29f8d1f21a bus: add a macro to simplify reading of UUIDs 2013-10-29 19:34:59 +01:00
Lennart Poettering c430fee6ff bus: add new sd_bus_message_verify_type() and sd_bus_message_copy() API calls 2013-10-29 19:34:59 +01:00
Tom Gundersen 276fc0668f rtnl: cleanup socket_read_message 2013-10-29 17:57:21 +01:00
Tom Gundersen 977085794d udev: link-config - split connection to sockets from loading of configs
We want to load the config in _init, but not connect to the sockets before we are forked.
2013-10-29 17:57:21 +01:00
Tom Gundersen adf412b9ec rtnl: complain if used after fork 2013-10-29 17:56:09 +01:00
Tom Gundersen 98dd77e86e rtnl: introduce default timeout
We set it to 10 secs (as we are only communicating with the kernel,
it seems we should be able to bail out sooner than sd-bus, which
uses 25).

When passing timout 0, the default is used, use this in link-config.
2013-10-29 16:37:30 +01:00
Tom Gundersen f1ac700248 udev: link-config - use safe_atou instead of strtoul 2013-10-29 16:21:57 +01:00
Tom Gundersen 2a7e74e002 udev: link-config - use zero instead of memset 2013-10-29 16:12:12 +01:00
Tom Gundersen 55428d84f3 udev: link-config - use proper return values
Not sure if -ENOENT is the correct return value for when no persistent network
name is set, but couldn't think of anything better.
2013-10-29 16:12:12 +01:00
Tom Gundersen a12fa4204d udev: link-config - use new0 instead of calloc 2013-10-29 16:12:12 +01:00
Tom Gundersen dc7d8997aa rtnl: use malloc0 instead of calloc 2013-10-29 16:12:11 +01:00
Tom Gundersen fe5c4e493e rtnl: use _cleanup_ macro more 2013-10-29 16:12:11 +01:00
Tom Gundersen 5b9d4dc055 udev: link-config - use _cleanup_ macro locally 2013-10-29 16:12:11 +01:00
Tom Gundersen 97f2d76d4f path_check_timestamp: only keep the most recent timestamp
There is no point in keeping one timestamp for each directory, as we only
ever care about the most recent one.
2013-10-29 16:12:11 +01:00
Tom Gundersen dabfa9d1ef sd-rtnl: minor fixes 2013-10-29 16:12:11 +01:00
Tom Gundersen 5fde13d748 udev: link-config - add proper parsing 2013-10-29 14:17:57 +01:00
Tom Gundersen 916484f54d conf-parser: add macro for ENUMV
Parses a whitespace separated list of strings into a vector of enums.
2013-10-29 14:17:57 +01:00
Tom Gundersen 0b99c9f8f0 udev: builtin - rename net_link to net_setup_link
Also add shell completions.
2013-10-29 14:17:57 +01:00
Tom Gundersen 9dc670ea76 network: move configuration to /etc/systemd/network
This is private configuraiton, so let's not pollute the namespace (and hence make Debian happy :) ).
2013-10-29 14:17:57 +01:00
Zbigniew Jędrzejewski-Szmek f11880744c journalctl: add --list-boots to show boot IDs and times
Suggested by David Wilkins <dwilkins@maths.tcd.ie> in
https://bugzilla.redhat.com/show_bug.cgi?id=967521:

> [Specific boot ID is a] bit of a palaver to obtain.  I consulted the
> verbose dump of the journal to discover the _BOOT_ID for the
> timestamp, and then generated the journal dump for that boot using
> journalctl _BOOT_ID=foo -o short-monotonic.
2013-10-28 23:43:57 -04:00
Lennart Poettering c20fd707a2 update TODO 2013-10-28 21:11:51 +01:00
David Strauss a427c13d26 Update socket proxy name in TODO. Reformat to list. 2013-10-28 12:48:39 -07:00
Tom Gundersen 3716e8c99c udev: don't mix static and dynamic libs 2013-10-28 18:58:19 +01:00
Tom Gundersen 16b9b87aee udev: link-config - add mac address policy
This introduces a new key MACAddressPolicy.

The possible policies are 'persistent' and 'random'.

'persistent' will do nothing if the current address is the hardware address,
but if the hardware does not have an address (or another address is set for
whatever reason), we will generate an address which will be random, but
persistent between boots (based on machineid and persistent netif name).

'random' will do nothing if the kernel already set a random address, otherwise
it will generate a random one and use that instead.

This patch sets MACAddressPolicy=persistent in the default .link file.
2013-10-28 18:10:23 +01:00
Martin Pitt a7792fecc3 keymap: Fix stuck keys on Lenovo IdeaPad Z370
https://launchpad.net/bugs/1245189
2013-10-28 12:32:12 +01:00
Martin Pitt df7daa9a68 keymap: Reorder IdeaPad rules
So that they are together in the file.
2013-10-28 12:30:47 +01:00
Tom Gundersen daeb71a36a udev: link-config - move naming policy from udev rules
This introduces a new key NamePolicy, which takes an ordered list of naming
policies. The first successful one is applide. If all fail the value of Name
(if any) is used.

The possible policies are 'onboard', 'slot', 'path' and 'mac'.

This patch introduces a default link file, which replaces the equivalent udev
rule.
2013-10-28 01:18:04 +01:00
Tom Gundersen 2a73e0d39a udev: link-config - sanity check the ifname and mac address 2013-10-27 23:09:05 +01:00
Tom Gundersen eab97a4666 rtnl: relax the tests a bit
It is a bit too optimisitc that this stuff is the same on different hosts.
2013-10-27 22:45:14 +01:00
Tom Gundersen 43b3a5ef61 udev: link-config: add rtnl support
This adds support for setting the mac address, name and mtu.

Example:

[Link]
MTU=1450
MACAddress=98:76:54:32:10:ab
Name=wireless0
2013-10-27 22:23:58 +01:00
Tom Gundersen 65f568bbeb libsystemd-rtnl: add a rtnetlink library
This is intentionally as similar to sd-bus as possible. While it
would be simple to export it, the intentions is to keep this
internal (at least for the forseeable future).

Currently only synchronous communication is implemented
2013-10-27 22:18:34 +01:00
Daniel Buch 02f19706a9 test-strv.c: added STRV_FOREACH and STRV_FOREACH_BACKWARDS 2013-10-27 11:51:22 -04:00
Daniel Buch fb15be8395 path_lookup: moved _cleanup_lookup_paths_free_ from install.c to path-lookup.h 2013-10-27 11:51:22 -04:00