]> git.ipfire.org Git - thirdparty/systemd.git/log
thirdparty/systemd.git
11 years agobuild-sys: prepare release 191 v191
Lennart Poettering [Fri, 21 Sep 2012 21:05:10 +0000 (23:05 +0200)] 
build-sys: prepare release 191

11 years agojournal: always keep marked mmap windows around
Lennart Poettering [Fri, 21 Sep 2012 21:33:22 +0000 (23:33 +0200)] 
journal: always keep marked mmap windows around

11 years agomissing: Fix compilation error due to wrong __NR_name_to_handle_at definition
Eelco Dolstra [Fri, 21 Sep 2012 16:55:51 +0000 (12:55 -0400)] 
missing: Fix compilation error due to wrong __NR_name_to_handle_at definition

"__NR_name_to_handle" should read "__NR_name_to_handle_at".  This
fixes a compilation error on systems with older kernel headers.

11 years agojournald: log how big the journal files may grow
Lennart Poettering [Fri, 21 Sep 2012 20:50:26 +0000 (22:50 +0200)] 
journald: log how big the journal files may grow

11 years agojournalctl: make the argument to -n optional
Lennart Poettering [Fri, 21 Sep 2012 20:33:02 +0000 (22:33 +0200)] 
journalctl: make the argument to -n optional

11 years agojournal: completely rework the mmap cache as I too dumb to actually understand it
Lennart Poettering [Fri, 21 Sep 2012 18:52:23 +0000 (20:52 +0200)] 
journal: completely rework the mmap cache as I too dumb to actually understand it

Instead of doing hand optimized fd bisect arrays just use plain old
hashmaps. Now I can understand my own code again. Yay!

As a side effect this should fix some bad memory accesses caused by
accesses after mmap(), introduced in 189.

11 years agomulti-seat-x: drop a lot of unnecessary code
Lennart Poettering [Fri, 21 Sep 2012 15:03:18 +0000 (17:03 +0200)] 
multi-seat-x: drop a lot of unnecessary code

11 years agosysctl: always return the last error we encountered
Lennart Poettering [Fri, 21 Sep 2012 15:01:39 +0000 (17:01 +0200)] 
sysctl: always return the last error we encountered

11 years agonspawn: document why we don't check resolv.conf mount errors
Lennart Poettering [Fri, 21 Sep 2012 14:55:56 +0000 (16:55 +0200)] 
nspawn: document why we don't check resolv.conf mount errors

11 years agonspawn: we can't overmount /etc/localtime anymore since it's usually a symlink now
Lennart Poettering [Fri, 21 Sep 2012 14:54:54 +0000 (16:54 +0200)] 
nspawn: we can't overmount /etc/localtime anymore since it's usually a symlink now

Create the right symlink if possible for /etc/localtime

11 years agohwclock: add missing OOM check
Lennart Poettering [Fri, 21 Sep 2012 14:29:09 +0000 (16:29 +0200)] 
hwclock: add missing OOM check

11 years agopam: document that we don't do error checking when parsing vtnr
Lennart Poettering [Fri, 21 Sep 2012 14:17:22 +0000 (16:17 +0200)] 
pam: document that we don't do error checking when parsing vtnr

11 years agojournal: don't allow journal_file_open() to be called with ret being NULL
Lennart Poettering [Fri, 21 Sep 2012 14:16:39 +0000 (16:16 +0200)] 
journal: don't allow journal_file_open() to be called with ret being NULL

11 years agologin: missing break for getopt ARG_NO_ASK_PASSWORD in loginctl
Lukas Nykryn [Fri, 21 Sep 2012 10:33:32 +0000 (12:33 +0200)] 
login: missing break for getopt ARG_NO_ASK_PASSWORD in loginctl

11 years agosysctl: fix error code handling
Lukas Nykryn [Fri, 21 Sep 2012 10:30:56 +0000 (12:30 +0200)] 
sysctl: fix error code handling

After  if (r <= 0) r can't  be 0 so
if (k < 0 && r == 0) never happens.

