platform/upstream/systemd.git
13 years agobuild-sys: make distcheck work
Lennart Poettering [Mon, 1 Aug 2011 15:09:38 +0000 (17:09 +0200)]
build-sys: make distcheck work

13 years agohashmap: speed up hashmap allocations by introducing an allocation cache
Lennart Poettering [Mon, 1 Aug 2011 14:50:55 +0000 (16:50 +0200)]
hashmap: speed up hashmap allocations by introducing an allocation cache

13 years agomissing: define gettid()
Lennart Poettering [Mon, 1 Aug 2011 03:06:15 +0000 (05:06 +0200)]
missing: define gettid()

13 years agoutil: place a couple of _likely_ around cache TLS vars
Lennart Poettering [Mon, 1 Aug 2011 03:05:59 +0000 (05:05 +0200)]
util: place a couple of _likely_ around cache TLS vars

13 years agoutil: add is_main_thread() call
Lennart Poettering [Mon, 1 Aug 2011 03:05:12 +0000 (05:05 +0200)]
util: add is_main_thread() call

13 years agoutil: more join() optimizations
Lennart Poettering [Mon, 1 Aug 2011 00:45:51 +0000 (02:45 +0200)]
util: more join() optimizations

13 years agoutil: use join() instead of asprintf() as an optimization
Lennart Poettering [Mon, 1 Aug 2011 00:39:22 +0000 (02:39 +0200)]
util: use join() instead of asprintf() as an optimization

13 years agoutil: various optimizations, using join()
Lennart Poettering [Sun, 31 Jul 2011 23:55:31 +0000 (01:55 +0200)]
util: various optimizations, using join()

13 years agoutil: introduce join() to speed up simple string concatenations
Lennart Poettering [Sun, 31 Jul 2011 23:28:01 +0000 (01:28 +0200)]
util: introduce join() to speed up simple string concatenations

13 years agoutil: optimize strstrip() a bit
Lennart Poettering [Sun, 31 Jul 2011 23:18:33 +0000 (01:18 +0200)]
util: optimize strstrip() a bit

13 years agoconf-parser: properly handle known but not parsed assignments
Lennart Poettering [Sun, 31 Jul 2011 23:18:14 +0000 (01:18 +0200)]
conf-parser: properly handle known but not parsed assignments

13 years agoload-fragment: speed up parsing by using a perfect hash table with configuration...
Lennart Poettering [Sun, 31 Jul 2011 22:43:05 +0000 (00:43 +0200)]
load-fragment: speed up parsing by using a perfect hash table with configuration settings built by gperf

13 years agosystemctl: fix parsing of LoadError property for systemctl show
Lennart Poettering [Sun, 31 Jul 2011 16:28:33 +0000 (18:28 +0200)]
systemctl: fix parsing of LoadError property for systemctl show

13 years agodbus: export unit file state
Lennart Poettering [Sun, 31 Jul 2011 16:28:02 +0000 (18:28 +0200)]
dbus: export unit file state

13 years agomain: show load profiling in test mode, too
Lennart Poettering [Sun, 31 Jul 2011 16:13:59 +0000 (18:13 +0200)]
main: show load profiling in test mode, too

13 years agodbus: export load error on unit objects
Lennart Poettering [Sun, 31 Jul 2011 16:13:03 +0000 (18:13 +0200)]
dbus: export load error on unit objects

13 years agoupdate TODO
Lennart Poettering [Sun, 31 Jul 2011 01:53:57 +0000 (03:53 +0200)]
update TODO

13 years agoshutdownd: add 'success message' if we retried detaching stuff
Kay Sievers [Sat, 30 Jul 2011 18:24:40 +0000 (20:24 +0200)]
shutdownd: add 'success message' if we retried detaching stuff

If we need to retry, we print things like
  'Not all file systems unmounted, 1 left'
We should also print something after we succeeded, so we don't leave
the impression we left stuff behind.

13 years agosd-login: build test code again
Lennart Poettering [Sat, 30 Jul 2011 14:42:26 +0000 (16:42 +0200)]
sd-login: build test code again

13 years agosystemctl: s/ignore/ignore_error/ in 'show' output
Lennart Poettering [Sat, 30 Jul 2011 14:42:05 +0000 (16:42 +0200)]
systemctl: s/ignore/ignore_error/ in 'show' output

13 years agoupdate TODO
Lennart Poettering [Fri, 29 Jul 2011 03:01:47 +0000 (05:01 +0200)]
update TODO

