1
0
mirror of https://github.com/systemd/systemd.git synced 2025-03-01 08:58:29 +03:00

13882 Commits

Author SHA1 Message Date
Zbigniew Jędrzejewski-Szmek
39032b8777 network: use GNU-ism to simplify macros
Thanks David!
2014-01-11 10:07:22 -05:00
Zbigniew Jędrzejewski-Szmek
ea18a4b57e journalctl: allow globbing in --unit and --user-unit
This is a continuation of e3e0314b systemctl: allow globbing in commands
which take multiple unit names.

Multiple patterns can be specified, as separate arguments, or as one argument
with patterns seperated by commas.

If patterns are given, at least one unit must be matched (by any of the patterns).
This is different behaviour than systemctl, but here it is necessary because
otherwise anything would be matched, which is unlikely to be the intended
behaviour.

https://bugs.freedesktop.org/show_bug.cgi?id=59336
2014-01-11 10:07:22 -05:00
Zbigniew Jędrzejewski-Szmek
ae97089d49 journal: fix access to munmapped memory in sd_journal_enumerate_unique
sd_j_e_u needs to keep a reference to an object while comparing it
with possibly duplicate objects in other files. Because the size of
mmap cache is limited, with enough files and object to compare to,
at some point the object being compared would be munmapped, resulting
in a segmentation fault.

Fix this issue by turning keep_always into a reference count that can
be increased and decreased. Other callers which set keep_always=true
are unmodified: their references are never released but are ignored
when the whole file is closed, which happens at some point. keep_always
is increased in sd_j_e_u and later on released.
2014-01-11 10:07:22 -05:00
Tom Gundersen
47917e4a4a sd-dns: simplify headers
As noted by Lennart: HAVE_CONFIG_H is done implicitly and sys/prctl.h is
mandatory.
2014-01-11 15:03:25 +00:00
Tom Gundersen
edc6f2f56c sd-dns: update/add license texts 2014-01-11 15:03:25 +00:00
Tom Gundersen
1783d89719 sd-dns: cleanup public header
Don't include internal headers
Update license text
Use _SD_BEGIN/END_DECLARATIONS
2014-01-11 15:03:25 +00:00
Daniel Buch
e963e3ada1 sd-dns: initial commit
Origin: <http://0pointer.de/lennart/projects/libasyncns/>

[tomegun: renamed some more files asyncns -> sd-dns and moved to libsystemd-bus as
requested by Lennart]
2014-01-11 15:03:25 +00:00
Hendrik Brueckner
e0d4a0ac06 udev/net_id: Introduce predictable network names for Linux on System z
Use the bus-ID to create predicatable devices names for network interfaces
on Linux on System z instances.  The bus-ID identifies a device in the s390
channel subsystem.

Network interfaces of device type Ethernet are named as:
    enccw0.0.1234    (13 characters)
up to
    enccwff.7.ffff   (14 characters)

CTC network devices of device type SLIP, use a different prefix as follows:
    slccw0.0.1234    (13 characters)

See also Red Hat Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=870859
[tomegun: typical problem of netdevs switching names between reboots.]
2014-01-11 15:03:25 +00:00
Unai Uribarri
2a61aaac66 hwdb: Add support for Toshiba Satellite P75-A7200 keyboard 2014-01-11 09:21:22 -05:00
Kay Sievers
5eecd85f15 Revert "bus: export bus address also when compiled without kdbus"
This reverts commit 9130f2128b64de19a3b7d6db7e0d371adfd296c2.

It's too early to do that. For now we should only "break" the
--enable-kdbus case, not the normal one.
2014-01-11 06:22:19 +08:00
Zbigniew Jędrzejewski-Szmek
3860bb6dbf man: clarify sd_bus_e_get_errno with NULL arg 2014-01-10 09:10:27 -05:00
Lennart Poettering
bc6a623248 bus: convert a bus error with NULL name into an errno of 0 in sd_bus_error_get_errno() 2014-01-10 13:35:51 +08:00
Zbigniew Jędrzejewski-Szmek
c5b37953b7 man: mention which variables will be expanded in ExecStart 2014-01-09 22:23:42 -05:00
Zbigniew Jędrzejewski-Szmek
a2cc4a6c96 core: fix lack of notifications after reload 2014-01-09 20:50:49 -05:00
Lukas Nykryn
f58ceb21e9 tmpfiles: don't allow label_fix to print ENOENT when we want to ignore it 2014-01-09 18:00:50 +01:00
Lukas Nykryn
277f2f75f6 delta: ensure that d_type will be set on every fs 2014-01-09 16:43:00 +01:00
Zbigniew Jędrzejewski-Szmek
58742b06bd build-sys: fix distcheck 2014-01-08 22:34:59 -05:00
Zbigniew Jędrzejewski-Szmek
628706137e networkd: print the received DHCPv4 address and gateway
It seems that networkd stores in_addr.s_addr contents in reverse
order (little-endian, not network order). This is a bit confusing,
but sd_rtnl evidently likes this order.
2014-01-08 22:15:27 -05:00
Zbigniew Jędrzejewski-Szmek
3333d748fa networkd: use structured logging for links and bridges 2014-01-08 22:15:27 -05:00
Zbigniew Jędrzejewski-Szmek
2ad8416dd0 No need to canonicalize fixed paths 2014-01-08 22:15:27 -05:00
Zbigniew Jędrzejewski-Szmek
d8160f21fd Improve messages about user mode a bit 2014-01-08 22:15:27 -05:00
Lennart Poettering
354bfd2b16 nspawn: do not invoke RegisterMachine on machined from inside the new PID namespace
On kdbus user credentials are not translated across PID namespaces, but
simply invalidated if sender and receiver namespaces don't match. This
makes it impossible to properly authenticate requests from different PID
namespaces (which is probably a good thing). Hence, register the machine
in the parent and not the client and properly synchronize this.
2014-01-09 08:46:23 +08:00
Lennart Poettering
5b590f9764 bus: make the bus driver support the driver interface under both / and /org/freedesktop/DBus
Some clients apparently use the "/" path instead of
"/org/freedesktop/DBus". dbus-daemon didn't care, so we need to support
both.
2014-01-09 08:19:22 +08:00
Lennart Poettering
dd9b67aa3e logind: wait for the user service to finish startup before completing login attempt 2014-01-09 06:51:09 +08:00
Lennart Poettering
f37925e02f driverd: fix use-after-free error when maintaining match lists 2014-01-08 23:08:35 +08:00
Kay Sievers
950f87b7e5 Revert "bus-driverd: do not track identical matches"
This reverts commit 234e28aa1cd37dee597c719ac5ca004c6215d28c.
2014-01-08 23:07:28 +08:00
Mantas Mikulėnas
9130f2128b bus: export bus address also when compiled without kdbus
It was removed from user@.service, so it should be added here.
2014-01-08 21:46:38 +08:00
Mantas Mikulėnas
06150d9039 bus: use existing macros from def.h 2014-01-08 21:41:53 +08:00
Kay Sievers
234e28aa1c bus-driverd: do not track identical matches
Identical matches are only one time in the hash map but multiple
times in the list; when removing, the hash will be empty but the
list still has entries.