11 years agomodules-load: initalize files to null
Václav Pavlín [Fri, 21 Sep 2012 13:03:28 +0000 (15:03 +0200)] 
modules-load: initalize files to null

11 years agolocale: make sure that l is freed
Václav Pavlín [Fri, 21 Sep 2012 13:00:43 +0000 (15:00 +0200)] 
locale: make sure that l is freed

11 years agologin: check return value of session_get_idle_hint
Václav Pavlín [Fri, 21 Sep 2012 11:38:40 +0000 (13:38 +0200)] 
login: check return value of session_get_idle_hint

11 years agologind: check return value, log warning on error
Václav Pavlín [Fri, 21 Sep 2012 11:01:39 +0000 (13:01 +0200)] 
logind: check return value, log warning on error

11 years agocgtop: missing '-'
Václav Pavlín [Fri, 21 Sep 2012 10:04:02 +0000 (12:04 +0200)] 
cgtop: missing '-'

Return codes in systemd are negated and
if (r < 0)  if (r == ENOENT)
        was never true.

11 years agomulti-seat-x: drop framebuffer specific stuff, as we have a DRM driver now
Dave Airlie [Fri, 21 Sep 2012 13:53:10 +0000 (15:53 +0200)] 
multi-seat-x: drop framebuffer specific stuff, as we have a DRM driver now

11 years agoRevert "multi-seat: drop multi-seat-x wrapper, as upstream X can handle multi-seat...
Lennart Poettering [Fri, 21 Sep 2012 13:51:04 +0000 (15:51 +0200)] 
Revert "multi-seat: drop multi-seat-x wrapper, as upstream X can handle multi-seat graphics on its own now"

This reverts commit 636d30a0895f17eca8313d50f9b2fc1ec5e128da.

Turns out we will need the multi-seat wrapper a bit longer, however
without the fb-specific bits in it.

11 years agologind: split up HandleSleepKey= into HandleSuspendKey= and HandleHibernateKey=
Lennart Poettering [Fri, 21 Sep 2012 13:44:14 +0000 (15:44 +0200)] 
logind: split up HandleSleepKey= into HandleSuspendKey= and HandleHibernateKey=

The kernel and X11 distuingish these two, and Thinkpad keys have both,
hence we really should distinguish them too.

11 years agomulti-seat: drop multi-seat-x wrapper, as upstream X can handle multi-seat graphics...
Lennart Poettering [Fri, 21 Sep 2012 10:46:22 +0000 (12:46 +0200)] 
multi-seat: drop multi-seat-x wrapper, as upstream X can handle multi-seat graphics on its own now

11 years agocore: call va_end in all cases
Lukas Nykryn [Fri, 21 Sep 2012 08:23:08 +0000 (10:23 +0200)] 
core: call va_end in all cases

11 years agoshared: call va_end in all cases
Lukas Nykryn [Fri, 21 Sep 2012 08:22:46 +0000 (10:22 +0200)] 
shared: call va_end in all cases

11 years agologind: allow users to override their own suspend/sleep inhibitors
Lennart Poettering [Fri, 21 Sep 2012 09:57:48 +0000 (11:57 +0200)] 
logind: allow users to override their own suspend/sleep inhibitors

11 years agoupdate TODO
Lennart Poettering [Thu, 20 Sep 2012 21:00:44 +0000 (23:00 +0200)] 
update TODO

11 years agofix typo in NEWS
Lennart Poettering [Thu, 20 Sep 2012 20:50:26 +0000 (22:50 +0200)] 
fix typo in NEWS

11 years agoupdate TODO v190
Lennart Poettering [Thu, 20 Sep 2012 18:52:19 +0000 (20:52 +0200)] 
update TODO

11 years agotimedated: /etc/sysconfig/clock is dead on Fedora, remove it
Lennart Poettering [Thu, 20 Sep 2012 18:51:18 +0000 (20:51 +0200)] 
timedated: /etc/sysconfig/clock is dead on Fedora, remove it