13 years agogit: hide org.freedesktop.systemd1.policy.in v32
Lennart Poettering [Fri, 29 Jul 2011 01:26:10 +0000 (03:26 +0200)]
git: hide org.freedesktop.systemd1.policy.in

13 years agonspawn: properly bind mount /sys/fs/selinux into container, since /selinux moved...
Lennart Poettering [Fri, 29 Jul 2011 01:25:05 +0000 (03:25 +0200)]
nspawn: properly bind mount /sys/fs/selinux into container, since /selinux moved there

13 years agobuild-sys: prepare new release
Lennart Poettering [Fri, 29 Jul 2011 01:15:20 +0000 (03:15 +0200)]
build-sys: prepare new release

13 years agosd-login: return size of arrays as return value in functions that generate an array
Lennart Poettering [Fri, 29 Jul 2011 01:08:49 +0000 (03:08 +0200)]
sd-login: return size of arrays as return value in functions that generate an array

13 years agoupdate TODO
Kay Sievers [Fri, 29 Jul 2011 00:17:51 +0000 (02:17 +0200)]
update TODO

13 years agoselinux: mount /sys, /proc, /dev before we load the SELinux policy
Lennart Poettering [Thu, 28 Jul 2011 23:48:18 +0000 (01:48 +0200)]
selinux: mount /sys, /proc, /dev before we load the SELinux policy

13 years agoselinux: use setcon() instead of reexec to apply selinux policy
Lennart Poettering [Thu, 28 Jul 2011 21:52:23 +0000 (23:52 +0200)]
selinux: use setcon() instead of reexec to apply selinux policy

13 years agomain: redirection to telinit is unnecessary if sysv compat is disabled
Lennart Poettering [Thu, 28 Jul 2011 21:42:47 +0000 (23:42 +0200)]
main: redirection to telinit is unnecessary if sysv compat is disabled

13 years agomain: profile unit file loading
Lennart Poettering [Thu, 28 Jul 2011 21:41:57 +0000 (23:41 +0200)]
main: profile unit file loading

13 years agolabel: generalize label_get_socket_label_from_exe() a bit
Lennart Poettering [Thu, 28 Jul 2011 21:39:29 +0000 (23:39 +0200)]
label: generalize label_get_socket_label_from_exe() a bit

13 years agodbus: the changes array might actually be NULL when ti is empty
Lennart Poettering [Thu, 28 Jul 2011 13:48:58 +0000 (15:48 +0200)]
dbus: the changes array might actually be NULL when ti is empty

13 years agoRemove a stray empty line
Michael Biebl [Thu, 28 Jul 2011 13:03:30 +0000 (15:03 +0200)]
Remove a stray empty line

13 years agoDon't show a warning message in non-enforcing mode.
Michael Biebl [Fri, 1 Jul 2011 03:55:57 +0000 (05:55 +0200)]
Don't show a warning message in non-enforcing mode.

If we fail to load the SELinux policy only log an error message in
enforcing mode.

13 years agoLink against -lcap only where required
Michael Biebl [Thu, 28 Jul 2011 02:02:32 +0000 (04:02 +0200)]
Link against -lcap only where required

Don't put -lcap into LIBS as otherwise everything will be linked against
it, like libsystemd-daemon, where this is not desired.

13 years agologind: properly write user state files
Lennart Poettering [Thu, 28 Jul 2011 02:15:53 +0000 (04:15 +0200)]
logind: properly write user state files

13 years agobuild-sys: move libsystemd-login to /lib, too v31
Lennart Poettering [Wed, 27 Jul 2011 21:31:53 +0000 (23:31 +0200)]
build-sys: move libsystemd-login to /lib, too

13 years agoselinux: also profile memory usage
Lennart Poettering [Wed, 27 Jul 2011 19:47:25 +0000 (21:47 +0200)]
selinux: also profile memory usage

13 years agobuild-sys: fix make distcheck
Lennart Poettering [Wed, 27 Jul 2011 19:11:24 +0000 (21:11 +0200)]
build-sys: fix make distcheck

13 years agobuild-sys: prepare v31
Lennart Poettering [Wed, 27 Jul 2011 18:55:25 +0000 (20:55 +0200)]
build-sys: prepare v31

13 years agoupdate TODO
Lennart Poettering [Wed, 27 Jul 2011 18:50:30 +0000 (20:50 +0200)]
update TODO

13 years agoupdate TODO
Lennart Poettering [Wed, 27 Jul 2011 18:47:50 +0000 (20:47 +0200)]
update TODO

