Commit graph

17 commits

Author SHA1 Message Date
Lennart Poettering 1d6702e8d3 umask: set umask of a number of sockets by default, even though we check creds on connections 2011-08-01 22:42:07 +02:00
Lennart Poettering 7dcda352a6 ask-password: support passwords without timeouts 2011-04-13 21:42:46 +02:00
Lennart Poettering 8254a47589 ask-password: properly accept empty passwords from agent 2011-04-13 21:24:17 +02:00
Lennart Poettering 441dfe092a ask-password: also accept Backspace as first keypress as silent mode switch 2011-03-29 18:32:46 +02:00
Lennart Poettering 58fc840b83 ask-password: use TAB instead of backspace to disable asterisk password echo 2011-03-28 23:27:04 +02:00
Jan Engelhardt d167623084 crypto: to show stars or not to show them
On Friday 2011-03-18 01:41, Lennart Poettering wrote:

>On Fri, 18.03.11 00:18, Jan Engelhardt (jengelh@medozas.de) wrote:
>
>> Meanwhile, I have two new suggestions.
>
>I have one too (or actually Kay came up with it), and I think you are
>going to like it:
>
>Start with showing input feedback as we currently do. If the user then
>presses TAB the stars disappear, and instead we show "(no echo)" or
>so. Then, the user can proceed with typing his password without
>asterisks.
>[...]

Incorporating Graham's suggestion to use BKSP instead:

The following changes since commit 65c9e467528daa438167853cc91d37bfcb875836:

  tainted: don't check if /usr is a mount point, only if it's not already mounted at startup (2011-03-24 22:32:21 +0100)

are available in the git repository at:
  git://dev.medozas.de/systemd master

Jan Engelhardt (1):
      ask-password: provide a way to activate a silent prompt

 src/ask-password-api.c |   11 +++++++----
 1 files changed, 7 insertions(+), 4 deletions(-)
2011-03-28 23:13:59 +02:00
Kay Sievers 2b583ce657 use /run instead of /dev/.run
Instead of the /dev/.run trick we have currently implemented, we decided
to move the early-boot runtime dir to /run.

An existing /var/run directory is bind-mounted to /run. If /var/run is
already a symlink, no action is taken.

An existing /var/lock directory is bind-mounted to /run/lock.
If /var/lock is already a symlink, no action is taken.

To implement the directory vs. symlink logic, we have a:
  ConditionPathIsDirectory=
now, which is used in the mount units.

Skipped mount unit in case of symlink:
  $ systemctl status var-run.mount
  var-run.mount - Runtime Directory
    Loaded: loaded (/lib/systemd/system/var-run.mount)
    Active: inactive (dead)
            start condition failed at Fri, 25 Mar 2011 04:51:41 +0100; 6min ago
     Where: /var/run
      What: /run
    CGroup: name=systemd:/system/var-run.mount

The systemd rpm needs to make sure to add something like:
  %pre
  mkdir -p -m0755 /run >/dev/null 2>&1 || :
or it needs to be added to filesystem.rpm.

Udev -git already uses /run if that exists, and is writable at bootup.
Otherwise it falls back to the current /dev/.udev.

Dracut and plymouth need to be adopted to switch from /dev/.run to run
too.

Cheers,
Kay
2011-03-28 23:00:00 +02:00
Lennart Poettering f9b72cd804 ask-password: reset signal mask after we are done 2011-03-16 02:55:27 +01:00
Lennart Poettering b925e72633 dev: use /dev/.run/systemd as runtime directory, instead of /dev/.systemd 2011-03-09 22:45:47 +01:00
Zbigniew Jędrzejewski-Szmek a9bd141b4a systemctl: always null-terminate the password 2011-02-28 22:17:36 +01:00
Lennart Poettering c0f9c7da07 systemctl: shutdown agent explicitly so that it can reset the tty properly 2011-02-25 02:51:48 +01:00
Lennart Poettering ccc80078fe general: unify error code we generate on timeout 2011-02-24 02:33:57 +01:00
Lennart Poettering 7ded2e28f2 ask-password: fix handling of timeouts when waiting for password 2011-02-23 01:12:29 +01:00
Lennart Poettering 21bc923aa3 ask-password: supported plymouth cached passwords 2011-02-23 01:12:07 +01:00
Lennart Poettering 260ab28795 cryptsetup: support non-LUKS crypto partitions 2010-11-14 19:59:10 +01:00
Lennart Poettering bd1db33fb9 ask-password: leave printing of final prompt colon to message 2010-11-12 03:42:13 +01:00
Lennart Poettering 7f4e08056d cryptsetup: hook up tool with ask-password 2010-11-12 00:40:27 +01:00