chiark / gitweb /
elogind.git
10 years agocondition, man: Add support for ConditionSecurity=apparmor
Nirbheek Chauhan [Tue, 9 Apr 2013 13:00:24 +0000 (18:30 +0530)]
condition, man: Add support for ConditionSecurity=apparmor

Checking for the apparmor directory in securityfs means the apparmor module is
loaded and enabled, and hence should suffice as a test.

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

10 years agoquota: use QUOTACHECK path correctly as tested in configure.ac
Lennart Poettering [Mon, 6 May 2013 19:15:38 +0000 (21:15 +0200)]
quota: use QUOTACHECK path correctly as tested in configure.ac

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

10 years agonspawn: explain that we look for /etc/os-release in the container directory
Lennart Poettering [Mon, 6 May 2013 19:04:31 +0000 (21:04 +0200)]
nspawn: explain that we look for /etc/os-release in the container directory

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

10 years agohwdb: update
Kay Sievers [Mon, 6 May 2013 15:39:07 +0000 (17:39 +0200)]
hwdb: update

10 years agoTODO: update
Kay Sievers [Mon, 6 May 2013 15:38:27 +0000 (17:38 +0200)]
TODO: update

10 years agokernel-install: add default install scripts
Harald Hoyer [Tue, 30 Apr 2013 16:01:47 +0000 (18:01 +0200)]
kernel-install: add default install scripts

Do the depmod in the kernel-install hooks, so hooks can produce/install
kernel modules and be part of the depmod.

Also move the basic boot loader entry creation and removal to a
plugin script.

If PRETTY_NAME is not defined in /etc/os-release, fallback to
PRETTY_NAME="Linux $KERNEL_VERSION".

Add documentation for everything in the man page.

10 years agokeymap/findkeyboards: avoid throwaway attribute-walk
Ville Skyttä [Fri, 3 May 2013 20:43:12 +0000 (23:43 +0300)]
keymap/findkeyboards: avoid throwaway attribute-walk

10 years agoSpelling fixes
Ville Skyttä [Fri, 3 May 2013 20:43:11 +0000 (23:43 +0300)]
Spelling fixes

10 years agoman: provide "permalinks" to sections and terms
Zbigniew Jędrzejewski-Szmek [Sat, 4 May 2013 00:25:57 +0000 (20:25 -0400)]
man: provide "permalinks" to sections and terms

So no one needs to say "go to fd.o/software/systemd/man, open page X,
then scroll down to section 3, and look for ..." anymore.

10 years agosystemctl: use GREEDY_REALLOC in one more place
Zbigniew Jędrzejewski-Szmek [Fri, 3 May 2013 23:56:54 +0000 (19:56 -0400)]
systemctl: use GREEDY_REALLOC in one more place

10 years agojournal: as a µ-opt, use sizeof instead of strlen
Zbigniew Jędrzejewski-Szmek [Fri, 3 May 2013 23:56:18 +0000 (19:56 -0400)]
journal: as a µ-opt, use sizeof instead of strlen

10 years agocgroup: when escaping a cgroup object name, also escape names that start with a dot
Lennart Poettering [Fri, 3 May 2013 17:02:24 +0000 (19:02 +0200)]
cgroup: when escaping a cgroup object name, also escape names that start with a dot

10 years agoupdate TODO
Lennart Poettering [Fri, 3 May 2013 16:58:44 +0000 (18:58 +0200)]
update TODO

10 years agosystemctl: add --plain option to list-dependencies
Lukas Nykryn [Fri, 3 May 2013 10:52:19 +0000 (12:52 +0200)]
systemctl: add --plain option to list-dependencies

This patch adds more script-friendly output for list-dependencies.

10 years agojournal: Set the default keep free value to 15% (up from 5%)
Colin Guthrie [Tue, 30 Apr 2013 10:48:11 +0000 (11:48 +0100)]
journal: Set the default keep free value to 15% (up from 5%)

As some SSDs are still seeing performance degredation when
reaching 85% usage the default value of 5% seems a little low.

Set this to 15% by default.

10 years agocore: bump simultaneous bus connection limit to 512
Lennart Poettering [Fri, 3 May 2013 14:32:41 +0000 (16:32 +0200)]
core: bump simultaneous bus connection limit to 512

