Commit Graph

22704 Commits

Author SHA1 Message Date
Michal Sekletar 63b20d5c0f update TODO 2015-10-09 12:21:34 +02:00
Daniel Mack 3a3f71e5f0 Merge pull request #1504 from evverx/systemd-run-new-properties
shell-completion: systemd-run: add new properties
2015-10-09 08:52:55 +02:00
Evgeny Vereshchagin f961371fb7 shell-completion: systemd-run: add new properties
See:
* 602b83559a
* b9c50073fc
2015-10-09 06:49:46 +03:00
Lennart Poettering 767e2d52d0 Merge pull request #1499 from evverx/system-conf-update
core: system.conf: add DefaultTasksAccounting
2015-10-08 19:57:36 +03:00
Evgeny Vereshchagin b3972d454d core: system.conf: add DefaultTasksAccounting 2015-10-08 17:48:45 +03:00
Daniel Mack ad86c1335a Merge pull request #1496 from poettering/stdin-fd
allow passing in fds for stdin/stdout/stderr for transient services
2015-10-08 16:09:09 +02:00
Tom Gundersen 8f3db94d9d Merge pull request #1497 from bengal/lldp-rename-struct
lldp: rename publicly visible structure
2015-10-08 15:57:23 +02:00
Beniamino Galvani adf88a70f0 lldp: rename publicly visible structure
Rename struct 'tlv_packet' to 'sd_lldp_packet' and struct
'tlv_section' to 'sd_lldp_section' since the former is referenced in
public header sd-lldp.h.

Signed-off-by: Beniamino Galvani <bgalvani@redhat.com>
2015-10-08 15:48:33 +02:00
Lennart Poettering 1af1f2f92e shell-completion: add pseudo machine ".host" to shell completion 2015-10-08 15:14:27 +02:00
Lennart Poettering 4d860b20a1 Merge pull request #1492 from evverx/manager-dbus-properties
core: manager: add some missing properties
2015-10-08 16:07:06 +03:00
Lennart Poettering 4478f292ce Merge pull request #1494 from reverendhomer/patch-1
networkd-link: remove unused variable assignment in link_save()
2015-10-08 16:05:27 +03:00
Lennart Poettering 024a8ec137 run: various modernizations and smaller fixes
Including a fix for properly freeing a calendarspec object after use.
2015-10-08 15:03:31 +02:00
Lennart Poettering 56f3cb335a shell-completion: add "machinectl shell" to bash completion logic 2015-10-08 15:03:31 +02:00
Lennart Poettering 1ba239315f util: minor modernization of vt_disallocate() 2015-10-08 15:03:31 +02:00
Lennart Poettering 3d18b16755 util: do not reset terminal in acquire_terminal()
Before, we'd always reset acquired terminals, which is not really
desired, as we expose a setting TTYReset= which is supposed to control
whether the TTY is reset or not. Previously that setting would only
enable a second resetting of the TTY, which is of course pointless...

Hence, move the implicit resetting out of acquire_terminal() and make
the callers do it if they need it.
2015-10-08 15:03:31 +02:00
Lennart Poettering 40e1f4ea74 machined: when opening a shell via machined, pass tty fds in
With this change we'll open the shell's tty right from machined and then
pass it to the transient unit we create. This way we make sure the pty
is opened exactly as long as the transient service is around, and no
longer, and vice versa. This way pty forwarders do not have to deal with
EIO problems due to vhangup, as the pty is open all the time from the
point we set things up to the point where the service goes away.
2015-10-08 15:03:31 +02:00
reverendhomer d4158938fc networkd-link: remove unused variable assignment in link_save()
fixes Coverity #1317207
2015-10-08 14:43:03 +03:00
Lennart Poettering a34ceba66f core: add support for setting stdin/stdout/stderr for transient services
When starting a transient service, allow setting stdin/stdout/stderr fds
for it, by passing them in via the bus.

This also simplifies some of the serialization code for units.
2015-10-08 12:55:15 +02:00
Lennart Poettering 66cb2fde7b basic: move two more terminal-related calls into terminal-util.[ch] 2015-10-08 12:49:59 +02:00
Lennart Poettering 041f793b6b update CODING_STYLE 2015-10-08 12:49:59 +02:00
Daniel Mack 35edaa07cf Merge pull request #1491 from Danielmachon/danish-translation
po: added danish translation
2015-10-08 11:32:05 +02:00
Danielmachon 2144918c63 po: added danish translation for systemd
po: added danish translation for systemd

Update da.po

fixed syntax errors
2015-10-08 10:31:21 +02:00
Evgeny Vereshchagin 670a3efe31 core: manager: add some missing dbus properties 2015-10-08 09:32:27 +03:00
Martin Pitt 10e6271bf3 keymap: Update Thinkpad Yoga 12 (2015)
Follow-up commit to e1fd19958: Add d8 scan code as well.

Fixes #1440
2015-10-08 05:33:14 +02:00
Daniel Mack 8aec6ec510 Merge pull request #1490 from poettering/machinectl-shell-race-fix
machinectl shell race fix
2015-10-07 22:01:53 +02:00
Lennart Poettering 42718282f5 update TODO 2015-10-07 21:38:29 +02:00
Lennart Poettering ae3dde8012 machinectl: fix race when opening new shells with "machinectl shell"
Previously, we'd allocate the TTY, spawn a service on it, but
immediately start processing the TTY and forwarding it to whatever the
commnd was started on. This is however problematic, as the TTY might get
actually opened only much later by the service. We'll hence first get
EIOs on the master as the other side is still closed, and hence
considered it hung up and terminated the session.