13 years agopam: set XDG_SEAT and XDG_VTNR when logging in
Lennart Poettering [Tue, 26 Jul 2011 21:09:34 +0000 (23:09 +0200)]
pam: set XDG_SEAT and XDG_VTNR when logging in

13 years agosd-login: add new call sd_seat_can_multi_session()
Lennart Poettering [Tue, 26 Jul 2011 21:09:09 +0000 (23:09 +0200)]
sd-login: add new call sd_seat_can_multi_session()

13 years agologind: rename can_activate_sessions to can_multi_session
Lennart Poettering [Tue, 26 Jul 2011 19:49:29 +0000 (21:49 +0200)]
logind: rename can_activate_sessions to can_multi_session

13 years agoudev: fix copy/paste error when applying sysctl to network devices
Lennart Poettering [Tue, 26 Jul 2011 19:45:18 +0000 (21:45 +0200)]
udev: fix copy/paste error when applying sysctl to network devices

13 years agopkgconfig: move library .pc files to libdir
Lennart Poettering [Tue, 26 Jul 2011 19:44:37 +0000 (21:44 +0200)]
pkgconfig: move library .pc files to libdir

13 years agoselinux: check PID 1 label instead of /selinux mount point to figure out if selinux...
Lennart Poettering [Mon, 25 Jul 2011 19:59:05 +0000 (21:59 +0200)]
selinux: check PID 1 label instead of /selinux mount point to figure out if selinux is already initialized

13 years agoselinux: log how much time it takes to load the SELinux policy and database
Lennart Poettering [Mon, 25 Jul 2011 19:22:57 +0000 (21:22 +0200)]
selinux: log how much time it takes to load the SELinux policy and database

13 years agosysctl: apply network specific sysctls to each network card as they appear
Lennart Poettering [Mon, 25 Jul 2011 18:24:58 +0000 (20:24 +0200)]
sysctl: apply network specific sysctls to each network card as they appear

13 years agomachine-id: be nice and generate compliant v4 UUIDs
Lennart Poettering [Mon, 25 Jul 2011 17:31:07 +0000 (19:31 +0200)]
machine-id: be nice and generate compliant v4 UUIDs

Newly generated machine IDs now qualify as randomized v4 UUIds. This is
trivial to do and hopefully increases adoption of the ID for various
purposes.

13 years agoseat: add another 'Plugable' device id
Kay Sievers [Mon, 25 Jul 2011 12:34:30 +0000 (14:34 +0200)]
seat: add another 'Plugable' device id

13 years agosystemctl: hook up new install logic
Lennart Poettering [Mon, 25 Jul 2011 02:58:02 +0000 (04:58 +0200)]
systemctl: hook up new install logic

This adds a number of new options to systemctl, for presets, reenabling,
masking/unmask, and runtime operations.

13 years agonspawn: mount a new /proc instance in the container so that we don't see the hosts...
Lennart Poettering [Sat, 23 Jul 2011 13:54:52 +0000 (15:54 +0200)]
nspawn: mount a new /proc instance in the container so that we don't see the hosts' PID tree

This partially reverts f5c1b9eeb94c112e5dac09fc6a47c571356c30c0.

13 years agosystemctl: remove monitor command since it is mostly useless
Lennart Poettering [Sat, 23 Jul 2011 02:21:47 +0000 (04:21 +0200)]
systemctl: remove monitor command since it is mostly useless

13 years agosystemctl: split --help into multiple sections
Lennart Poettering [Sat, 23 Jul 2011 02:20:22 +0000 (04:20 +0200)]
systemctl: split --help into multiple sections

13 years agomanager: add log control via RT signals
Lennart Poettering [Sat, 23 Jul 2011 02:15:38 +0000 (04:15 +0200)]
manager: add log control via RT signals

13 years agobus: expose installer functions
Lennart Poettering [Sat, 23 Jul 2011 01:44:47 +0000 (03:44 +0200)]
bus: expose installer functions

13 years agologin: drop unused variables
Lennart Poettering [Fri, 22 Jul 2011 23:18:20 +0000 (01:18 +0200)]
login: drop unused variables

13 years agoutil: make use of get_user_creds() and get_group_creds() wherever applicable
Lennart Poettering [Fri, 22 Jul 2011 23:17:59 +0000 (01:17 +0200)]
util: make use of get_user_creds() and get_group_creds() wherever applicable