10 years agocryptsetup: downgrade world-writable warning again
Lennart Poettering [Fri, 3 May 2013 13:25:44 +0000 (15:25 +0200)]
cryptsetup: downgrade world-writable warning again

This semi-reverts 8973790ee6f62132b1b57de15c4edaef2c097004.

10 years agoupdate TODO
Lennart Poettering [Fri, 3 May 2013 12:19:19 +0000 (14:19 +0200)]
update TODO

10 years agoman: add various filenames to the index
Zbigniew Jędrzejewski-Szmek [Fri, 3 May 2013 04:55:20 +0000 (00:55 -0400)]
man: add various filenames to the index

Everything which is an absolute filename marked with <filename></filename>
lands in the index, unless noindex= attribute is present. Should make
it easier for people to find stuff when they are looking at a file on
disk.

Various formatting errors in manpages are fixed, kernel-install(1) is
restored to formatting sanity.

10 years agobuild-sys: tell rsync no to tranfer times and permissions
Zbigniew Jędrzejewski-Szmek [Fri, 3 May 2013 03:54:00 +0000 (23:54 -0400)]
build-sys: tell rsync no to tranfer times and permissions

When rsyncing to fd.o, rsync would fail on symlinks in man/.
We don't care about the times too much anyway. rsync will
set times to "now", which is fine, since modification times
don't matter much outside of each uploader's machine anyway.

The point is to complete all steps of the transfer, so Python
documentation is properly updated.

10 years agoman: link to socket activation blog entries
Zbigniew Jędrzejewski-Szmek [Fri, 3 May 2013 03:35:45 +0000 (23:35 -0400)]
man: link to socket activation blog entries

10 years agobuild-sys: "link" python _reader and pam_systemd against libsd-daemon-internal
Zbigniew Jędrzejewski-Szmek [Thu, 2 May 2013 02:30:54 +0000 (22:30 -0400)]
build-sys: "link" python _reader and pam_systemd against libsd-daemon-internal

The same old story as d3b9e0ff: those two use libsystemd-shared, and
in turn, some functions in libsystemd-shared use libsystemd-daemon.
The fact that *those* functions are used neither by the python modules
in question nor pam_systemd isn't always enough. Currently, I'm seeing
linking failures with -flto. The result of adding
libsystemd-daemon-internal to the list of linked libraries should be
harmless, with no change in size or final link requirements.

10 years agotime-dst: use _cleanup_
Zbigniew Jędrzejewski-Szmek [Fri, 3 May 2013 02:51:50 +0000 (22:51 -0400)]
time-dst: use _cleanup_

10 years agoAdd __attribute__((const, pure, format)) in various places
Zbigniew Jędrzejewski-Szmek [Fri, 3 May 2013 02:51:50 +0000 (22:51 -0400)]
Add __attribute__((const, pure, format)) in various places

I'm assuming that it's fine if a _const_ or _pure_ function
calls assert. It is assumed that the assert won't trigger,
and even if it does, it can only trigger on the first call
with a given set of parameters, and we don't care if the
compiler moves the order of calls.

10 years agohashmap.h: fix coding style issue
Daniel Buch [Fri, 26 Apr 2013 16:40:08 +0000 (18:40 +0200)]
hashmap.h: fix coding style issue

10 years agotest-hashmap.c: add unit-test for hashmap
Daniel Buch [Thu, 2 May 2013 21:50:49 +0000 (23:50 +0200)]
test-hashmap.c: add unit-test for hashmap

10 years agokdbus: update kdbus.h from upstream
Kay Sievers [Thu, 2 May 2013 17:01:49 +0000 (19:01 +0200)]
kdbus: update kdbus.h from upstream

10 years agobootchart: cleanup unused structs and globals
Auke Kok [Thu, 2 May 2013 16:40:52 +0000 (09:40 -0700)]
bootchart: cleanup unused structs and globals

10 years agoDynamically allocate bootchart logs
Nathaniel Chen [Wed, 24 Apr 2013 21:56:15 +0000 (14:56 -0700)]
Dynamically allocate bootchart logs

Instead of storing bootchart sample data in arrays, this patch moves
storage to linked lists so that there is no more limit on samples.

This patch also fixes parsing of /proc/<pid>/smaps in kernels > 3.7.