With this change we add a flag to the pty forwarding logic:
PTY_FORWARD_IGNORE_INITIAL_VHANGUP. If set, we'll ignore all hangups
(i.e. EIOs) on the master PTY until the first byte is successfully read.
From that point on we consider a hangup/EIO a regular connection termination. This
way, we handle the race: when we get EIO initially we'll ignore it,
until the connection is properly set up, at which time we start
honouring it.
2015-10-07 20:10:48 +02:00
Lennart Poettering 660021d371 util: always enforce O_NOCTTY and O_CLOEXEC in openpt_in_namespace()
The child process is shortliving, hence always set O_NOCTTY so that the
tty doesn't quickly become controlling TTY and then gives it up again.
Also set O_CLOEXEC, because it's cleaner, and doesn't affect the parent
anyway.
2015-10-07 20:08:49 +02:00
Lennart Poettering c379f143a5 build-sys: bump library version 2015-10-07 17:06:22 +02:00
Lennart Poettering 24645b333d build-sys: add sd_listen_fds_with_name() to .sym file 2015-10-07 17:04:39 +02:00
Daniel Mack 44f169accf configure.ac: bump version number 2015-10-07 16:39:59 +02:00
Daniel Mack 1e0adaa45d update NEWS 2015-10-07 16:00:38 +02:00
Daniel Mack bdba9227ec NEWS: re-order entries slightly
Also, the release is actually done in Berlin ;)
2015-10-07 15:57:04 +02:00
Lennart Poettering 61e6771c4a Update NEWS 2015-10-07 15:48:58 +02:00
Lennart Poettering b1b533a060 analyze: trivial code cleanups 2015-10-07 15:45:39 +02:00
Lennart Poettering c30f086f04 update NEWS 2015-10-07 15:45:39 +02:00
Daniel Mack 79bec997c9 Merge pull request #1484 from poettering/ask-pass-kernel-keyring
cache harddisk passwords in the kernel keyring
2015-10-07 15:32:42 +02:00
Lennart Poettering f74431288a Merge pull request #1485 from jsynacek/machine-long-filename-v5
import: hash URL in paths if they are too long
2015-10-07 15:59:51 +03:00
Lennart Poettering 5530caa20b Merge pull request #1487 from michich/fix-env-expansion
Fix env expansion
2015-10-07 15:54:04 +03:00
Lennart Poettering 7c85ab42dd Merge pull request #1486 from michich/crash-handler
core: crash handler changes, CrashChangeVT parsing fix
2015-10-07 15:53:21 +03:00
Michal Schmidt 3faf145d32 man: fix typo ('and' -> 'are') 2015-10-07 14:45:11 +02:00
Michal Schmidt df553b586b basic: fix env expansion for strings leading with two dollar signs
The way to escape a literal dollar sign is to write "$$". But this does
not work right if it's at the beginning of the argument. Fix it.
2015-10-07 14:43:55 +02:00
Michal Schmidt 7d06dad900 core: always let the kernel reap zombies when we're about to freeze
Regardless of whether we're going to spawn a crash shell or not, let the
kernel reap zombies. It's more consistent this way.
2015-10-07 14:25:51 +02:00
Michal Schmidt 4cf0b03b97 core: change how crash_shell and crash_reboot interact
Instead of freezing in PID1 and letting the forked child freeze or
reboot when exec("/bin/sh") fails, just wait for the child's
exit and then do the freeze_or_reboot in PID1 as usual.

This means that when both crash_shell and crash_reboot are enabled, the
system will reboot after the shell exits.
2015-10-07 14:24:49 +02:00
Michal Schmidt 647cb08bc3 core: remove spurious assert in parsing CrashChangeVT=
"data" is always NULL (and unused) in config_parse_crash_chvt().
2015-10-07 14:24:49 +02:00
Jan Synacek 9818005de6 import: hash URL in paths if they are too long
https://bugzilla.redhat.com/show_bug.cgi?id=1266775
2015-10-07 14:06:49 +02:00
Michal Schmidt f7cd3d5fcb core: adjust error message about /etc/mtab
Since having /etc/mtab as a regular file is now a fatal error, stop
mentioning irrelevant minor consequences.
2015-10-07 13:08:05 +02:00
Lennart Poettering e287086b8a ask-password: add support for caching passwords in the kernel keyring
This adds support for caching harddisk passwords in the kernel keyring
if it is available, thus supporting caching without Plymouth being
around.

This is also useful for hooking up "gdm-auto-login" with the collected
boot-time harddisk password, in order to support gnome keyring
passphrase unlocking via the HDD password, if it is the same.

Any passwords added to the kernel keyring this way have a timeout of
2.5min at which time they are purged from the kernel.
2015-10-07 12:26:14 +02:00
Daniel Mack 42911a567d Merge pull request #1481 from again4you/devel/smack_sysuser_#4
smack: label /etc/passwd and friends as '_' smack label when --with-smack-run-label' is enabled (v3)
2015-10-07 11:37:21 +02:00
Daniel Mack 064d3eb5a5 Merge pull request #1478 from steelman/analyze-without-hostnamed-fix
analyze: minor fixes according to review
2015-10-07 11:36:29 +02:00