Not adding dupicates to the list should keep us in sync and prevent
hitting the assert.
2014-01-08 21:38:20 +08:00
Kay Sievers
743e7e5242 bus-driverd: properly reply to UpdateActivationEnvironment call 2014-01-08 18:20:02 +08:00
Kay Sievers
2b197ae21c dbus1-generator: install user version 2014-01-08 18:11:37 +08:00
Kay Sievers
8b255ecd99 pam_systemd: export DBUS_SESSION_BUS_ADDRESS 2014-01-08 18:11:37 +08:00
Lennart Poettering
bc6422cbd1 bus: allow omitting quotes for values in match strings
dbus-daemon allows this, the dbus specification doesn't explicitly say
anything about it, so let's follow dbus-daemon on this.
2014-01-08 18:11:10 +08:00
Lennart Poettering
e79e8afd62 update TODO 2014-01-08 18:11:10 +08:00
Kay Sievers
dd965d7a58 bus-driverd: implement UpdateActivationEnvironment method 2014-01-08 17:43:26 +08:00
Zbigniew Jędrzejewski-Szmek
d30ec1f5df man: document label escaping functions 2014-01-07 23:05:30 -05:00
Zbigniew Jędrzejewski-Szmek
5485de1edb man: fix bogus description of sd_bus_creds_has_*_cap 2014-01-07 22:28:04 -05:00
Zbigniew Jędrzejewski-Szmek
737dedebb8 dbus1-generator: fix copy-pasto 2014-01-07 22:19:01 -05:00
Michele Curti
096924092b sleep.c: fix typo 2014-01-07 21:54:28 -05:00
Zbigniew Jędrzejewski-Szmek
71365a7754 man: document sd-bus error functions 2014-01-07 21:51:47 -05:00
Kay Sievers
54142c6af1 bus-driverd: support user mode 2014-01-08 08:38:39 +08:00
Kay Sievers
7ca7b61f70 bus-proxyd: support --user bus address 2014-01-08 08:38:39 +08:00
Martin Pitt
c79af123de keymap: Recognize different Toshiba Satellite capitalizations
https://launchpad.net/bugs/665918
2014-01-07 09:40:01 +01:00
AppleBloom
f92164e45a hwdb: fix match for Thinkpad X201 tablet
https://bugs.freedesktop.org/show_bug.cgi?id=71929
2014-01-06 20:52:42 -05:00
Dmitry Pisklov
245dc22920 hwdb: remove duplicate entry for Samsung 700Z
keyboardbrightnessup/down are not even real keys.

https://bugs.freedesktop.org/show_bug.cgi?id=72311
2014-01-06 20:08:41 -05:00
Dmitry Pisklov
dcafc342bf hwdb: add Samsung 700G
https://bugs.freedesktop.org/show_bug.cgi?id=72311
2014-01-06 20:08:41 -05:00
Raudi
dfa2ea215d hwdb: change key mappings for Samsung 90X3A
The Key codes didn't match with the described key. Also the key
identifier strings were missing. I hope I chose appropriate ones.

https://bugs.freedesktop.org/show_bug.cgi?id=70296
2014-01-06 19:49:31 -05:00
Lennart Poettering
057d9ab8f0 mount: don't creat local-fs.target links for mount units when runnin in user mode 2014-01-07 07:25:05 +08:00
Kay Sievers
ac12cf5b7f dbus1-generator: always pull proxy socket into sockets.target
dbus.socket does that for --system, we need to explicitly pull it
in for --user.
2014-01-07 07:09:08 +08:00
Kay Sievers
ca76186598 core: do not add implicit dbus.socket dependency
Sockets are ordered before sockets.target anyway, and sockets.target
is ordered before basic.target, and hence all bus services end up
being ordered after dbus.socket anyway. Since for kdbus clients
dbus.socket is obsolete, let's not add this dependency explicitly.

Also, it's hot in Australia and we are going for breakfast now.
2014-01-07 06:45:29 +08:00