10 years agoAdd help option to bootchart man page
Nathaniel Chen [Thu, 2 May 2013 16:21:23 +0000 (09:21 -0700)]
Add help option to bootchart man page

Bootchart has a help option. For the sake of consistency, this patch
adds it to the man page.

Also, the TODO is updated. Bootcharts were added to the journal in
commit c4d58b0.

10 years agokdbus: update kdbus.h from upstream
Kay Sievers [Thu, 2 May 2013 15:57:49 +0000 (17:57 +0200)]
kdbus: update kdbus.h from upstream

10 years agonspawn: inherit the exit status of container
Dave Reisner [Thu, 2 May 2013 14:39:53 +0000 (10:39 -0400)]
nspawn: inherit the exit status of container

If we get as far as successfully starting the container, nspawn should
inherit the exit status of the child container process as its own.

10 years agoAnnotate some functions as _const_
Cristian Rodríguez [Wed, 1 May 2013 02:07:33 +0000 (22:07 -0400)]
Annotate some functions as _const_

hexchar,unhexchar,octchar,unoctchar,decchar,undecchar are
all const functions.

10 years agodbus-execute: fix introspection
Ronny Chevalier [Wed, 24 Apr 2013 13:17:19 +0000 (15:17 +0200)]
dbus-execute: fix introspection

Add missing property and remove duplicate properties already in
src/core/dbus-kill.h

10 years agocgls: add --machine/-M
Zbigniew Jędrzejewski-Szmek [Tue, 30 Apr 2013 04:35:38 +0000 (00:35 -0400)]
cgls: add --machine/-M

cg_get_machine_path is modified to include the escaped machine name
+ ".nspawn" if the machine argument is nonnull.

10 years agozsh_completion: fix udevadm monitor flags
Daniel Wallace [Tue, 30 Apr 2013 23:42:22 +0000 (18:42 -0500)]
zsh_completion: fix udevadm monitor flags

The brackets in the _arguments description of udevadm monitor need to be
escaped.

10 years agozsh-completion: add s-a critical-chain
Zbigniew Jędrzejewski-Szmek [Tue, 30 Apr 2013 02:02:57 +0000 (22:02 -0400)]
zsh-completion: add s-a critical-chain

10 years agoutil: Add _sentinel_ to strextend()
Colin Walters [Tue, 30 Apr 2013 17:11:49 +0000 (13:11 -0400)]
util: Add _sentinel_ to strextend()

Since it must be NULL terminated.

10 years agokdbus: update kdbus.h from upstream
Kay Sievers [Tue, 30 Apr 2013 17:15:35 +0000 (19:15 +0200)]
kdbus: update kdbus.h from upstream

10 years agohwdb: update
Kay Sievers [Tue, 30 Apr 2013 17:13:54 +0000 (19:13 +0200)]
hwdb: update

10 years agoupdate TODO
Lennart Poettering [Tue, 30 Apr 2013 11:35:51 +0000 (08:35 -0300)]
update TODO

10 years agounits: add an easy-to-use unit template file systemd-nspawn@.service for running...
Lennart Poettering [Tue, 30 Apr 2013 00:11:37 +0000 (21:11 -0300)]
units: add an easy-to-use unit template file systemd-nspawn@.service for running containers as system services

10 years agoman: improve documentation for specifiers
Lennart Poettering [Mon, 29 Apr 2013 23:55:34 +0000 (20:55 -0300)]
man: improve documentation for specifiers

10 years agobuild-sys: add makefile stub link to nss-myhostname/
Lennart Poettering [Mon, 29 Apr 2013 23:39:46 +0000 (20:39 -0300)]
build-sys: add makefile stub link to nss-myhostname/

10 years agoman: we need to be more careful with the unit search paths we document
Lennart Poettering [Mon, 29 Apr 2013 23:36:49 +0000 (20:36 -0300)]
man: we need to be more careful with the unit search paths we document

We generally document the suggested paths, not the paths possible in
weird, non-standard setups. We do this in order to not confuse
administrators/users unnecessarily and to push people to install things
into the same directories on all distributions.

We are PID 1 after all, the really basic building block of the OS.
Unlike for an app there's very little benefit in being entirely
relocatable.

