1
0
mirror of https://github.com/systemd/systemd.git synced 2024-10-28 03:25:31 +03:00
Commit Graph

14285 Commits

Author SHA1 Message Date
Lennart Poettering
8e420494bc NEWS: even more fixes 2014-02-18 13:38:31 +01:00
Tom Gundersen
4fb7242cbb sd-rtnl-message: store reference to the bus in the message
This mimics the sd-bus api, as we may need it in the future.
2014-02-18 11:21:22 +01:00
Daniel Buch
c0c5af00be NEWS: sd-resolv.h is sd-resolve.h 2014-02-18 08:23:24 +01:00
Jan Engelhardt
4670e9d5f2 doc: fix newly-arisen inconsistencies in NEWS 2014-02-17 23:51:55 -05:00
Zbigniew Jędrzejewski-Szmek
06beed6dc6 Remove unused variable and two function stubs 2014-02-17 22:35:35 -05:00
Zbigniew Jędrzejewski-Szmek
1e190502e7 NEWS: fix a few typos and inconsistencies
- systemd-delta had support for .d for a long time.
- systemd-activate had --environment before --setenv.
2014-02-17 22:09:04 -05:00
Kay Sievers
ad42cf7308 NEWS: more "scary" kdbus incompatibility warning 2014-02-18 03:21:31 +01:00
Jan Engelhardt
4c2413bffa doc: general refresh of orthography and grammar 2014-02-18 03:18:21 +01:00
Kay Sievers
b97610038a NEWS: fix typos 2014-02-18 03:08:07 +01:00
Jan Engelhardt
38bf2b26bd doc: orthographic corrections 2014-02-18 03:05:19 +01:00
Lennart Poettering
270f162402 NEWS fix 2014-02-18 03:03:04 +01:00
Lennart Poettering
e49b5aada0 prepare NEWS 2014-02-18 02:51:47 +01:00
Lennart Poettering
9f5650aecb util: generalize code that checks whether PIDs are alive or unwaited for 2014-02-18 02:51:47 +01:00
Jan Engelhardt
ed7e5fe37d doc: utilize the DocBook markup for some literals 2014-02-17 19:03:07 -05:00
Jan Engelhardt
deb480d1a7 doc: reword "shared per-thread" wording
Either it is shared across threads, or it is per-thread: decide.

Reading the source code, I see a thread_local identifier, so that's
that. But that does not yet preclude that a program may pass around
the pointer returned from the function among its own threads.

Do a best effort at saying so.
2014-02-17 19:03:07 -05:00
Jan Engelhardt
8dc385e770 doc: balance C indirections in function prototypes
Shift the asterisks in the documentation's prototypes such that they
are consistent among each other. Use the right side to match source code.
2014-02-17 19:03:07 -05:00
Jan Engelhardt
3c8fa0fd0f doc: properly use XML entities 2014-02-17 19:03:07 -05:00
Jan Engelhardt
dc968941bf doc: choose different words to improve clarity
I suggest the following changes to improve the way the text reads
("flows").
2014-02-17 19:03:07 -05:00
Jan Engelhardt
66f756d437 doc: resolve missing/extraneous words or inappropriate forms
Issues fixed:
* missing words required by grammar
* duplicated or extraneous words
* inappropriate forms (e.g. singular/plural), and declinations
* orthographic misspellings
2014-02-17 19:03:07 -05:00
Jan Engelhardt
73e231abde doc: update punctuation
Resolve spotted issues related to missing or extraneous commas, dashes.
2014-02-17 19:03:07 -05:00
Jan Engelhardt
48b5804a48 doc: detail what "UID" is 2014-02-17 19:03:07 -05:00
Jan Engelhardt
fc9acf252f doc: quote consistently in autoconf code
AS_HELP_STRING has been observed to expand such that the surround
function complains; play it safe and consistenly quote the example
code throughout.
2014-02-17 19:03:07 -05:00
Jan Engelhardt
a87f0f726c core: more exact test on the procfs special string "(deleted)"
In other parts of systemd, the code checks for " (deleted)",
but in one instance, it did not (yet). Make it do the same.
2014-02-17 19:03:07 -05:00
Ansgar Burchardt
c305c32580 man: fix a typo 2014-02-17 23:59:35 +01:00
Umut Tezduyar Lindskog
17256461f5 networkd: act on lease only if there is one
Interface could go down before acquiring a dhcp lease
2014-02-17 23:30:08 +01:00
Jasper St. Pierre
acfbbf5c56 Fix gperf syntax
If we put a closing bracket on its own line, gperf will complain about
empty lines. Only occurs if the option in question is disabled. So fix the
m4 macros to work properly in both cases.
2014-02-17 22:07:02 +01:00
Lennart Poettering
6a6751fe24 core: warn when unit files with unsupported options are parsed 2014-02-17 17:49:09 +01:00
Lennart Poettering
5f8640fb62 core: store and expose SELinuxContext field normalized as bool + string 2014-02-17 16:52:52 +01:00
Lennart Poettering
4a3fa6ac77 Revert "man: systemd.service(5): clarify behavior of SuccessExitStatus"
This reverts commit 29e254f7f0.

Conflicts:
	man/systemd.service.xml