11 years agotypo fix
Lennart Poettering [Thu, 20 Sep 2012 17:58:31 +0000 (19:58 +0200)] 
typo fix

11 years agofix typos
Lennart Poettering [Thu, 20 Sep 2012 17:12:23 +0000 (19:12 +0200)] 
fix typos

11 years agoupdate TODO
Lennart Poettering [Thu, 20 Sep 2012 17:00:26 +0000 (19:00 +0200)] 
update TODO

11 years agobuild-sys: prepare v190
Lennart Poettering [Thu, 20 Sep 2012 16:54:20 +0000 (18:54 +0200)] 
build-sys: prepare v190

11 years agoutil: fix overflow checks
Lennart Poettering [Thu, 20 Sep 2012 15:53:03 +0000 (17:53 +0200)] 
util: fix overflow checks

11 years agobuild-sys: require certain version of libselinux
Jan Engelhardt [Thu, 20 Sep 2012 08:20:49 +0000 (10:20 +0200)] 
build-sys: require certain version of libselinux

./.libs/libsystemd-core.a(libsystemd_core_la-selinux-access.o):
In function "selinux_access_check":
src/core/selinux-access.c:487: undefined reference to
"selinux_check_access"

11 years agoutil: overflow hardening
Lennart Poettering [Thu, 20 Sep 2012 09:08:27 +0000 (11:08 +0200)] 
util: overflow hardening

11 years agoutil: make sure heap allocators fail when array allocations are out of bounds
Lennart Poettering [Wed, 19 Sep 2012 22:02:01 +0000 (00:02 +0200)] 
util: make sure heap allocators fail when array allocations are out of bounds

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

11 years agojournald: don't accept arbitrarily sized journal data fields
Lennart Poettering [Wed, 19 Sep 2012 20:51:28 +0000 (22:51 +0200)] 
journald: don't accept arbitrarily sized journal data fields

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

11 years agoutil: define union dirent_storage and make use of it everywhere
Lennart Poettering [Wed, 19 Sep 2012 20:21:09 +0000 (22:21 +0200)] 
util: define union dirent_storage and make use of it everywhere

Make sure to allocate enough space for readdir_r().

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

11 years agoutil: fix bad strstrip() return value in normalize_env_assignment()
Lennart Poettering [Wed, 19 Sep 2012 20:01:31 +0000 (22:01 +0200)] 
util: fix bad strstrip() return value in normalize_env_assignment()

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

11 years agopath: support specifier resolvin in .path units
Lennart Poettering [Wed, 19 Sep 2012 18:09:27 +0000 (20:09 +0200)] 
path: support specifier resolvin in .path units

11 years agolibudev: remove dead code
Kay Sievers [Wed, 19 Sep 2012 17:35:47 +0000 (19:35 +0200)] 
libudev: remove dead code

11 years agotimedated: unregister the right bus service
Lennart Poettering [Wed, 19 Sep 2012 17:09:22 +0000 (19:09 +0200)] 
timedated: unregister the right bus service

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

11 years agoupdate TODO
Lennart Poettering [Wed, 19 Sep 2012 13:46:43 +0000 (15:46 +0200)] 
update TODO

11 years agologind: if a lid-switch lock was taken while the lid was closed, recheck lid status...
Lennart Poettering [Wed, 19 Sep 2012 13:42:29 +0000 (15:42 +0200)] 
logind: if a lid-switch lock was taken while the lid was closed, recheck lid status when the lock is released

11 years agologind: properly parse handle-lid-switch inhibitor
Lennart Poettering [Wed, 19 Sep 2012 13:29:24 +0000 (15:29 +0200)] 
logind: properly parse handle-lid-switch inhibitor

11 years agoman: document new inhibitor types
Lennart Poettering [Wed, 19 Sep 2012 13:28:55 +0000 (15:28 +0200)] 
man: document new inhibitor types

11 years agologind: rework power key/suspend key/lid switch handling
Lennart Poettering [Wed, 19 Sep 2012 11:10:10 +0000 (13:10 +0200)] 
logind: rework power key/suspend key/lid switch handling