10 years agocgroup: make cg_pid_get_path() work properly for co-mounted controllers and normalize...
Lennart Poettering [Mon, 29 Apr 2013 23:22:36 +0000 (20:22 -0300)]
cgroup: make cg_pid_get_path() work properly for co-mounted controllers and normalized named hierarchies

10 years agocryptsetup: warn if keyfiles are world-readable
Lennart Poettering [Mon, 29 Apr 2013 22:57:29 +0000 (19:57 -0300)]
cryptsetup: warn if keyfiles are world-readable

10 years agocryptsetup: warn if /etc/crypttab is world-readable
Lennart Poettering [Mon, 29 Apr 2013 22:48:03 +0000 (19:48 -0300)]
cryptsetup: warn if /etc/crypttab is world-readable

10 years agocgroup: do not allow manipulating the cgroup path of units within the systemd:/system...
Lennart Poettering [Mon, 29 Apr 2013 22:15:30 +0000 (19:15 -0300)]
cgroup: do not allow manipulating the cgroup path of units within the systemd:/system subtree

10 years agoid128: when taking user input for a 128bit ID, validate syntax
Lennart Poettering [Mon, 29 Apr 2013 21:39:12 +0000 (18:39 -0300)]
id128: when taking user input for a 128bit ID, validate syntax

Also, always accept both our simple hexdump syntax and UUID syntax.

10 years agokernel-install: Clean up
Mantas Mikulėnas [Thu, 25 Apr 2013 17:59:44 +0000 (20:59 +0300)]
kernel-install: Clean up

- Consistent use of $VAR vs ${VAR}
- Consistent use of && vs 'if'
- Add error checking to some places
- Consistent error messages ("Can't" vs "Cannot", etc.)
- Function declarations at the top
- Miscellaneous adjustments

10 years agoman: clarify what Restart= means
Zbigniew Jędrzejewski-Szmek [Mon, 29 Apr 2013 23:46:19 +0000 (19:46 -0400)]
man: clarify what Restart= means

Related to https://bugzilla.redhat.com/show_bug.cgi?id=957135.

10 years agonspawn: add -M option to optstring
Evangelos Foutras [Mon, 29 Apr 2013 10:12:28 +0000 (13:12 +0300)]
nspawn: add -M option to optstring

This was missed in commit 7027ff61a34a12487712b382a061c654acc3a679 and
means that the --machine option would work but not its shorthand, -M.

10 years agoMakefile-man.am: update
Kay Sievers [Fri, 26 Apr 2013 22:01:32 +0000 (00:01 +0200)]
Makefile-man.am: update

10 years agosystemd-analyse: add "critical-chain" command
Harald Hoyer [Tue, 23 Apr 2013 09:11:10 +0000 (11:11 +0200)]
systemd-analyse: add "critical-chain" command

"critical-chain" prints a tree of the critical chain of units

$ ./systemd-analyze critical-chain
graphical.target @1.226s
└─multi-user.target @1.226s
  └─nfs-lock.service @961ms +265ms
    └─rpcbind.service @958ms +1ms
      └─network.target @957ms
        └─NetworkManager.service @434ms +522ms
          └─basic.target @428ms
            └─sockets.target @428ms
              └─dbus.socket @428ms
                └─sysinit.target @427ms
                  └─systemd-tmpfiles-setup.service @411ms +15ms
                    └─local-fs.target @410ms
                      └─boot-efi.automount @410ms
                        └─boot.mount @397ms +9ms
                          └─local-fs-pre.target @192ms
                            └─systemd-udevd.service @187ms +5ms
                              └─systemd-udevd-control.socket @140ms
                                └─-.mount

With the "--fuzz=<ms>" parameter one can display more units around
the critical units.

