chiark / gitweb /
elogind.git
12 years agomanager: Transaction as an object
Michal Schmidt [Fri, 20 Apr 2012 08:22:07 +0000 (10:22 +0200)]
manager: Transaction as an object

This makes it obvious that transactions are short-lived. They are created in
manager_add_job() and destroyed after the application of jobs.
It also prepares for a split of the transaction code to a new source.

12 years agojob: job_uninstall()
Michal Schmidt [Fri, 20 Apr 2012 08:21:37 +0000 (10:21 +0200)]
job: job_uninstall()

Split the uninstallation of the job from job_free() into a separate function.
Adjust the callers.

job_free() now only works on unlinked and uninstalled jobs. This enforces clear
thinking about job lifetimes.

12 years agomanager: simplify transaction_abort()
Michal Schmidt [Thu, 19 Apr 2012 21:23:04 +0000 (23:23 +0200)]
manager: simplify transaction_abort()

This is equivalent.

12 years agojob: allow job_free() only on already unlinked jobs
Michal Schmidt [Thu, 19 Apr 2012 21:20:34 +0000 (23:20 +0200)]
job: allow job_free() only on already unlinked jobs

job_free() is IMO too helpful when it unlinks the job from the transaction.
The callers should ensure the job is already unlinked before freeing.
The added assertions check if anyone gets it wrong.

12 years agomanager: fix comment
Michal Schmidt [Tue, 17 Apr 2012 20:54:23 +0000 (22:54 +0200)]
manager: fix comment

12 years agotmpfiles: fix error message
Michal Schmidt [Tue, 17 Apr 2012 20:53:35 +0000 (22:53 +0200)]
tmpfiles: fix error message

12 years agodocs: remove duplicated install hook
Kay Sievers [Fri, 20 Apr 2012 06:22:18 +0000 (08:22 +0200)]
docs: remove duplicated install hook

12 years agolog: fix LOG_TARGET_JOURNAL_OR_KMSG
Lennart Poettering [Fri, 20 Apr 2012 10:39:36 +0000 (12:39 +0200)]
log: fix LOG_TARGET_JOURNAL_OR_KMSG

12 years agomount-setup: don't log with LOG_ERROR if a mount that doesn't matter fails
Lennart Poettering [Fri, 20 Apr 2012 10:39:09 +0000 (12:39 +0200)]
mount-setup: don't log with LOG_ERROR if a mount that doesn't matter fails

12 years agomain: log to the journal in container mode, by default
Lennart Poettering [Fri, 20 Apr 2012 10:37:57 +0000 (12:37 +0200)]
main: log to the journal in container mode, by default

12 years agodocs: hook-up gtk-doc to 'make check'
Kay Sievers [Fri, 20 Apr 2012 01:25:36 +0000 (03:25 +0200)]
docs: hook-up gtk-doc to 'make check'

12 years agodocs: rebase html documentation for online and local use
Kay Sievers [Thu, 19 Apr 2012 17:00:35 +0000 (19:00 +0200)]
docs: rebase html documentation for online and local use

12 years agodocs: do not generate tmpl files
Javier Jardón [Thu, 19 Apr 2012 14:06:25 +0000 (15:06 +0100)]
docs: do not generate tmpl files

Its not needed as all the documentation is inline source code,
not in separate *.tmpl files

12 years agofix typo in src/shared/install.c
Sven Anders [Thu, 19 Apr 2012 10:03:28 +0000 (12:03 +0200)]
fix typo in src/shared/install.c

12 years agoupdate TODO
Kay Sievers [Wed, 18 Apr 2012 18:31:16 +0000 (20:31 +0200)]
update TODO

12 years agoudev: units - reference systemd-* units
Kay Sievers [Wed, 18 Apr 2012 14:29:43 +0000 (16:29 +0200)]
udev: units - reference systemd-* units

12 years agobuild-sys: move dev-setup to label.la
Kay Sievers [Wed, 18 Apr 2012 14:13:37 +0000 (16:13 +0200)]
build-sys: move dev-setup to label.la