http://lists.freedesktop.org/archives/systemd-devel/2012-September/006604.html
https://bugzilla.gnome.org/show_bug.cgi?id=680689

This changes the meaning of the
HandlePowerKey=/HandleSleepKey=/HandleLidSwitch= setting of logind.conf

11 years agojournal: when comparing two entries from separate files make sure we reposition the...
Lennart Poettering [Wed, 19 Sep 2012 07:56:00 +0000 (09:56 +0200)] 
journal: when comparing two entries from separate files make sure we reposition the mmap window

The mmap cache doesn't guarantee that we can look at two files at the
same time. Hence make sure to look at the entries to compare one
after the other, instead of at the same time when comparing them, and
reposition the window in between.

11 years agomount: reword directory empty warning a bit
Lennart Poettering [Wed, 19 Sep 2012 07:55:56 +0000 (09:55 +0200)] 
mount: reword directory empty warning a bit

11 years agosystemctl: warn about triggering units only at the end
Zbigniew Jędrzejewski-Szmek [Tue, 18 Sep 2012 20:03:34 +0000 (22:03 +0200)] 
systemctl: warn about triggering units only at the end

Instead of checking each unit separately, check once at the end. This
should avoid spurious warnings about a service being triggerable by
other stuff.

11 years agosystemctl: properly report success
Zbigniew Jędrzejewski-Szmek [Wed, 19 Sep 2012 06:15:07 +0000 (08:15 +0200)] 
systemctl: properly report success

Systemctl would always return 1, because it treated uninteresting dbus
messages ("job added") as errors. Just ignore everything apart from
interesting ("job removed") messages.

11 years agosystemctl: use automatic cleanup once more
Zbigniew Jędrzejewski-Szmek [Tue, 18 Sep 2012 18:37:15 +0000 (20:37 +0200)] 
systemctl: use automatic cleanup once more

Semantics are slightly different, because before unit_name_mangle
returning NULL was ignored, and now it is reported as oom. But
unit_name_mangle only returns NULL on oom.

11 years agosystemctl: use automatic cleanup
Zbigniew Jędrzejewski-Szmek [Tue, 18 Sep 2012 18:22:57 +0000 (20:22 +0200)] 
systemctl: use automatic cleanup

Introduce a helper method to unref dbus messages and use it.

11 years agocore: move ManagerRunningAs to shared
Zbigniew Jędrzejewski-Szmek [Tue, 18 Sep 2012 15:11:12 +0000 (17:11 +0200)] 
core: move ManagerRunningAs to shared

Note: I did s/MANAGER/SYSTEMD/ everywhere, even though it makes the
patch quite verbose. Nevertheless, keeping MANAGER prefix in some
places, and SYSTEMD prefix in others would just lead to confusion down
the road. Better to rip off the band-aid now.

11 years agoautomount: also whine if an automount directory is not empty
Lennart Poettering [Tue, 18 Sep 2012 16:59:01 +0000 (18:59 +0200)] 
automount: also whine if an automount directory is not empty

11 years agomount: notify the user if we over-mount a non-empty directory
Lennart Poettering [Tue, 18 Sep 2012 16:40:31 +0000 (18:40 +0200)] 
mount: notify the user if we over-mount a non-empty directory

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

11 years agoupdate TODO
Lennart Poettering [Tue, 18 Sep 2012 10:15:19 +0000 (12:15 +0200)] 
update TODO

11 years agomount: don't mount securityfs in a container
Lennart Poettering [Tue, 18 Sep 2012 10:05:47 +0000 (12:05 +0200)] 
mount: don't mount securityfs in a container

11 years agounit-printf: add specifiers for the host name, machine id, boot id
Lennart Poettering [Tue, 18 Sep 2012 09:53:47 +0000 (11:53 +0200)] 
unit-printf: add specifiers for the host name, machine id, boot id