$ ./systemd-analyze --fuzz=10ms critical-chain
└─multi-user.target @1.226s
  └─nfs-lock.service @961ms +265ms
    ├─rpcbind.service @958ms +1ms
    │ └─network.target @957ms
    │   └─NetworkManager.service @434ms +522ms
    │     ├─basic.target @428ms
    │     │ ├─sockets.target @428ms
    │     │ │ ├─dbus.socket @428ms
    │     │ │ │ └─sysinit.target @427ms
    │     │ │ │   ├─systemd-tmpfiles-setup.service @411ms +15ms
    │     │ │ │   │ └─local-fs.target @410ms
    │     │ │ │   │   └─boot-efi.automount @410ms
    │     │ │ │   │     └─boot.mount @397ms +9ms
    │     │ │ │   │       └─local-fs-pre.target @192ms
    │     │ │ │   │         └─systemd-udevd.service @187ms +5ms
    │     │ │ │   │           ├─systemd-udevd-control.socket @140ms
    │     │ │ │   │           │ └─-.mount
    │     │ │ │   │           └─systemd-udevd-kernel.socket @140ms
    │     │ │ │   └─swap.target @421ms
    │     │ │ │     └─dev-disk-by\x2duuid-....swap @414ms +6ms
    │     │ │ │       └─systemd-journald.socket
    │     │ │ ├─rpcbind.socket @428ms
    │     │ │ └─cups.socket @428ms
    │     │ ├─paths.target @428ms
    │     │ │ └─cups.path @428ms
    │     │ ├─timers.target @427ms
    │     │ │ └─systemd-tmpfiles-clean.timer @427ms
    │     │ └─sysinit.target @427ms
    │     │   └─...
    │     └─dbus.socket @428ms
    │       └─...
    └─network.target @957ms
      └─...

10 years agodbus-manager.c: log error, why switch-root is refused
Harald Hoyer [Thu, 25 Apr 2013 08:35:14 +0000 (10:35 +0200)]
dbus-manager.c: log error, why switch-root is refused

10 years agocoredump: use realloc() loop instead of malloc(768M)
Colin Walters [Wed, 24 Apr 2013 22:19:04 +0000 (18:19 -0400)]
coredump: use realloc() loop instead of malloc(768M)

I typically run VMs with 1024MiB allocated; systemd is unable to write
coredumps in this scenario at all because the default kernel
configuration will only overcommit 50% of available RAM.

Avoid this failure by using a realloc() loop.

See: http://lists.freedesktop.org/archives/systemd-devel/2013-April/010709.html

10 years agobuild-sys: add --with-debug-shell=PATH
Cristian Rodríguez [Thu, 25 Apr 2013 00:51:23 +0000 (21:51 -0300)]
build-sys: add --with-debug-shell=PATH

Distributions may have selinux but not sushell or might
need to set a custom debug shell.

Defaults to /sbin/sushell if selinux is enabled, /bin/sh if not.

[zj: Renamed --with-debugshelltty to --with-debug-tty, and
     added a line in output showing DEBUGSHELL and DEBUGTTY.
     I figure that debug shell is pretty useful, and I hope
     the extra line in configure status will draw attention
     to it.]

10 years agocore: remove duplicate MESSAGE= from log message
Mirco Tischler [Thu, 25 Apr 2013 13:14:57 +0000 (15:14 +0200)]
core: remove duplicate MESSAGE= from log message

This was needed with log_struct_unit() but log_notice_unit() adds it
anyway.

10 years agoUse attribute(unused) in PROTECT_ERRNO
Zbigniew Jędrzejewski-Szmek [Fri, 26 Apr 2013 00:53:29 +0000 (20:53 -0400)]
Use attribute(unused) in PROTECT_ERRNO

clang emits warnings about unused attribute _saved_errno_, which drown
out other—potentially useful—warnings. gcc documentation is not exactly
verbose about the effects of __attribute__((unused)) on variables, but
let's assume that it works if the unit test passes.

10 years agobus: avoid gcc warning about casting a pointer to int of different size
Zbigniew Jędrzejewski-Szmek [Fri, 26 Apr 2013 00:31:49 +0000 (20:31 -0400)]
bus: avoid gcc warning about casting a pointer to int of different size

10 years agoreadahead: fix format string issue
Zbigniew Jędrzejewski-Szmek [Fri, 26 Apr 2013 00:10:57 +0000 (20:10 -0400)]
readahead: fix format string issue

(struct stat).st is off_t, which usually is a long, or a long long.
There's no good format string modifier for it, so use a cast.

10 years agoAdd printf attributes in exported headers
Zbigniew Jędrzejewski-Szmek [Fri, 26 Apr 2013 01:31:05 +0000 (21:31 -0400)]
Add printf attributes in exported headers

