chiark / gitweb /
elogind.git
11 years agosystemd-detect-virt: fix "option '--quiet' requires an argument"
Kay Sievers [Mon, 4 Jun 2012 10:39:22 +0000 (12:39 +0200)]
systemd-detect-virt: fix "option '--quiet' requires an argument"

https://bugs.freedesktop.org/show_bug.cgi?id=50671

11 years agokeymaps: replace dir tokens in keyboard-force-release
Dave Reisner [Sat, 2 Jun 2012 18:46:05 +0000 (14:46 -0400)]
keymaps: replace dir tokens in keyboard-force-release

Use the correct udev libexec dir as well, not systemd's.

11 years agomissing: define MS_STRICTATIME if not defined already
Lennart Poettering [Fri, 1 Jun 2012 19:25:29 +0000 (21:25 +0200)]
missing: define MS_STRICTATIME if not defined already

11 years agofix typo
Kay Sievers [Fri, 1 Jun 2012 15:56:11 +0000 (17:56 +0200)]
fix typo

11 years agounits: fix man section
Lennart Poettering [Fri, 1 Jun 2012 15:26:28 +0000 (17:26 +0200)]
units: fix man section

11 years agojournal: allow setting of a cutoff log level for disk storage, syslog, kmsg, console...
Lennart Poettering [Fri, 1 Jun 2012 15:26:16 +0000 (17:26 +0200)]
journal: allow setting of a cutoff log level for disk storage, syslog, kmsg, console forwarding

11 years agojournal: support changing the console tty to forward to
Lennart Poettering [Thu, 31 May 2012 23:06:10 +0000 (01:06 +0200)]
journal: support changing the console tty to forward to

11 years agoman: document systemd-journal
Lennart Poettering [Thu, 31 May 2012 23:05:38 +0000 (01:05 +0200)]
man: document systemd-journal

11 years agoman: write man page for systemd-logind
Lennart Poettering [Thu, 31 May 2012 22:14:07 +0000 (00:14 +0200)]
man: write man page for systemd-logind

11 years agologind: fix indentation
Lennart Poettering [Fri, 1 Jun 2012 13:57:21 +0000 (15:57 +0200)]
logind: fix indentation

11 years agologind: interpret the can_sleep return value properly
Matthias Clasen [Fri, 1 Jun 2012 01:50:23 +0000 (21:50 -0400)]
logind: interpret the can_sleep return value properly

can_sleep() returns a boolean, so a return value > 0 does not
mean 'na'.

11 years agosleep: Don't call execute_directory() on a binary
Matthias Clasen [Fri, 1 Jun 2012 00:07:12 +0000 (20:07 -0400)]
sleep: Don't call execute_directory() on a binary

Probably a copy-paste error, SYSTEMD_SLEEP_BINARY_PATH should
have been SYSTEMD_SLEEP_PATH.

11 years agoupdate TODO
Kay Sievers [Thu, 31 May 2012 20:18:13 +0000 (22:18 +0200)]
update TODO

11 years agobuild-sys: split-off D-Bus requires from selinux convenience lib
Kay Sievers [Thu, 31 May 2012 20:12:47 +0000 (22:12 +0200)]
build-sys: split-off D-Bus requires from selinux convenience lib

11 years agologind: add new user state 'closing'
Lennart Poettering [Thu, 31 May 2012 17:47:52 +0000 (19:47 +0200)]
logind: add new user state 'closing'

11 years agologind: properly clean up user cgroups when they run empty
Lennart Poettering [Thu, 31 May 2012 17:46:42 +0000 (19:46 +0200)]
logind: properly clean up user cgroups when they run empty

11 years agomain: Silence gcc warning
Marc-Antoine Perennou [Thu, 31 May 2012 13:54:22 +0000 (15:54 +0200)]
main: Silence gcc warning

11 years agoman: add documentation for the binfmt, modules-load, sysctl services
Lennart Poettering [Thu, 31 May 2012 14:00:34 +0000 (16:00 +0200)]
man: add documentation for the binfmt, modules-load, sysctl services

11 years agounits: add Documentation= field to console-getty.service
Lennart Poettering [Thu, 31 May 2012 12:51:05 +0000 (14:51 +0200)]
units: add Documentation= field to console-getty.service