13 years agoinstall: don't choke on dead links
Lennart Poettering [Fri, 22 Jul 2011 22:49:32 +0000 (00:49 +0200)]
install: don't choke on dead links

13 years agouaccess: port over to using sd-login
Lennart Poettering [Fri, 22 Jul 2011 22:48:11 +0000 (00:48 +0200)]
uaccess: port over to using sd-login

13 years agolookup: fix NUL termination of search path array
Lennart Poettering [Fri, 22 Jul 2011 22:47:50 +0000 (00:47 +0200)]
lookup: fix NUL termination of search path array

13 years agoutil: user parse_uid() wherever applicable
Lennart Poettering [Fri, 22 Jul 2011 22:47:17 +0000 (00:47 +0200)]
util: user parse_uid() wherever applicable

13 years agosd-login: beef up login api, to add monitoring and enumerating
Lennart Poettering [Fri, 22 Jul 2011 19:01:15 +0000 (21:01 +0200)]
sd-login: beef up login api, to add monitoring and enumerating

13 years agoshutdown: untabify
Lennart Poettering [Fri, 22 Jul 2011 02:32:22 +0000 (04:32 +0200)]
shutdown: untabify

13 years agoshutdown: initialize the controlling terminal
Harald Hoyer [Tue, 19 Jul 2011 10:47:45 +0000 (12:47 +0200)]
shutdown: initialize the controlling terminal

Thanks Kay Sievers!

13 years agoshutdown: remove close_nointr_nofail after make_stdio call
Harald Hoyer [Tue, 19 Jul 2011 10:16:30 +0000 (12:16 +0200)]
shutdown: remove close_nointr_nofail after make_stdio call

make_stdio itsselves closes the fd already

13 years agoutil: use readdir_r() instead of readdir()
Lennart Poettering [Fri, 22 Jul 2011 02:25:25 +0000 (04:25 +0200)]
util: use readdir_r() instead of readdir()

13 years agoinstall: add new installer implementation
Lennart Poettering [Fri, 22 Jul 2011 02:21:18 +0000 (04:21 +0200)]
install: add new installer implementation

This new installer will replace the current code of "systemctl enable"
but also be available via D-Bus. It adds a couple of new features:

- Mask/Unmask calls
- Reenable call
- Preset call
- Support for enabling units temporarily (i.e. in /run/systemd instead
  of /etc/systemd)
- Enumeration of installed units
- Support for out-of-search-path units

systemctl and D-Bus are not hooked up with this yet

13 years agosystemctl: fix indenting
Lennart Poettering [Fri, 22 Jul 2011 02:20:02 +0000 (04:20 +0200)]
systemctl: fix indenting

13 years agopath-lookup: add both the configured and the fixed search paths in
Lennart Poettering [Fri, 22 Jul 2011 02:19:29 +0000 (04:19 +0200)]
path-lookup: add both the configured and the fixed search paths in

13 years agopath-lookup: make inclusion of user private units optional
Lennart Poettering [Fri, 22 Jul 2011 02:17:38 +0000 (04:17 +0200)]
path-lookup: make inclusion of user private units optional

13 years agoupdate TODO
Lennart Poettering [Mon, 18 Jul 2011 20:30:02 +0000 (22:30 +0200)]
update TODO

13 years agofix hwclock_apply_localtime_delta() to properly handle negative TZ offset
Kay Sievers [Thu, 21 Jul 2011 18:28:27 +0000 (20:28 +0200)]
fix hwclock_apply_localtime_delta() to properly handle negative TZ offset

Localtime may be a negative number, i.e. GMT-7. Fix based on a
patch from Kelly Anderson <kelly@silka.with-linux.com>.

13 years agosysctl: support multiple prefixes in a single invocation
Lennart Poettering [Fri, 15 Jul 2011 00:01:31 +0000 (02:01 +0200)]
sysctl: support multiple prefixes in a single invocation

13 years agologind: enable PowerOff/Reboot calls
Lennart Poettering [Thu, 14 Jul 2011 23:52:52 +0000 (01:52 +0200)]
logind: enable PowerOff/Reboot calls

13 years agoupdate TODO
Lennart Poettering [Thu, 14 Jul 2011 21:57:53 +0000 (23:57 +0200)]
update TODO

13 years agodistribute: src/libsystemd-*.sym
Kay Sievers [Thu, 14 Jul 2011 23:47:47 +0000 (01:47 +0200)]
distribute: src/libsystemd-*.sym