gcc (and other compilers) sometimes generate spurious warnings, and
thus users of public headers must be able to disable warnings.

Printf format attributes can be disabled by setting
    #define _sd_printf_attr_
before including the header file.

Also, add similar logic for sentinel attribute:
    #define _sd_sentinel_attr_
before including the header file disables the attribute.

10 years agoAdd some extra __attribute__ ((format)) s
Cristian Rodríguez [Tue, 2 Apr 2013 07:02:58 +0000 (04:02 -0300)]
Add some extra __attribute__ ((format)) s

10 years agoMake up for attribute malloc with alloc_size
Zbigniew Jędrzejewski-Szmek [Thu, 25 Apr 2013 23:59:35 +0000 (19:59 -0400)]
Make up for attribute malloc with alloc_size

It is imperative that open source code be well attributed.
Sprinkle attribute((alloc_size)) here and there, telling gcc
how much memory we are actually allocating.

10 years agoRemove erroneous attribute((malloc)) annotations
Zbigniew Jędrzejewski-Szmek [Thu, 25 Apr 2013 23:47:43 +0000 (19:47 -0400)]
Remove erroneous attribute((malloc)) annotations

According to gcc documentation, returned pointer "cannot alias any
other pointer valid when the function returns" and "the memory has
undefined content". This second part is (hopefully) untrue for all
those functions.

10 years agosystemd-python: attach fields to JournalHandler, add SYSLOG_IDENTIFIER
Zbigniew Jędrzejewski-Szmek [Tue, 23 Apr 2013 02:07:18 +0000 (22:07 -0400)]
systemd-python: attach fields to JournalHandler, add SYSLOG_IDENTIFIER

Arbitrary fields can be attached at the level of the handler,
and they'll be sent with all messages from this handler.

This facility is used to attach SYSLOG_IDENTIFIER to all messages,
since otherwise journald attaches SYSLOG_IDENTIFIER=python or
something similar, which is completely useless.

10 years agounit: rework stop pending logic
Lennart Poettering [Fri, 26 Apr 2013 00:57:41 +0000 (21:57 -0300)]
unit: rework stop pending logic

When a trigger unit wants to know if a stop is queued for it, we should
just check precisely that and do not check whether it is actually
stopped already. This is because we use these checks usually from state
change calls where the state variables are not updated yet.

This change splits unit_pending_inactive() into two calls
unit_inactive_or_pending() and unit_stop_pending(). The former checks
state and pending jobs, the latter only pending jobs.

10 years agoalways unconditionally create /dev/rtc and use it internally
Kay Sievers [Thu, 25 Apr 2013 00:02:40 +0000 (02:02 +0200)]
always unconditionally create /dev/rtc and use it internally

Partially revert 2b3c81b02fa5dd47b19558c7684e113f36a48486, which
tried to avoid inconsistent rules about when and how to create the
/dev/rtc symlink.

Instead of conditionally or not creating the /dev/rtc link at all,
now always create it with additional and more reliable udev rules.

First try to find the "system rtc" with the hctosys flag, if this
is not found, fall back to create the link for /dev/rtc0.

Our code now never actively searches for the "system rtc" it can
always use /dev/rtc.

10 years agosystemd: record the timestamps as early as possible
Harald Hoyer [Wed, 24 Apr 2013 15:15:47 +0000 (17:15 +0200)]
systemd: record the timestamps as early as possible

The time for systemd initialization and selinux policy loading
is accounted to the initrd or the kernel, which is wrong.

Instead of:

Startup finished in 5.559s (firmware) + 36ms (loader) + 665ms (kernel) +
975ms (initrd) + 1.410s (userspace) = 8.647s

the more correct output is:

Startup finished in 5.559s (firmware) + 36ms (loader) + 665ms (kernel) +
475ms (initrd) + 1.910s (userspace) = 8.647s

10 years agoutil: rework safe_atod() to be locale-independent
Lennart Poettering [Thu, 25 Apr 2013 03:04:02 +0000 (00:04 -0300)]
util: rework safe_atod() to be locale-independent

This adds some syntactic sugar with a macro RUN_WITH_LOCALE() that reset
the thread-specific locale temporarily.