12 years agoremove MS_* which can not be combined with current kernel code
Kay Sievers [Wed, 18 Apr 2012 11:37:45 +0000 (13:37 +0200)]
remove MS_* which can not be combined with current kernel code

MS_BIND|MS_MOVE can not be combined:
  do_mount()
    else if (flags & MS_BIND)
      do_loopback(&path, dev_name, flags & MS_REC);
    [...]
    else if (flags & MS_MOVE)
      do_move_mount(&path, dev_name);

MS_REMOUNT|MS_UNBINDABLE can not be combined:
  do_mount()
    if (flags & MS_REMOUNT)
      do_remount(&path, flags & ~MS_REMOUNT, mnt_flags, data_page);
    [...]
    else if (flags & (MS_SHARED | MS_PRIVATE | MS_SLAVE | MS_UNBINDABLE))
      do_change_type(&path, flags);

12 years agoudev: unify /dev static symlink setup
Kay Sievers [Tue, 17 Apr 2012 20:25:24 +0000 (22:25 +0200)]
udev: unify /dev static symlink setup

12 years agoudev: docs - updated index page to match common gtk style
Kay Sievers [Tue, 17 Apr 2012 17:02:23 +0000 (19:02 +0200)]
udev: docs - updated index page to match common gtk style

12 years agoupdate TODO
Kay Sievers [Tue, 17 Apr 2012 16:47:49 +0000 (18:47 +0200)]
update TODO

12 years agosilence a bunch of gcc warnings
Kay Sievers [Tue, 17 Apr 2012 16:42:09 +0000 (18:42 +0200)]
silence a bunch of gcc warnings

12 years agobuild-sys: silence gtk-doc check, remove gtk-doc options from configure and distcheck
Kay Sievers [Tue, 17 Apr 2012 15:03:38 +0000 (17:03 +0200)]
build-sys: silence gtk-doc check, remove gtk-doc options from configure and distcheck

12 years agobuild-sys: make gtk-doc dependency optional
Javier Jardón [Tue, 17 Apr 2012 14:17:27 +0000 (15:17 +0100)]
build-sys: make gtk-doc dependency optional

12 years agoupdate TODO
Kay Sievers [Tue, 17 Apr 2012 14:54:45 +0000 (16:54 +0200)]
update TODO

12 years agoselinux: unify systemd and udev code
Kay Sievers [Tue, 17 Apr 2012 14:05:03 +0000 (16:05 +0200)]
selinux: unify systemd and udev code

12 years agomkdir: do not use alloca() in a loop
Kay Sievers [Tue, 17 Apr 2012 12:43:28 +0000 (14:43 +0200)]
mkdir: do not use alloca() in a loop

12 years agoupdate .gitignore
Lennart Poettering [Tue, 17 Apr 2012 14:04:42 +0000 (16:04 +0200)]
update .gitignore

12 years agoconfigure.ac: Use a auxiliar directory to store autogenerated files
Javier Jardón [Sun, 2 Oct 2011 22:31:59 +0000 (23:31 +0100)]
configure.ac: Use a auxiliar directory to store autogenerated files

12 years agoconfigure.ac: Use the new autoconf field to set the project webpage
Javier Jardón [Mon, 21 Nov 2011 17:18:33 +0000 (17:18 +0000)]
configure.ac: Use the new autoconf field to set the project webpage

12 years agoupdate TODO
Lennart Poettering [Tue, 17 Apr 2012 13:35:41 +0000 (15:35 +0200)]
update TODO

12 years agoman: Fix a few typos
Michael Biebl [Tue, 17 Apr 2012 12:35:48 +0000 (14:35 +0200)]
man: Fix a few typos

Reported-by: A. Costa <agcosta@gis.net>
Bug-Debian: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=668344

12 years agoFix typo
Tollef Fog Heen [Tue, 17 Apr 2012 07:47:23 +0000 (09:47 +0200)]
Fix typo

12 years agoupdate TODO
Kay Sievers [Tue, 17 Apr 2012 00:55:39 +0000 (02:55 +0200)]
update TODO