11 years agoRevert "label: fix systemd-udev labeling of /run directory."
Kay Sievers [Thu, 31 May 2012 11:34:41 +0000 (13:34 +0200)]
Revert "label: fix systemd-udev labeling of /run directory."

This reverts commit 9b5af248f04b6cad8a5bca836e89a39e9f6823d9.

Udev now explicitely labels only files/directories in /dev. The selinux
array API is not released and will not work on other distros at this moment.

11 years agoudev: do not selinux label files in /run/udev
Kay Sievers [Thu, 31 May 2012 11:20:06 +0000 (13:20 +0200)]
udev: do not selinux label files in /run/udev

11 years agomkdir: provide all functions with and without selinux label application
Kay Sievers [Thu, 31 May 2012 11:17:26 +0000 (13:17 +0200)]
mkdir: provide all functions with and without selinux label application

11 years agomkdir: append _label to all mkdir() calls that explicitly set the selinux context
Kay Sievers [Thu, 31 May 2012 10:40:20 +0000 (12:40 +0200)]
mkdir: append _label to all mkdir() calls that explicitly set the selinux context

11 years agoutil: don't require libcap when building libsystemd-shared
Kay Sievers [Thu, 31 May 2012 09:58:06 +0000 (11:58 +0200)]
util: don't require libcap when building libsystemd-shared

src/shared/util.c includes <sys/capability.h> but doesn't use anything
defined there.  Since <sys/capability.h> is part of libcap, not libc,
don't require it.

Allows systemd-without-udevd to require fewer external libraries.

11 years agomain: allow setting of timer slack for PID 1
Lennart Poettering [Thu, 31 May 2012 02:36:08 +0000 (04:36 +0200)]
main: allow setting of timer slack for PID 1

11 years agoutil: introduce a proper nsec_t and make use of it where appropriate
Lennart Poettering [Thu, 31 May 2012 02:27:03 +0000 (04:27 +0200)]
util: introduce a proper nsec_t and make use of it where appropriate

11 years agosystemctl: introduce "systemctl man" to show man page for unit
Lennart Poettering [Thu, 31 May 2012 02:11:57 +0000 (04:11 +0200)]
systemctl: introduce "systemctl man" to show man page for unit

For now this only reads man: URLs, but later on we might want to support
info: too. http/https is probably out of focus.

11 years agobuild-sys: prepare release 184 v184
Lennart Poettering [Wed, 30 May 2012 23:58:01 +0000 (01:58 +0200)]
build-sys: prepare release 184

11 years agolabel: fix systemd-udev labeling of /run directory.
Daniel J Walsh [Wed, 30 May 2012 20:13:48 +0000 (16:13 -0400)]
label: fix systemd-udev labeling of /run directory.