10 years agoconf-parser: restrict .include usage
Lennart Poettering [Wed, 24 Apr 2013 22:53:16 +0000 (19:53 -0300)]
conf-parser: restrict .include usage

Disallow recursive .include, and make it unavailable in anything but
unit files.

10 years agokdbus: update kdbus.h from upstream
Kay Sievers [Thu, 25 Apr 2013 00:18:32 +0000 (02:18 +0200)]
kdbus: update kdbus.h from upstream

10 years agojournal: remove build warning when SELinux is disabled
Greg Kroah-Hartman [Wed, 24 Apr 2013 20:04:27 +0000 (13:04 -0700)]
journal: remove build warning when SELinux is disabled

A small patch to remove a build warnining when SELinux is disabled.

10 years agocgroup: always validate cgroup controller names
Lennart Poettering [Wed, 24 Apr 2013 22:01:29 +0000 (19:01 -0300)]
cgroup: always validate cgroup controller names

Let's better be safe than sorry.

10 years agologin: allow watching virtual machines with sd_get_machine_names()
Lennart Poettering [Wed, 24 Apr 2013 20:54:55 +0000 (17:54 -0300)]
login: allow watching virtual machines with sd_get_machine_names()

10 years agologin: add new call sd_get_machine_names() to get a list of current virtual machines...
Lennart Poettering [Wed, 24 Apr 2013 20:54:17 +0000 (17:54 -0300)]
login: add new call sd_get_machine_names() to get a list of current virtual machines and containers

10 years agonss-myhostname: resolve 'localhost' so that /etc/hosts becomes optional
Lennart Poettering [Wed, 24 Apr 2013 20:18:01 +0000 (17:18 -0300)]
nss-myhostname: resolve 'localhost' so that /etc/hosts becomes optional

This makes sure nss-myhostname not only resolves the local host name to
127.0.0.2/::1 but also the host name 'localhost: to 127.0.0.1/::1. This
makes installation of /etc/passwd optional, as it usually only includes
a mapping for 'localhost'.

This change also resolves ::1 to the local hostname (as before), but
also lists 'localhost' as an alias. This means look-ups are now fully
reversible, even though they are 1:n mappings.

Finally, the module will no longer erroneously claim that local IP
addresses which aren't on the loopback device were.

10 years agofileio: unify how we chop off whitespace from key and value in parse_env_file_internal()
Lennart Poettering [Wed, 24 Apr 2013 18:44:28 +0000 (15:44 -0300)]
fileio: unify how we chop off whitespace from key and value in parse_env_file_internal()

10 years agologind: don't busy loop if a job is still running but the delay timeout expires
Lennart Poettering [Wed, 24 Apr 2013 18:23:01 +0000 (15:23 -0300)]
logind: don't busy loop if a job is still running but the delay timeout expires

10 years agoinhbit: show comm field of inhibiting processes
Lennart Poettering [Wed, 24 Apr 2013 15:56:47 +0000 (12:56 -0300)]
inhbit: show comm field of inhibiting processes

10 years agobus: add monitoring facility to busctl
Lennart Poettering [Wed, 24 Apr 2013 15:56:28 +0000 (12:56 -0300)]
bus: add monitoring facility to busctl

10 years agodo not create /dev/rtc symlink, let systemd search for it if needed
Kay Sievers [Wed, 24 Apr 2013 17:12:44 +0000 (19:12 +0200)]
do not create /dev/rtc symlink, let systemd search for it if needed

The export of the RTCs hctosys flag is uneccesary, the kernel takes care
of the persistemt clock management itself, without any need for:
  CONFIG_RTC_HCTOSYS=y
  CONFIG_RTC_HCTOSYS_DEVICE="rtc0"

"Chaotic hardware platforms" without native kernel persistent clock
support will find the proper RTC with the logic rtc_open() without
the need for a custom symlink.

10 years agoadd bash completion for systemd-analyze
Harald Hoyer [Wed, 24 Apr 2013 14:44:44 +0000 (16:44 +0200)]
add bash completion for systemd-analyze

10 years agologind: properly enumerate user/session cgroups under their new suffixed names
Lennart Poettering [Wed, 24 Apr 2013 13:30:40 +0000 (10:30 -0300)]
logind: properly enumerate user/session cgroups under their new suffixed names