12 years agoudev: kill udev_selinux_setfscreateconat()
Kay Sievers [Tue, 17 Apr 2012 00:20:32 +0000 (02:20 +0200)]
udev: kill udev_selinux_setfscreateconat()

12 years agoudev: replace util_create_path() with mkdir_parents()
Kay Sievers [Mon, 16 Apr 2012 22:26:02 +0000 (00:26 +0200)]
udev: replace util_create_path() with mkdir_parents()

12 years agoudev: install udevd as /usr/lib/systemd/systemd-udevd
Kay Sievers [Mon, 16 Apr 2012 21:32:22 +0000 (23:32 +0200)]
udev: install udevd as /usr/lib/systemd/systemd-udevd

12 years agoudev: use startswith() and streq()
Kay Sievers [Mon, 16 Apr 2012 18:27:44 +0000 (20:27 +0200)]
udev: use startswith() and streq()

12 years agoudev: remove configuration options for /dev, /sys, /run directories
Kay Sievers [Mon, 16 Apr 2012 15:21:22 +0000 (17:21 +0200)]
udev: remove configuration options for /dev, /sys, /run directories

12 years agoudev: replace ARRAY_SIZE() with ELEMENTSOF()
Kay Sievers [Mon, 16 Apr 2012 01:13:22 +0000 (03:13 +0200)]
udev: replace ARRAY_SIZE() with ELEMENTSOF()

12 years agologind: remove redundant entries from logind's default controller lists too
Lennart Poettering [Mon, 16 Apr 2012 17:14:11 +0000 (19:14 +0200)]
logind: remove redundant entries from logind's default controller lists too

12 years agosystemctl: show main and control PID explicitly in cgroup-show
Lennart Poettering [Mon, 16 Apr 2012 16:56:18 +0000 (18:56 +0200)]
systemctl: show main and control PID explicitly in cgroup-show

In some cases the main/control PID of a service can be outside of the
services cgroups (for example, if logind readjusts the processes'
cgroup). In order to clarify this for the user show the main/control PID
in the cgroup tree nonetheless, but mark them specially.

12 years agoutil: introduce memdup()
Lennart Poettering [Mon, 16 Apr 2012 16:54:45 +0000 (18:54 +0200)]
util: introduce memdup()

12 years agocgls: don't show empty cgroups by default
Lennart Poettering [Mon, 16 Apr 2012 15:35:58 +0000 (17:35 +0200)]
cgls: don't show empty cgroups by default

12 years agologind: hook up inhibit logic with idle hint logic
Lennart Poettering [Mon, 16 Apr 2012 15:05:15 +0000 (17:05 +0200)]
logind: hook up inhibit logic with idle hint logic

12 years agologind: add shutdown/suspend/idle inhibition framework
Lennart Poettering [Mon, 16 Apr 2012 14:47:33 +0000 (16:47 +0200)]
logind: add shutdown/suspend/idle inhibition framework

12 years agomanager: remove unavailable/redundant entries from default controllers list
Lennart Poettering [Sat, 14 Apr 2012 00:34:10 +0000 (02:34 +0200)]
manager: remove unavailable/redundant entries from default controllers list

12 years agocgroup: if a controller is not available don't try to create cgroups in its hierarchy
Lennart Poettering [Sat, 14 Apr 2012 00:15:13 +0000 (02:15 +0200)]
cgroup: if a controller is not available don't try to create cgroups in its hierarchy

12 years agoudev: udev_monitor_new_from_socket() - log error and remove from public header
Kay Sievers [Sun, 15 Apr 2012 16:41:15 +0000 (18:41 +0200)]
udev: udev_monitor_new_from_socket() - log error and remove from public header

12 years agoudev: update some rules
Kay Sievers [Sun, 15 Apr 2012 12:06:48 +0000 (14:06 +0200)]
udev: update some rules

12 years agoudev: doc - sync libudev and gudev
Kay Sievers [Sun, 15 Apr 2012 01:31:12 +0000 (03:31 +0200)]
udev: doc - sync libudev and gudev

12 years agoudev: cleanup the udev cgroup when the daemon enters the idle state
Kay Sievers [Sun, 15 Apr 2012 00:35:31 +0000 (02:35 +0200)]
udev: cleanup the udev cgroup when the daemon enters the idle state