11 years agounit-printf: before resolving exec context specifiers check whether the object actual...
Lennart Poettering [Tue, 18 Sep 2012 09:40:01 +0000 (11:40 +0200)] 
unit-printf: before resolving exec context specifiers check whether the object actually has an exec context

11 years agounit: split unit_printf() and friends into its own .c file
Lennart Poettering [Tue, 18 Sep 2012 09:27:56 +0000 (11:27 +0200)] 
unit: split unit_printf() and friends into its own .c file

11 years agounit: fix %f resolving
Lennart Poettering [Tue, 18 Sep 2012 09:18:37 +0000 (11:18 +0200)] 
unit: fix %f resolving

11 years agojournalctl: don't choke on entries with no MESSAGE= field
Lennart Poettering [Tue, 18 Sep 2012 09:12:31 +0000 (11:12 +0200)] 
journalctl: don't choke on entries with no MESSAGE= field

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

11 years agodocs: typos in loginctl.xml
Thomas Hindoe Paaboel Andersen [Thu, 13 Sep 2012 19:09:44 +0000 (21:09 +0200)] 
docs: typos in loginctl.xml

11 years agotarget: imply default ordering for PartsOf deps as well
Lennart Poettering [Tue, 18 Sep 2012 09:01:34 +0000 (11:01 +0200)] 
target: imply default ordering for PartsOf deps as well

11 years agoexecute: apply PAM logic only to main process if PermissionsStartOnly is set
Lennart Poettering [Tue, 18 Sep 2012 08:54:23 +0000 (10:54 +0200)] 
execute: apply PAM logic only to main process if PermissionsStartOnly is set

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

11 years agoselinux: rework method tail, make it into a nulstr array
Lennart Poettering [Tue, 18 Sep 2012 00:19:54 +0000 (02:19 +0200)] 
selinux: rework method tail, make it into a nulstr array

11 years agoselinux: use existing library calls for audit data
Lennart Poettering [Mon, 17 Sep 2012 23:55:49 +0000 (01:55 +0200)] 
selinux: use existing library calls for audit data

11 years agoselinux: prefer source path over fragment path
Lennart Poettering [Mon, 17 Sep 2012 23:55:24 +0000 (01:55 +0200)] 
selinux: prefer source path over fragment path

11 years agoutil: introduce get_process_gid()
Lennart Poettering [Mon, 17 Sep 2012 23:53:15 +0000 (01:53 +0200)] 
util: introduce get_process_gid()

11 years agoselinux: add bus service access control
Daniel J Walsh [Thu, 6 Sep 2012 20:23:11 +0000 (16:23 -0400)] 
selinux: add bus service access control

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

This patch adds the ability to look at the calling process that is trying to
do dbus calls into systemd, then it checks with the SELinux policy to see if
the calling process is allowed to do the activity.

The basic idea is we want to allow NetworkManager_t to be able to start and
stop ntpd.service, but not necessarly mysqld.service.

Similarly we want to allow a root admin webadm_t that can only manage the
apache environment.  systemctl enable httpd.service, systemctl disable
iptables.service bad.

To make this code cleaner, we really need to refactor the dbus-manager.c code.
 This has just become a huge if-then-else blob, which makes doing the correct
check difficult.

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://www.enigmail.net/

iEYEARECAAYFAlBJBi8ACgkQrlYvE4MpobOzTwCdEUikbvRWUCwOb83KlVF0Nuy5
lRAAnjZZNuc19Z+aNxm3k3nwD4p/JYco
=yops
-----END PGP SIGNATURE-----

11 years agoUpdate TODO
Lennart Poettering [Mon, 17 Sep 2012 23:17:03 +0000 (01:17 +0200)] 
Update TODO

11 years agologind: split up inhibit acquire policy
Lennart Poettering [Mon, 17 Sep 2012 23:16:23 +0000 (01:16 +0200)] 
logind: split up inhibit acquire policy

11 years agojournald: log when we fail to forward messages to syslog
Lennart Poettering [Mon, 17 Sep 2012 21:59:26 +0000 (23:59 +0200)] 
journald: log when we fail to forward messages to syslog

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

