Commit Graph

1192 Commits

Author SHA1 Message Date
Lennart Poettering
3bbecb2f2c selinux: relabel /run the same way as /dev after loading the policy since they both come pre-filled and unlabelled 2011-04-04 16:58:23 +02:00
Michal Schmidt
4466ee6a71 manager: fd must be int, not char
This should fix the crash reported by Dan Horak on s390x which
does not have VTs.
2011-04-04 15:34:53 +02:00
Kay Sievers
db019b8dd2 change remaining /var/run to /run 2011-04-04 15:33:00 +02:00
Lennart Poettering
151b190e79 binfmt: add binfmt tool to set up binfmt_misc at boot 2011-04-04 03:36:42 +02:00
Kay Sievers
3336686286 tmpfiles: create leading directories for d/D instructions 2011-04-03 22:22:56 +02:00
Lennart Poettering
d24e1b4806 condition: use 'selinux' rather than 'SELinux' as preferred spelling
The virtualization condition and others use lowercase identifiers, so
for the sake of keeping things least surprising, use lowercase
identifiers here too.
2011-04-03 22:18:39 +02:00
Michal Schmidt
07e833bc1d condition: add ConditionSecurity
Using ConditionSecurity a unit can depend on a security module being
enabled/disabled. For now the only recognized security module is SELinux.

I'd like to use this feature for a unit that creates /.autorelabel if
SELinux is disabled, to ensure a relabel is done automatically when the
system is later rebooted with SELinux enabled.
2011-04-03 22:16:37 +02:00
Michal Schmidt
41584525cf load-fragment: unify config_parse_condition_{kernel, virt}
They only differ in the condition type, otherwise the code is identical.
Replace them with a more generic config_parse_condition_string().
2011-04-03 22:16:23 +02:00
Michal Schmidt
8fb81fa784 condition: fix dumping of conditions
Several condition types were missing their strings, they were showing as
"(null)" in systemctl dump.
Indentation was missing too.
2011-04-03 22:15:58 +02:00
Lennart Poettering
7c3b203c5c kmsg-syslogd: pass facility value into kmsg 2011-04-03 22:15:14 +02:00
Lennart Poettering
bb29785e0d general: replace a few uses of /var/run by /run 2011-04-01 15:25:46 +02:00
Lennart Poettering
43515ba0ce mount: also relabel pre-mounted API dirs 2011-03-31 21:40:10 +02:00
Lennart Poettering
7d76f31288 log: fix shifting of facilities 2011-03-31 21:22:44 +02:00
Lennart Poettering
29db583471 log: don't strip facility when writing to kmsg 2011-03-31 19:49:04 +02:00
Lennart Poettering
da19d5c19f src: our lord is coverity 2011-03-31 15:35:40 +02:00
Lennart Poettering
ba1a55152c random: do not print warning if random seed doesn't exist yet 2011-03-31 04:40:02 +02:00
Lennart Poettering
9408a2d295 plymouth: use PID file to detect whether ply is running 2011-03-31 04:26:40 +02:00
Lennart Poettering
fe8954ab47 analyze: improve output 2011-03-31 03:18:14 +02:00
Lennart Poettering
8e028bb1ed analyze: add plotter 2011-03-31 01:19:12 +02:00
Lennart Poettering
3b2775c5ce unit: when deserializing do reconnect to dbus/syslog when they show up 2011-03-30 20:16:07 +02:00
Lennart Poettering
fac9f8df1f analyze: beautify output a bit 2011-03-30 20:15:45 +02:00
Lennart Poettering
f39133ac7f analyze: add systemd-analyze tool 2011-03-30 20:04:37 +02:00
Lennart Poettering
bdbf995180 unit: don't override timestamps due to state changes when deserializing 2011-03-30 20:04:20 +02:00
Lennart Poettering
6faa11140b status: show status messages unconditionally if plymouth is around 2011-03-30 02:21:48 +02:00
Lennart Poettering
871c44a747 taint: add missing cgroups taint flag 2011-03-30 02:12:46 +02:00
Lennart Poettering
d885ac661b locale: don't access misinitialized variable 2011-03-30 02:09:15 +02:00
Lennart Poettering
cb39ed3fde quota: do not pull in quota tools for mounts that do not originate in neither /etc/fstab nor fragment files 2011-03-30 01:53:34 +02:00
Lennart Poettering
72bc8d0056 manager: fix taint check for /usr 2011-03-30 00:47:50 +02:00
Lennart Poettering
ea87ca5a9e unit: never apply /etc/rcN.d/ priority to native services 2011-03-30 00:43:16 +02:00
Lennart Poettering
efbac6d29c unit: fix parsing of condition-result 2011-03-29 23:32:31 +02:00
Lennart Poettering
d325ef27a7 unit: don't complain about failed units when deserializing 2011-03-29 23:32:10 +02:00
Lennart Poettering
cd25cce98f exec: drop process group kill mode since it has little use and confuses the user 2011-03-29 23:31:38 +02:00
Lennart Poettering
12235040ec cgroup: explain when we cannot initialize the cgroup stuff 2011-03-29 20:29:02 +02:00
Florian Kriener
34f0fd8187 locale: full fledged /etc/default/locale support for debian
debian uses /etc/default/locale for all locale setup, this patch
adds full support for it to systemd.
2011-03-29 19:41:06 +02:00
Lennart Poettering
964d124efa systemctl: don't truncate description when using pager
https://bugs.freedesktop.org/show_bug.cgi?id=35725
2011-03-29 18:54:37 +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
e6402d1077 unit: when deserializing jobs, don't pull in dependencies 2011-03-29 13:11:13 +02:00
Kay Sievers
e30b45bb84 udev: tty - re-add accidentially removed hvc* match 2011-03-29 01:44:06 +02:00
Lennart Poettering
08a67ac43d locale: fix LC_MESSAGES variable name
https://bugs.freedesktop.org/show_bug.cgi?id=35534
2011-03-29 01:38:06 +02:00
Kay Sievers
1f7f38f6d4 udev: systemd-tag all ttys 2011-03-29 01:19:39 +02:00
Michael Olbrich
6edef9c587 udev: expose some more tty's for various embedded hardware 2011-03-28 23:36:32 +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 65c9e46752:

  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
Lennart Poettering
3731f1eaa8 conf-parser: fix remaining parser functions according to new prototype 2011-03-28 23:04:30 +02:00
Lennart Poettering
03b4471dc3 execute: socket isn't abstract anymore 2011-03-28 23:04:07 +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
cee1
37f85e66e8 util: detect page size runtime.
Some architectures support multiple machine types with diffenent
page sizes, and some machine types even support multiple
page sizes themselves.
2011-03-28 21:42:31 +02:00
Kay Sievers
65c9e46752 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 +01:00
Andrey Borzenkov
0c380104cf mount: pull in quota services from local mountpoints with usr/grpquota options 2011-03-18 19:12:58 +03:00
Lennart Poettering
9700edb4e8 service: pull in sysv facility targets from the sysv units, not the other way round
For an explanation see:

http://lists.freedesktop.org/archives/systemd-devel/2011-March/001692.html
2011-03-18 05:26:25 +01:00