12 years agoudev: clarify man page regarding starting dameons
Kay Sievers [Sat, 14 Apr 2012 19:53:26 +0000 (21:53 +0200)]
udev: clarify man page regarding starting dameons

12 years agogudev: gtk-doc - hide licence stuff which consumes three-fourths of the index page
Kay Sievers [Sat, 14 Apr 2012 19:23:36 +0000 (21:23 +0200)]
gudev: gtk-doc - hide licence stuff which consumes three-fourths of the index page

12 years agoudev: trivial gtk-doc update
Kay Sievers [Sat, 14 Apr 2012 19:16:31 +0000 (21:16 +0200)]
udev: trivial gtk-doc update

12 years agoudev: move all unconditionally installed rules to rules/
Kay Sievers [Sat, 14 Apr 2012 18:10:03 +0000 (20:10 +0200)]
udev: move all unconditionally installed rules to rules/

12 years agoudev: keymap - move src/udev/force-release-maps/ to keymaps-force-release/
Kay Sievers [Sat, 14 Apr 2012 17:53:31 +0000 (19:53 +0200)]
udev: keymap - move src/udev/force-release-maps/ to keymaps-force-release/

12 years agoudev: test - move test/ and src/test/
Kay Sievers [Sat, 14 Apr 2012 17:31:18 +0000 (19:31 +0200)]
udev: test - move test/ and src/test/

12 years agoREADME: update udev requirements
Kay Sievers [Sat, 14 Apr 2012 17:25:28 +0000 (19:25 +0200)]
README: update udev requirements

12 years agobuild-sys: silence the xsltproc output
Kay Sievers [Sat, 14 Apr 2012 16:05:06 +0000 (18:05 +0200)]
build-sys: silence the xsltproc output

12 years agobuild-sys: add 'make doc-sync' target
Kay Sievers [Fri, 13 Apr 2012 21:50:52 +0000 (23:50 +0200)]
build-sys: add 'make doc-sync' target

12 years agoservice: place control command in subcgroup control/
Lennart Poettering [Fri, 13 Apr 2012 21:24:47 +0000 (23:24 +0200)]
service: place control command in subcgroup control/

Previously, we were brutally and onconditionally killing all processes
in a service's cgroup before starting the service anew, in order to
ensure that StartPre lines cannot be misused to spawn long-running
processes.

On logind-less systems this has the effect that restarting sshd
necessarily calls all active ssh sessions, which is usually not
desirable.

With this patch control processes for a service are placed in a
sub-cgroup called "control/". When starting a service anew we simply
kill this cgroup, but not the main cgroup, in order to avoid killing any
long-running non-control processes from previous runs.

https://bugzilla.redhat.com/show_bug.cgi?id=805942

12 years agoupdate .gitignore
Kay Sievers [Fri, 13 Apr 2012 19:57:39 +0000 (21:57 +0200)]
update .gitignore

12 years agopolkit: spawn agent in --fallback mode
Lennart Poettering [Fri, 13 Apr 2012 19:52:25 +0000 (21:52 +0200)]
polkit: spawn agent in --fallback mode

12 years agoupdate .gitignore
Kay Sievers [Fri, 13 Apr 2012 19:46:35 +0000 (21:46 +0200)]
update .gitignore

12 years agobuild-sys: add stub makefiles to all subdirs to ease development with emacs
Lennart Poettering [Fri, 13 Apr 2012 19:36:37 +0000 (21:36 +0200)]
build-sys: add stub makefiles to all subdirs to ease development with emacs

12 years agonspawn: add missing include lines
Lennart Poettering [Fri, 13 Apr 2012 19:33:45 +0000 (21:33 +0200)]
nspawn: add missing include lines

12 years agowatchdog: make watchdog dbus properties writable
Lennart Poettering [Fri, 13 Apr 2012 19:33:28 +0000 (21:33 +0200)]
watchdog: make watchdog dbus properties writable

12 years agodbus: automatically send out changed events for properties written to
Lennart Poettering [Fri, 13 Apr 2012 19:32:17 +0000 (21:32 +0200)]
dbus: automatically send out changed events for properties written to