13 years agolibsystemd-daemon: support installation in --with-rootlibdir
Kay Sievers [Thu, 14 Jul 2011 23:31:06 +0000 (01:31 +0200)]
libsystemd-daemon: support installation in --with-rootlibdir

13 years agoREADME: document license
Lennart Poettering [Thu, 14 Jul 2011 21:53:53 +0000 (23:53 +0200)]
README: document license

13 years agogit: hide more files from git
Lennart Poettering [Thu, 14 Jul 2011 21:52:16 +0000 (23:52 +0200)]
git: hide more files from git

13 years agolibs: add symbol versioning for the benefit of RPM
Lennart Poettering [Thu, 14 Jul 2011 21:49:37 +0000 (23:49 +0200)]
libs: add symbol versioning for the benefit of RPM

13 years agosd-daemon: turn sd-daemon.c into a shared library
Lennart Poettering [Thu, 14 Jul 2011 21:06:31 +0000 (23:06 +0200)]
sd-daemon: turn sd-daemon.c into a shared library

13 years agouaccess: become a nop when not run on a systemd system
Lennart Poettering [Thu, 14 Jul 2011 20:51:19 +0000 (22:51 +0200)]
uaccess: become a nop when not run on a systemd system

13 years agologind: introduce libsystemd-login.so as fast path to access logind data
Lennart Poettering [Thu, 14 Jul 2011 20:50:01 +0000 (22:50 +0200)]
logind: introduce libsystemd-login.so as fast path to access logind data

13 years agosystemctl: don't try rebooting with /dev/initcl if Upstart worked
Lennart Poettering [Thu, 14 Jul 2011 16:05:33 +0000 (18:05 +0200)]
systemctl: don't try rebooting with /dev/initcl if Upstart worked

13 years agologind: fix some potentially uninitialized accesses v30
Lennart Poettering [Wed, 13 Jul 2011 21:17:05 +0000 (23:17 +0200)]
logind: fix some potentially uninitialized accesses

13 years agobuild-sys: bump release
Lennart Poettering [Wed, 13 Jul 2011 21:11:53 +0000 (23:11 +0200)]
build-sys: bump release

13 years agonspawn: compress mount table a bit
Lennart Poettering [Wed, 13 Jul 2011 20:50:59 +0000 (22:50 +0200)]
nspawn: compress mount table a bit

13 years agoman: add a couple of crosslinks
Lennart Poettering [Wed, 13 Jul 2011 20:42:21 +0000 (22:42 +0200)]
man: add a couple of crosslinks

13 years agoman: add man page for systemd-loginctl
Lennart Poettering [Wed, 13 Jul 2011 20:37:53 +0000 (22:37 +0200)]
man: add man page for systemd-loginctl

13 years agoconsolidate TODO
Lennart Poettering [Wed, 13 Jul 2011 20:05:35 +0000 (22:05 +0200)]
consolidate TODO

13 years agonspawn: always use bind mounts to make API file systems available in the container
Lennart Poettering [Wed, 13 Jul 2011 19:57:56 +0000 (21:57 +0200)]
nspawn: always use bind mounts to make API file systems available in the container

This ensures that read-only flags are never passed from the container to
the host OS.

13 years agologind: use new udev_enumerate_add_match_parent() where applicable
Lennart Poettering [Wed, 13 Jul 2011 19:49:21 +0000 (21:49 +0200)]
logind: use new udev_enumerate_add_match_parent() where applicable

13 years agologinctl: use new udev_device_has_tag() call from libudev where applicable
Lennart Poettering [Wed, 13 Jul 2011 18:11:23 +0000 (20:11 +0200)]
loginctl: use new udev_device_has_tag() call from libudev where applicable

13 years agologind: remove some unused labels
Lennart Poettering [Wed, 13 Jul 2011 18:06:27 +0000 (20:06 +0200)]
logind: remove some unused labels

13 years agoudev: actually check for existance of ID_PATH_TAG before we use it
Lennart Poettering [Wed, 13 Jul 2011 18:06:11 +0000 (20:06 +0200)]
udev: actually check for existance of ID_PATH_TAG before we use it

13 years agologinctl: implement missing kill verb
Lennart Poettering [Wed, 13 Jul 2011 17:58:35 +0000 (19:58 +0200)]
loginctl: implement missing kill verb

13 years agounit: use ESRCH as error when we don't find anybody to kill
Lennart Poettering [Wed, 13 Jul 2011 17:57:36 +0000 (19:57 +0200)]
unit: use ESRCH as error when we don't find anybody to kill