11 years agolog: avoid function loop
Lennart Poettering [Mon, 17 Sep 2012 20:14:24 +0000 (22:14 +0200)] 
log: avoid function loop

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

11 years agoconf-parser: don't unescape parsed configuration strings by default
Lennart Poettering [Mon, 17 Sep 2012 19:58:03 +0000 (21:58 +0200)] 
conf-parser: don't unescape parsed configuration strings by default

In many cases this might have a negative effect since we drop escaping
from strings where we better shouldn't have dropped it.

If unescaping makes sense for some settings we can readd it later again,
on a per-case basis.

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

11 years agologind: make VT reservation logic compatible with containers
Lennart Poettering [Mon, 17 Sep 2012 17:11:48 +0000 (19:11 +0200)] 
logind: make VT reservation logic compatible with containers

11 years agomain: newer kernels return EINVAL if we invoke reboot() in a container lacking perms...
Lennart Poettering [Mon, 17 Sep 2012 16:28:40 +0000 (18:28 +0200)] 
main: newer kernels return EINVAL if we invoke reboot() in a container lacking perms, deal with it

11 years agoutil: various cleanups for printing boot status
Lennart Poettering [Mon, 17 Sep 2012 16:23:10 +0000 (18:23 +0200)] 
util: various cleanups for printing boot status

11 years agogit: update .gitignore
Lennart Poettering [Mon, 17 Sep 2012 15:47:09 +0000 (17:47 +0200)] 
git: update .gitignore

11 years agoutmp: read the right timestamp
Lennart Poettering [Mon, 17 Sep 2012 15:45:18 +0000 (17:45 +0200)] 
utmp: read the right timestamp

11 years agomain: when transitioning from initrd to the main system log to kmsg
Lennart Poettering [Mon, 17 Sep 2012 15:42:13 +0000 (17:42 +0200)] 
main: when transitioning from initrd to the main system log to kmsg

When the new PID is invoked the journal socket from the initrd might
still be around. Due to the default log target being journal we'd log to
that initially when the new main systemd initializes even if the kernel
command line included a directive to redirect systemd's logging
elsewhere.

With this fix we initially always log to kmsg now, if we are PID1, and
only after parsing the kernel cmdline try to open the journal if that's
desired.

(The effective benefit of this is that SELinux performance data is now
logged again to kmsg like it used to be.)

11 years agohwclock: always set the kernel's timezone
Kay Sievers [Mon, 17 Sep 2012 14:41:13 +0000 (16:41 +0200)] 
hwclock: always set the kernel's timezone

Properly tell the kernel at bootup, and any later time zone changes,
the actual system time zone.

Things like the kernel's FAT filesystem driver needs the actual time
zone to calculate the proper local time to use for the on-disk time
stamps.

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

11 years agomain: bump up RLIMIT_NOFILE for systemd itself
Lennart Poettering [Mon, 17 Sep 2012 14:35:59 +0000 (16:35 +0200)] 
main: bump up RLIMIT_NOFILE for systemd itself

For setups with many listening sockets the default kernel resource limit
of 1024 fds is not enough. Bump this up to 64K to avoid any limitations
in this regard. We are careful to pass on the kernel default to daemons
however, since normally resource limits are a good to enforce,
especially since select() can't handle fds > 1023.

11 years agojournald: properly update perms on freshly rotate user journals
Lennart Poettering [Mon, 17 Sep 2012 13:53:42 +0000 (15:53 +0200)] 
journald: properly update perms on freshly rotate user journals

11 years agoservice: don't hit an assert if a service unit changes type and we get a spurious...
Lennart Poettering [Mon, 17 Sep 2012 12:55:56 +0000 (14:55 +0200)] 
service: don't hit an assert if a service unit changes type and we get a spurious event from before

11 years agoupdate TODO
Lennart Poettering [Mon, 17 Sep 2012 11:24:35 +0000 (13:24 +0200)] 
update TODO