12 years agoudev: gudev - silence introspection scanner warning
Kay Sievers [Fri, 13 Apr 2012 19:35:45 +0000 (21:35 +0200)]
udev: gudev - silence introspection scanner warning

<kay> walters: you happen to know how to silence this? gudev.h:24: Warning:
  GUdev: symbol='_GUDEV_INSIDE_GUDEV_H': Unknown namespace for symbol 'GUDEV_INSIDE_GUDEV_H'
<walters> kay, probably:
<walters> -#define _GUDEV_INSIDE_GUDEV_H 1
<walters> +#define _GUDEV_INSIDE_GUDEV_H
<walters> kay, if the scanner sees a define with a value it assumes it's a constant for public consumption

<walters> kay, patch in https://bugzilla.gnome.org/show_bug.cgi?id=674072 fwiw
<kay> walters: cool, thanks!
<kay> walters: your workaround removing the "1" works. nice!

12 years agodbus: expose whether we have a hardware watchdog on the bus
Lennart Poettering [Fri, 13 Apr 2012 17:45:53 +0000 (19:45 +0200)]
dbus: expose whether we have a hardware watchdog on the bus

12 years agounits: drop audit reference from description of utmp units since that is build-time...
Lennart Poettering [Fri, 13 Apr 2012 17:38:57 +0000 (19:38 +0200)]
units: drop audit reference from description of utmp units since that is build-time optional

12 years agounits: add CAP_MKNOD condition to the other two udev services too
Lennart Poettering [Fri, 13 Apr 2012 17:35:06 +0000 (19:35 +0200)]
units: add CAP_MKNOD condition to the other two udev services too

12 years agounit: signal explicitly if a condition failed in unit_start()
Lennart Poettering [Fri, 13 Apr 2012 17:04:38 +0000 (19:04 +0200)]
unit: signal explicitly if a condition failed in unit_start()

We shouldn't print a status message on the console if we skipped a unit
due to a condition. Hence make unit_start() return -ENOEXEC in such a
case which is mapped to JOB_SKIPPED which results in no console message.

12 years agoudev: move libudev, gudev to src/; move gudev/docs/, udev/docs/ to to docs/
Kay Sievers [Fri, 13 Apr 2012 16:24:39 +0000 (18:24 +0200)]
udev: move libudev, gudev to src/; move gudev/docs/, udev/docs/ to to docs/

12 years agologind: explicitly check for /dev/tty0
Lennart Poettering [Fri, 13 Apr 2012 15:54:33 +0000 (17:54 +0200)]
logind: explicitly check for /dev/tty0

12 years agounits: do binfmt magic only when /proc/sys is writable
Lennart Poettering [Fri, 13 Apr 2012 15:39:37 +0000 (17:39 +0200)]
units: do binfmt magic only when /proc/sys is writable

12 years agomain: unset some more env vars
Lennart Poettering [Fri, 13 Apr 2012 15:36:41 +0000 (17:36 +0200)]
main: unset some more env vars

12 years agoaudit: ignore if we get EPERM
Lennart Poettering [Fri, 13 Apr 2012 15:17:56 +0000 (17:17 +0200)]
audit: ignore if we get EPERM

if auditing access is not available, then don't complain about it, in
order to play nice with systems lacking CAP_SYS_AUDIT

12 years agoloopback: handle EPERM more gracefully
Lennart Poettering [Fri, 13 Apr 2012 15:10:21 +0000 (17:10 +0200)]
loopback: handle EPERM more gracefully

12 years agomanager: support systems lacking /dev/tty0
Lennart Poettering [Fri, 13 Apr 2012 14:53:49 +0000 (16:53 +0200)]
manager: support systems lacking /dev/tty0

12 years agonspawn: fake /dev/kmsg and /proc/kmsg as fifo
Lennart Poettering [Fri, 13 Apr 2012 14:51:33 +0000 (16:51 +0200)]
nspawn: fake /dev/kmsg and /proc/kmsg as fifo