2014-02-17 16:37:30 +01:00
Lennart Poettering
15bd5aee09 main: make gcc shut up 2014-02-17 16:18:17 +01:00
Lennart Poettering
b6e2f3293d core: fixate show_status earlier, so that we actually print the welcome message
Previously, we'd fixed show_state only after printing the welcome
message which had the effect that the welcome message was almost always
suppressed.
2014-02-17 16:17:08 +01:00
Lennart Poettering
3d0ce78b25 Update TODO 2014-02-17 15:52:32 +01:00
Lennart Poettering
03b90d4bad core: find the closest parent slice that has a specfic cgroup controller enabled when enabling/disabling cgroup controllers for units 2014-02-17 15:49:21 +01:00
Lennart Poettering
6d2357247b core: fix property changes in transient units 2014-02-17 15:49:21 +01:00
Lennart Poettering
e954c9cfa6 unit: slice dependencies should not be subject to DefaultDependencies 2014-02-17 15:49:21 +01:00
Lennart Poettering
8a8bf3c045 main: don't set no_new_privs when using SystemCallArchitectures= system-wide
After all, we want to allow userspace to get new privs...
2014-02-17 15:49:21 +01:00
Lennart Poettering
37c47eb709 nspawn: netns_fd can be removed now 2014-02-17 15:49:21 +01:00
Lennart Poettering
bc432dc7eb core: rework cgroup mask propagation
Previously a cgroup setting down tree would result in cgroup membership
additions being propagated up the tree and to the siblings, however a
unit could never lose cgroup memberships again. With this change we'll
make sure that both cgroup additions and removals propagate properly.
2014-02-17 15:49:21 +01:00
Zbigniew Jędrzejewski-Szmek
b1e90ec515 Pass log config from systemd to systemd-shutdown
If PID 1 debug logging is enabled, it is nice to keep those settings
when switching to systemd-shutdown binary, independently of whether
this was done through /proc/cmdline options, or through runtime
manipulations.
2014-02-17 02:26:22 -05:00
Zbigniew Jędrzejewski-Szmek
fb4729006a Some modernizations 2014-02-17 02:26:22 -05:00
Zbigniew Jędrzejewski-Szmek
141a79f491 Extract looping over /proc/cmdline into a shared function
In cryptsetup-generator automatic cleanup had to be replaced
with manual cleanup, and the code gets a bit longer. But existing
code had the issue that it returned negative values from main(),
which was wrong, so should be reworked anyway.
2014-02-17 02:26:22 -05:00
Djalal Harouni
8fe63cd4f1 logind: close race on session state during logins
At login there is a small race window where session_get_state() will
return SESSION_ACTIVE instead of SESSION_OPENING. This must be fixed
since during that time there are calls to session_save() to save
session states and we want to write the correct state.

When we queue the start scope and service jobs, we wait for both of them
to finish before calling and continue processing in:
"session_jobs_reply() => session_send_create_reply()"
to create the session fifo and notify clients.

However, in the match_job_removed() D-Bus signal, we may hit situations
where the scope job has successfully finished and we are still waiting
for the user service job to finish. During that time the
"session->scope_job" will be freed and set to NULL, this makes
session_get_state() return SESSION_ACTIVE before it is really active, it
should return SESSION_OPENING since we are still waiting for the service
job to finish in order to create the session fifo.

To fix this, we also check if the session fifo fd was created, if so then
the session has entered the SESSION_ACTIVE state, if not then it is still
in the SESSION_OPENING state and it is waiting for the scope and service
jobs to finish.
2014-02-17 02:26:22 -05:00
Tom Gundersen
9fadd4cabf sd-dhcp: silently ignore malformed packets
This fixes a regression introduced in e5002702.
2014-02-16 23:28:19 +01:00
Tom Gundersen
489e4fbb8c sd-rtnl: do not require ifindex to be set for SETLINK messages
The kernel will then look up the ifindex itself based on the name.
This should be used very carefully as it is racey.

[This was a left-over hunk from my previous nspawn patch.]
2014-02-16 23:17:19 +01:00
Thomas Hindoe Paaboel Andersen
6cd6fdb228 TODO: remove done item
strv_append was removed in e3e45d4f82
2014-02-16 22:58:24 +01:00
Thomas Hindoe Paaboel Andersen
32457153f4 nspawn: typo fix in help 2014-02-16 22:15:24 +01:00
Tom Gundersen
ab046dde6f nspawn: add new --network-bridge= switch
This adds the host side of the veth link to the given bridge.

Also refactor the creation of the veth interfaces a bit to set it up
from the host rather than the container. This simplifies the addition
to the bridge, but otherwise the behavior is unchanged.
2014-02-16 21:40:28 +01:00
Djalal Harouni
1733a00f62 Add white space between _XZ_FEATURE_ and _SECCOMP_FEATURE_ 2014-02-16 11:44:16 -05:00
Simon Peeters
a3e648ccbb bus: fix match_parse for unquoted matches 2014-02-16 11:24:15 -05:00
Yuxuan Shui
e3025da104 core: check for return value from get_process_state
Fix for commit e10c9985bb.
2014-02-16 11:09:51 -05:00