11 years agoudev: add btrfs support
Kay Sievers [Sun, 16 Sep 2012 21:31:11 +0000 (23:31 +0200)] 
udev: add btrfs support

All "btrfs" file systems will be registered with the kernel when they
show up.

Incomplete multi-device volumes will set SYSTEMD_READY=0, to prevent
access until the volume is complete and fully registered.

11 years agodirective-index: journal directives
Zbigniew Jędrzejewski-Szmek [Fri, 10 Aug 2012 17:35:43 +0000 (19:35 +0200)] 
directive-index: journal directives

11 years agodirective-index: system manager directives
Zbigniew Jędrzejewski-Szmek [Fri, 10 Aug 2012 17:14:30 +0000 (19:14 +0200)] 
directive-index: system manager directives

11 years agodirective-index: add UDEV fields
Zbigniew Jędrzejewski-Szmek [Sun, 16 Sep 2012 09:11:34 +0000 (11:11 +0200)] 
directive-index: add UDEV fields

11 years agoman: generate an index of directives
Zbigniew Jędrzejewski-Szmek [Thu, 9 Aug 2012 16:08:14 +0000 (18:08 +0200)] 
man: generate an index of directives

Systemd has a large (and growing) number of manpages. Sometimes it's
not immediately obvious, where to look for a directive. Especially,
when something is described in more than one place. Making sense of
all the settings should be easier with an index.

11 years agologind: make sure there's always a getty available on TTY6
Lennart Poettering [Mon, 17 Sep 2012 10:39:16 +0000 (12:39 +0200)] 
logind: make sure there's always a getty available on TTY6

Previously, if X allocated all 6 TTYs (for multi-session for example) no
getty would be available anymore to guarantee console-based logins.

With the new ReserveVT= switch in logind.conf we can now choose one VT
(6 by default) that will always be subject to autovt-style activation,
i.e. we'll always have a getty on TTY6, and X will never take possession
of it.

11 years agobuild-sys: __secure_getenv lost dunder in libc 2.17
Zbigniew Jędrzejewski-Szmek [Sun, 16 Sep 2012 22:21:25 +0000 (00:21 +0200)] 
build-sys: __secure_getenv lost dunder in libc 2.17

11 years agotmpfiles: use write(2) for the 'w' action
Dave Reisner [Sat, 15 Sep 2012 16:58:49 +0000 (12:58 -0400)] 
tmpfiles: use write(2) for the 'w' action

This resolves problems with filesystems which do not implement the
aio_write file operation. In this case, the kernel will fall back using
a loop writing technique for each pointer in a received iovec. The
result is strange errors in dmesg such as:

[   31.855871] elevator: type  not found
[   31.856262] elevator: switch to
[   31.856262]  failed

It does not make sense to implement a synchronous aio_write method for
sysfs as this isn't a real filesystem where a reasonable use case for
using writev exists, nor is there an expectation that tmpfiles will be
used to write more data than can be reasonably written in a single write
syscall.

In addition, some sysfs attrs are currently buggy and will NOT reject
the second write with the newline, causing the sysfs value to be zeroed
out. This of course should be fixed in the kernel regardless of any
wrongdoing in userspace, but this simple change makes us immune to such
a bug.

This change means that we do not write a trailing newline by default, as
the expected use case of 'w' is for sysfs and procfs. In exchange, honor
C-style backslash escapes so that if the newline is really needed, the
user can add it.

11 years agosocket: prevent signed integer overflow
Dave Reisner [Sat, 15 Sep 2012 16:58:48 +0000 (12:58 -0400)] 
socket: prevent signed integer overflow

src/core/socket.c:588:25: error: overflow in implicit constant conversion
src/core/socket.c:589:17: error: overflow in implicit constant conversion

11 years agonspawn: fix memleak introduced with automatic cleanup
Zbigniew Jędrzejewski-Szmek [Sun, 16 Sep 2012 14:33:20 +0000 (16:33 +0200)] 
nspawn: fix memleak introduced with automatic cleanup

6b2d0e8 introduced a memleak instead of fixing one.
Fix both.