12 years agokeymap: Add HP Compaq Presario CQ*
Martin Pitt [Wed, 28 Mar 2012 09:54:00 +0000 (11:54 +0200)]
keymap: Add HP Compaq Presario CQ*

https://launchpad.net/bugs/935804

12 years agokeymap: Add Dell XPS force-release quirk
Martin Pitt [Wed, 28 Mar 2012 09:44:19 +0000 (11:44 +0200)]
keymap: Add Dell XPS force-release quirk

https://launchpad.net/bugs/910911

12 years agoudev: unpack sysfs test tree only on 'make check'; fix test-udev binary location
Kay Sievers [Fri, 13 Apr 2012 13:57:13 +0000 (15:57 +0200)]
udev: unpack sysfs test tree only on 'make check'; fix test-udev binary location

12 years agoudev: keymap - move data files to root directory
Kay Sievers [Fri, 13 Apr 2012 13:38:15 +0000 (15:38 +0200)]
udev: keymap - move data files to root directory

12 years agoudev: fix a few issues detected by the llvm static analyzer
Kay Sievers [Fri, 13 Apr 2012 13:08:55 +0000 (15:08 +0200)]
udev: fix a few issues detected by the llvm static analyzer

12 years agofix a couple of things found with the llvm static analyzer
Lennart Poettering [Fri, 13 Apr 2012 11:58:50 +0000 (13:58 +0200)]
fix a couple of things found with the llvm static analyzer

12 years agobuild-sys: drop systemd- prefix from analyze dir
Lennart Poettering [Fri, 13 Apr 2012 11:34:09 +0000 (13:34 +0200)]
build-sys: drop systemd- prefix from analyze dir

12 years agobuild-sys: execute test programs with 'make check'
Kay Sievers [Fri, 13 Apr 2012 11:21:20 +0000 (13:21 +0200)]
build-sys: execute test programs with 'make check'

12 years agoudev: use native instead of custom --disable-introspection logic
Kay Sievers [Fri, 13 Apr 2012 10:49:51 +0000 (12:49 +0200)]
udev: use native instead of custom --disable-introspection logic

12 years agoudev: link some systemd parts statically to limit shared libararies dependencies...
Kay Sievers [Fri, 13 Apr 2012 10:34:35 +0000 (12:34 +0200)]
udev: link some systemd parts statically to limit shared libararies dependencies for standalone use

12 years agoupdate mailmap
Kay Sievers [Fri, 13 Apr 2012 01:47:52 +0000 (03:47 +0200)]
update mailmap

12 years agobuild-sys: move systemd-analyze into its own subdir
Lennart Poettering [Thu, 12 Apr 2012 18:25:16 +0000 (20:25 +0200)]
build-sys: move systemd-analyze into its own subdir

12 years agoudev: properly hook up all tests to 'make check'
Kay Sievers [Thu, 12 Apr 2012 17:25:41 +0000 (19:25 +0200)]
udev: properly hook up all tests to 'make check'

12 years agobuild-sys: use check_PROGRAMS for test-*.c
Kay Sievers [Thu, 12 Apr 2012 17:00:28 +0000 (19:00 +0200)]
build-sys: use check_PROGRAMS for test-*.c

12 years agobuild-sys: remove $(DBUS_LIBS), libsystemd-dbus.la pulls it in
Kay Sievers [Thu, 12 Apr 2012 16:29:20 +0000 (18:29 +0200)]
build-sys: remove $(DBUS_LIBS), libsystemd-dbus.la pulls it in

12 years agopam_systemd: add dbus.la
Kay Sievers [Thu, 12 Apr 2012 16:05:12 +0000 (18:05 +0200)]
pam_systemd: add dbus.la

12 years agobuild-sys: move src/linux/ to src/shared/linux
Lennart Poettering [Thu, 12 Apr 2012 16:27:35 +0000 (18:27 +0200)]
build-sys: move src/linux/ to src/shared/linux

12 years agobuild-sys: create top-level directory for bash completion
Lennart Poettering [Thu, 12 Apr 2012 16:26:30 +0000 (18:26 +0200)]
build-sys: create top-level directory for bash completion