systemd-udev is currently incorrectly labeling /run/udev/* content because it is
using selinux prefix labeling of /dev.  This patch will allow systemd-udev to
use prefix labeling of /dev and /run.

11 years agojournald: properly handle if we have no PID in a kmsg line
Lennart Poettering [Wed, 30 May 2012 23:26:06 +0000 (01:26 +0200)]
journald: properly handle if we have no PID in a kmsg line

11 years agologin: properly detect MIMO USB displays
Lennart Poettering [Wed, 30 May 2012 23:19:11 +0000 (01:19 +0200)]
login: properly detect MIMO USB displays

MIMO USB displays use a generic VID/PID for the hub component. With a
bit of trickery we can detect them by the VID/PID of the graphics
component.

11 years agoudev: skip timestamp check if rules are already free()d during reload
Kay Sievers [Wed, 30 May 2012 23:15:21 +0000 (01:15 +0200)]
udev: skip timestamp check if rules are already free()d during reload

11 years agoselinux: downgrade database load time message to LOG_DEBUG
Lennart Poettering [Wed, 30 May 2012 23:10:44 +0000 (01:10 +0200)]
selinux: downgrade database load time message to LOG_DEBUG

11 years agoupdate TODO
Lennart Poettering [Wed, 30 May 2012 21:39:15 +0000 (23:39 +0200)]
update TODO

11 years agoshutdown: Don't skip bind mounts on shutdown
Daniel Drake [Wed, 25 Apr 2012 15:46:46 +0000 (16:46 +0100)]
shutdown: Don't skip bind mounts on shutdown

This reverts commits d72238fcb34abc81aca97c5fb15888708ee937d3 and
f3accc08.

OLPC runs / as a bind-mount, so this must be remounted RO during
shutdown to avoid corruption.

As Lennert can't recall the exact reasons for making the shutdown
code skip bind mounts, revert to previous behaviour to solve the
issue for OLPC.

http://lists.freedesktop.org/archives/systemd-devel/2012-April/004957.html

11 years agojournal: don't allow adding invalid matches to the context
Lennart Poettering [Wed, 30 May 2012 20:46:07 +0000 (22:46 +0200)]
journal: don't allow adding invalid matches to the context

11 years agojournalctl: check first if match is a path name
Lennart Poettering [Wed, 30 May 2012 20:45:47 +0000 (22:45 +0200)]
journalctl: check first if match is a path name

11 years agojournalctl: support /usr/bin/nginx, etc
Shawn Landden [Wed, 30 May 2012 16:43:23 +0000 (09:43 -0700)]
journalctl: support /usr/bin/nginx, etc

11 years agojournalctl: for now complain if more than one match is provided since this is still...
Lennart Poettering [Wed, 30 May 2012 20:30:35 +0000 (22:30 +0200)]
journalctl: for now complain if more than one match is provided since this is still broken

11 years agobuild-sys: fix built with --disable-logind
Lennart Poettering [Wed, 30 May 2012 20:25:01 +0000 (22:25 +0200)]
build-sys: fix built with --disable-logind

11 years agodbus: better don't expose options we better shouldn't exposed
Lennart Poettering [Wed, 30 May 2012 19:43:11 +0000 (21:43 +0200)]
dbus: better don't expose options we better shouldn't exposed

NotifySocket= is hardly useful, people should use $NOTIFY_SOCKET if
anything.

RunningAs= suggests people had a choice of running user mode as PID 1 or
vice versa, so remove this too.

11 years agoservice: mark compat options as such
Lennart Poettering [Wed, 30 May 2012 19:42:07 +0000 (21:42 +0200)]
service: mark compat options as such

This moves FsckPassNo= and SysVStartPriority= into its own
"Compatibility Options" section in the man page to clarify that these
options are not useful for anything but establishing a limited amount of
compatibility.

Also stop exposing these options on the bus.

11 years agologind: rework button setting semantics
Lennart Poettering [Wed, 30 May 2012 19:40:32 +0000 (21:40 +0200)]
logind: rework button setting semantics

If a graphical session without full DE that handles power/suspend events
is used this can now be controlled by logind instead, optionally.

11 years agologin: Use the GOTO properly in udev rule
Tero Roponen [Wed, 30 May 2012 16:34:28 +0000 (18:34 +0200)]
login: Use the GOTO properly in udev rule

In udev rules the labels must be assigned to GOTO keys with '='.

11 years agojournald: ignore messages read from /proc/kmsg that we generated via /dev/kmsg
Lennart Poettering [Wed, 30 May 2012 13:42:35 +0000 (15:42 +0200)]
journald: ignore messages read from /proc/kmsg that we generated via /dev/kmsg

Avoid a busy loop.

11 years agologind: add missing files
Lennart Poettering [Wed, 30 May 2012 13:07:19 +0000 (15:07 +0200)]
logind: add missing files

11 years agosleep: print nice messages right before and right after system hibernate/sleep
Lennart Poettering [Wed, 30 May 2012 13:04:39 +0000 (15:04 +0200)]
sleep: print nice messages right before and right after system hibernate/sleep

11 years agologind: optionally handle power, sleep and lid switch events
Lennart Poettering [Wed, 30 May 2012 13:01:51 +0000 (15:01 +0200)]
logind: optionally handle power, sleep and lid switch events

This takes handling of chassis power and sleep keys as well as the lid
switch over from acpid.

This logic is enabled by default for power and sleep keys, but not for
the lid switch.

If a graphical session is in the foreground no action is taken under the
assumption that the graphical session does this.

11 years agocapabilities: when dropping capabilities system-wide also drop them from usermode...
Lennart Poettering [Tue, 29 May 2012 21:33:38 +0000 (23:33 +0200)]
capabilities: when dropping capabilities system-wide also drop them from usermode helpers

This hooks things up with /proc/sys/kernel/usermodehelper/bset and
/proc/sys/kernel/usermodehelper/inheritable.

11 years agoupdate TODO
Kay Sievers [Tue, 29 May 2012 21:15:34 +0000 (23:15 +0200)]
update TODO

11 years agoplymouth: use systemd-udev-settle.service
Kay Sievers [Tue, 29 May 2012 20:32:41 +0000 (22:32 +0200)]
plymouth: use systemd-udev-settle.service

11 years agocgtop: work even if not all cgroups are available
Shawn Landden [Tue, 22 May 2012 05:54:41 +0000 (22:54 -0700)]
cgtop: work even if not all cgroups are available

cgtop quits on startup if all the cgroup mounts it expects are not available.
Just continue without nonexistant ones.

11 years agobash: Reflect new name of loginctl in bash-completion script
Gert Michael Kulyk [Sun, 27 May 2012 18:43:55 +0000 (20:43 +0200)]
bash: Reflect new name of loginctl in bash-completion script

https://bugs.freedesktop.org/show_bug.cgi?id=50402

11 years agoTODO
Lennart Poettering [Fri, 25 May 2012 12:38:48 +0000 (14:38 +0200)]
TODO

11 years agoupdate TODO
Kay Sievers [Tue, 29 May 2012 10:19:40 +0000 (12:19 +0200)]
update TODO

11 years agoman/systemctl.xml: Add missing space for »stopcommand«
Paul Menzel [Thu, 24 May 2012 20:20:39 +0000 (22:20 +0200)]
man/systemctl.xml: Add missing space for »stopcommand«

11 years agotest/README.testsuite: add documentation for the testsuite
Harald Hoyer [Fri, 25 May 2012 16:44:42 +0000 (18:44 +0200)]
test/README.testsuite: add documentation for the testsuite

11 years agotest/TEST-01-BASIC: add /var on cryptoluks and wait for the journal
Harald Hoyer [Fri, 25 May 2012 16:32:55 +0000 (18:32 +0200)]
test/TEST-01-BASIC: add /var on cryptoluks and wait for the journal

11 years agotest/test-functions: add check_qemu() and check_nspawn() functions
Harald Hoyer [Fri, 25 May 2012 16:31:58 +0000 (18:31 +0200)]
test/test-functions: add check_qemu() and check_nspawn() functions

11 years agotest/TEST-01-BASIC: fail test, if qemu failed
Harald Hoyer [Fri, 25 May 2012 12:55:26 +0000 (14:55 +0200)]
test/TEST-01-BASIC: fail test, if qemu failed

11 years agotest/TEST-01-BASIC: make DEBUGTOOLS an environment variable
Harald Hoyer [Fri, 25 May 2012 12:54:38 +0000 (14:54 +0200)]
test/TEST-01-BASIC: make DEBUGTOOLS an environment variable

11 years agotest/test-functions: be more verbose about skipping tests
Harald Hoyer [Fri, 25 May 2012 12:53:29 +0000 (14:53 +0200)]
test/test-functions: be more verbose about skipping tests

11 years agoupdate TODO
Kay Sievers [Tue, 29 May 2012 00:08:59 +0000 (02:08 +0200)]
update TODO

11 years agoudev: man - mention systemd-udevd(8)
Kay Sievers [Mon, 28 May 2012 22:53:28 +0000 (00:53 +0200)]
udev: man - mention systemd-udevd(8)

11 years agoudev.pc: install udev files to /lib/udev rather than /lib/systemd
Tom Gundersen [Sat, 26 May 2012 23:24:16 +0000 (01:24 +0200)]
udev.pc: install udev files to /lib/udev rather than /lib/systemd

11 years agojournald: refer to the correct man page
Matthias Clasen [Sat, 26 May 2012 21:37:39 +0000 (17:37 -0400)]
journald: refer to the correct man page

Fix the reference to the journald.conf man page in the
config file of the same name.

11 years agorules: Limit USB autosuspend on USB HID devices
Matthew Garrett [Fri, 25 May 2012 14:27:25 +0000 (10:27 -0400)]
rules: Limit USB autosuspend on USB HID devices

Some USB ports on external hubs may be reported as "fixed". We only want
to auto-enable this on ports that are internal to the machine, so check
the parent state as well.

11 years agoscsi_id: fix truncated model in by-id device links
Jean Delvare [Fri, 25 May 2012 14:08:00 +0000 (16:08 +0200)]
scsi_id: fix truncated model in by-id device links

Do not forget the leading "S" when appending the serial number,
otherwise we chop the last character of the model name.

Addresses: https://bugzilla.novell.com/show_bug.cgi?id=763397
Signed-off-by: Jean Delvare <jdelvare@suse.de>
Signed-off-by: Petr Uzel <petr.uzel@suse.cz>
11 years agoudev: silent gcc warnings
Kay Sievers [Fri, 25 May 2012 12:25:46 +0000 (14:25 +0200)]
udev: silent gcc warnings

11 years agoNEWS: add contributors list
Lennart Poettering [Thu, 24 May 2012 16:15:35 +0000 (18:15 +0200)]
NEWS: add contributors list

11 years agoswap: avoid bad memory access v183
Lennart Poettering [Thu, 24 May 2012 15:33:50 +0000 (17:33 +0200)]
swap: avoid bad memory access

11 years agoNEWS: fix even more typos
Lennart Poettering [Thu, 24 May 2012 15:06:03 +0000 (17:06 +0200)]
NEWS: fix even more typos

11 years agoupdate TODO
Lennart Poettering [Thu, 24 May 2012 15:04:04 +0000 (17:04 +0200)]
update TODO

11 years agoNEWS: fix more typos
Lennart Poettering [Thu, 24 May 2012 15:03:52 +0000 (17:03 +0200)]
NEWS: fix more typos

11 years agoNEWS: fix more typos
Lennart Poettering [Thu, 24 May 2012 14:53:31 +0000 (16:53 +0200)]
NEWS: fix more typos

11 years agoNEWS: fixo
Lennart Poettering [Thu, 24 May 2012 14:52:12 +0000 (16:52 +0200)]
NEWS: fixo

11 years agoNEWS: explain the version jump
Lennart Poettering [Thu, 24 May 2012 14:41:08 +0000 (16:41 +0200)]
NEWS: explain the version jump

11 years agoupdate TODO
Lennart Poettering [Thu, 24 May 2012 14:39:55 +0000 (16:39 +0200)]
update TODO

11 years agotest/TEST-01-BASIC: add missing "; then"
Harald Hoyer [Thu, 24 May 2012 14:07:35 +0000 (16:07 +0200)]
test/TEST-01-BASIC: add missing "; then"

11 years agotest/TEST-01-BASIC: only test systemd-nspawn, if the test system uses systemd
Harald Hoyer [Thu, 24 May 2012 14:00:33 +0000 (16:00 +0200)]
test/TEST-01-BASIC: only test systemd-nspawn, if the test system uses systemd

11 years agotest/TEST-01-BASIC: add systemd-nspawn run with the root image
Harald Hoyer [Thu, 24 May 2012 13:51:10 +0000 (15:51 +0200)]
test/TEST-01-BASIC: add systemd-nspawn run with the root image

11 years agobuild-sys: prepare release 183
Lennart Poettering [Thu, 24 May 2012 13:42:21 +0000 (15:42 +0200)]
build-sys: prepare release 183

11 years agotest/TEST-01-BASIC: untabified
Harald Hoyer [Thu, 24 May 2012 13:27:53 +0000 (15:27 +0200)]
test/TEST-01-BASIC: untabified

11 years agotest/TEST-01-BASIC: add a defined rc.local
Harald Hoyer [Thu, 24 May 2012 13:27:13 +0000 (15:27 +0200)]
test/TEST-01-BASIC: add a defined rc.local

11 years agotest/TEST-01-BASIC: add /etc/localtime to test image
Harald Hoyer [Thu, 24 May 2012 13:26:09 +0000 (15:26 +0200)]
test/TEST-01-BASIC: add /etc/localtime to test image

11 years agotest: add touch to test machine
Lennart Poettering [Thu, 24 May 2012 13:21:43 +0000 (15:21 +0200)]
test: add touch to test machine

11 years agotest: check systemctl --failed in test VM
Lennart Poettering [Thu, 24 May 2012 12:32:48 +0000 (14:32 +0200)]
test: check systemctl --failed in test VM

11 years agomain: add configuration option to alter capability bounding set for PID 1
Lennart Poettering [Thu, 24 May 2012 02:00:56 +0000 (04:00 +0200)]
main: add configuration option to alter capability bounding set for PID 1

This also ensures that caps dropped from the bounding set are also
dropped from the inheritable set, to be extra-secure. Usually that should
change very little though as the inheritable set is empty for all our uses
anyway.

11 years agoservice: for Type=idle units consider START_PRE, START, START_POST all as ACTIVE
Lennart Poettering [Thu, 24 May 2012 00:22:35 +0000 (02:22 +0200)]
service: for Type=idle units consider START_PRE, START, START_POST all as ACTIVE

We want to avoid a deadlock when a service has ExecStartPre= programs
that wait for the job queue to run empty because of Type=idle, but which
themselves keep the queue non-empty because START_PRE was considered
ACTIVATING and hence the job not complete. With this patch we alter the
state translation table so that it is impossible ever to wait for
Type=idle unit, hence removing the deadlock.

11 years agoupdate TODO
Lennart Poettering [Wed, 23 May 2012 10:52:39 +0000 (12:52 +0200)]
update TODO

11 years agounits: fix file syntax
Lennart Poettering [Wed, 23 May 2012 10:49:49 +0000 (12:49 +0200)]
units: fix file syntax

11 years agojournal: don't complain if SELinux userspace is available but the kernel lacks it
Lennart Poettering [Wed, 23 May 2012 10:49:41 +0000 (12:49 +0200)]
journal: don't complain if SELinux userspace is available but the kernel lacks it

11 years agoman: properly document FsckPassNo= for mount units
Lennart Poettering [Wed, 23 May 2012 02:11:29 +0000 (04:11 +0200)]
man: properly document FsckPassNo= for mount units

11 years agoreadahead: use Conflicts= instead of masking to get rid of readahead units
Lennart Poettering [Wed, 23 May 2012 02:02:56 +0000 (04:02 +0200)]
readahead: use Conflicts= instead of masking to get rid of readahead units

11 years agoupdate TODO
Lennart Poettering [Wed, 23 May 2012 01:51:55 +0000 (03:51 +0200)]
update TODO

11 years agoreadahead: disable collect/replay during system updates
Lennart Poettering [Wed, 23 May 2012 01:51:48 +0000 (03:51 +0200)]
readahead: disable collect/replay during system updates

11 years agoreadahead: avoid running of readahead services if readahead is already done
Lennart Poettering [Wed, 23 May 2012 01:51:25 +0000 (03:51 +0200)]
readahead: avoid running of readahead services if readahead is already done

11 years agoreadahead: avoid activating the journal by accident, log directly to kmsg
Lennart Poettering [Wed, 23 May 2012 01:50:53 +0000 (03:50 +0200)]
readahead: avoid activating the journal by accident, log directly to kmsg

11 years agoreadahead: when doing a system update drop readahead file
Lennart Poettering [Wed, 23 May 2012 01:50:15 +0000 (03:50 +0200)]
readahead: when doing a system update drop readahead file

11 years agomanager: rework generator logic
Lennart Poettering [Wed, 23 May 2012 01:43:29 +0000 (03:43 +0200)]
manager: rework generator logic

Previously generated units were always placed at the end of the search
path. With this change there will be three unit dirs instead of one, to
place generated entries at the beginning, in the middle and at the end
of the search path:

beginning: for units that need to override all configuration, regardless
of user or vendor. Example use: system-update-generator uses this to
temporarily redirect default.target.

middle: for units that need to override vendor configuration, but not
vendor configuration. Example use: /etc/fstab should override vendor
supplied configuration (think /tmp), but should not override native user
configuration.

end: does not override anything but is available as well. Possible usage
might be to convert D-Bus bus service files to native units but allowing
vendor supplied native units to win.