10 years agosystemctl: show reverse dependencies or before/after ordering
Zbigniew Jędrzejewski-Szmek [Wed, 24 Apr 2013 03:49:46 +0000 (23:49 -0400)]
systemctl: show reverse dependencies or before/after ordering

Also update completion scripts a bit.

10 years agoSmall cleanup
Zbigniew Jędrzejewski-Szmek [Tue, 23 Apr 2013 12:28:10 +0000 (08:28 -0400)]
Small cleanup

10 years agoreadahead: be more verbose about creation failures
Zbigniew Jędrzejewski-Szmek [Tue, 23 Apr 2013 23:05:43 +0000 (19:05 -0400)]
readahead: be more verbose about creation failures

systemd-readahead reports "Failed to create shared memory segment:
No such file or directory", but it's unclear how it can happen. Be
more verbose about failures.

10 years agoAdd set_consume which always takes ownership
Zbigniew Jędrzejewski-Szmek [Tue, 23 Apr 2013 03:12:15 +0000 (23:12 -0400)]
Add set_consume which always takes ownership

Freeing in error path is the common pattern with set_put().

10 years agoStandarize on one spelling of symlink error message
Zbigniew Jędrzejewski-Szmek [Tue, 23 Apr 2013 00:51:29 +0000 (20:51 -0400)]
Standarize on one spelling of symlink error message

It's polite to print the name of the link that wasn't created,
and it makes little sense to print the target.

10 years agotest: make it easier to override kernel version
Zbigniew Jędrzejewski-Szmek [Tue, 23 Apr 2013 00:39:40 +0000 (20:39 -0400)]
test: make it easier to override kernel version

10 years agosystemd: fall back to mounting /sys/fs/cgroup sans xattr
Zbigniew Jędrzejewski-Szmek [Tue, 23 Apr 2013 00:39:03 +0000 (20:39 -0400)]
systemd: fall back to mounting /sys/fs/cgroup sans xattr

xattrs on cgroup fs were added back in v3.6-rc3-3-g03b1cde. But we
support kernels >= 2.6.39, and we should also support kernels compiled
w/o xattr support, even if systemd is compiled with xattr support.
Fall back to mounting without xattr support.

Tested-by: Colin Walters <walters@verbum.org>
10 years agokdbus: update kdbus.h from upstream
Kay Sievers [Wed, 24 Apr 2013 03:19:50 +0000 (05:19 +0200)]
kdbus: update kdbus.h from upstream

10 years agotimer: make sure we restart timers even if units are still running or if one of their...
Lennart Poettering [Tue, 23 Apr 2013 20:42:31 +0000 (17:42 -0300)]
timer: make sure we restart timers even if units are still running or if one of their conditions fails

10 years agoupdate TODO
Lennart Poettering [Tue, 23 Apr 2013 18:55:41 +0000 (15:55 -0300)]
update TODO

10 years agounit: rework trigger dependency logic
Lennart Poettering [Tue, 23 Apr 2013 18:53:16 +0000 (15:53 -0300)]
unit: rework trigger dependency logic

Instead of having explicit type-specific callbacks that inform the
triggering unit when a triggered unit changes state, make this generic
so that state changes are forwarded betwee any triggered and triggering
unit.

Also, get rid of UnitRef references from automount, timer, path units,
to the units they trigger and rely exclsuively on UNIT_TRIGGER type
dendencies.

10 years agounits: update user@.service to reflect new user cgroup paths
Lennart Poettering [Tue, 23 Apr 2013 14:21:14 +0000 (11:21 -0300)]
units: update user@.service to reflect new user cgroup paths

10 years agobus: add cal to determine machine id of an owner of a service
Lennart Poettering [Tue, 23 Apr 2013 14:18:17 +0000 (11:18 -0300)]
bus: add cal to determine machine id of an owner of a service

10 years agoman: link systemd-tmpfiles-setup-dev.service
Umut Tezduyar [Tue, 23 Apr 2013 07:56:32 +0000 (09:56 +0200)]
man: link systemd-tmpfiles-setup-dev.service

10 years agobus: parse capability kdbus meta data of messages
Lennart Poettering [Tue, 23 Apr 2013 03:14:30 +0000 (00:14 -0300)]
bus: parse capability kdbus meta data of messages