platform/upstream/systemd.git
10 years agoSmack - relabel directories and files created by systemd 80/13480/1 accepted/tizen/20131207.002722 accepted/tizen/20131209.172255 submit/tizen/20131206.214600
Casey Schaufler [Fri, 6 Dec 2013 19:40:22 +0000 (11:40 -0800)]
Smack - relabel directories and files created by systemd

Systemd creates directories in /dev. These directories will
get the label of systemd, which is the label of the System
domain, which is not accessable to everyone. Relabel the
directories, files and symlinks created so that they can be
generally used.

Change-Id: I59f81c4be116647748a4ca3a94f9061c1b64fb85
Signed-off-by: Casey Schaufler <casey.schaufler@intel.com.com>
10 years agoUpdate to v208 30/12730/1 accepted/tizen/20131125.231848 accepted/tizen/20131203.230113 accepted/tizen/20131206.003824 submit/tizen/20131122.225324 submit/tizen/20131203.225031
Patrick McCarty [Thu, 21 Nov 2013 22:44:43 +0000 (14:44 -0800)]
Update to v208

Fixes an issue with IVI bootup: TIVI-2197

Change-Id: I9ab660a9babd2e160aef2f441c6824a49d43f4c6
Signed-off-by: Patrick McCarty <patrick.mccarty@linux.intel.com>
10 years agoUpdate changelog
Patrick McCarty [Tue, 19 Nov 2013 20:40:10 +0000 (12:40 -0800)]
Update changelog

Change-Id: I3922fda773079094b9d45aca1043bbc45ccd3d9a
Signed-off-by: Patrick McCarty <patrick.mccarty@linux.intel.com>
10 years agoRemove temporary Smack rules
Patrick McCarty [Sun, 17 Nov 2013 07:44:37 +0000 (23:44 -0800)]
Remove temporary Smack rules

Now that the 'default-ac-domains' package is being used to define the
foundational set of Smack rules, the conflicting rules should be removed
from the systemd package.

Change-Id: I0cbf63fbf25b25ff8d4d34f7c53d4e6c37d5eee0
Signed-off-by: Patrick McCarty <patrick.mccarty@linux.intel.com>
10 years ago[backport] Support additional argument in reboot
WaLyong Cho [Wed, 6 Nov 2013 08:02:41 +0000 (17:02 +0900)]
[backport] Support additional argument in reboot

reboot syscall can be performed with an additional argument. In some
systems this functionality can be useful to modify the mode of the
next boot performed by the bootloader.

Change-Id: I99fe238c83da12937b9280dbc8feff9e70e7d178
Signed-off-by: WaLyong Cho <walyong.cho@samsung.com>
Signed-off-by: Sangjung Woo <sangjung.woo@samsung.com>
10 years agoUpdate changelog
Rusty Lynch [Mon, 11 Nov 2013 23:47:57 +0000 (15:47 -0800)]
Update changelog

Change-Id: I3c7e299b98badfc08f8ffbab563baf4d5c6688ad
Signed-off-by: Rusty Lynch <rusty.lynch@intel.com>
10 years agoSet Smack ambient to match run label.
Casey Schaufler [Fri, 8 Nov 2013 17:42:26 +0000 (09:42 -0800)]
Set Smack ambient to match run label.

Set the Smack networking ambient label to match the
run label of systemd. System services may expect to
communicate with external services over IP. Setting
the ambient label assigns that label to IP packets
that do not include CIPSO headers. This allows systemd
and the services it spawns access to unlabeled IP
packets, and hence external services.

A system may choose to restrict network access to
particular services later in the startup process.
This is easily done by resetting the ambient label
elsewhere.

Change-Id: Ia9c8d8744b732b2ee1126d2e446585d16fa56908
Signed-off-by: Casey Schaufler <casey.schaufler@intel.com>
10 years agoSmack sharing of /run
Casey Schaufler [Fri, 8 Nov 2013 00:23:09 +0000 (16:23 -0800)]
Smack sharing of /run

Make /run a transmuting directory to enable systemd
communications with services in the User domain.

Add more devices that require general access.
Mount /tmp publicly accessable.

Signed-off-by: Casey Schaufler <casey.schaufler@intel.com>
Change-Id: I85f4b386978b7a993938557f8739067f3183e432

10 years agoAdd a permissive set of Smack rules
Michael Demeter [Tue, 15 Oct 2013 23:12:18 +0000 (16:12 -0700)]
Add a permissive set of Smack rules

- These rules are here temporarily until all issues have
  been worked out. Then they will be placed in the proper
  location. This is solely for developers ease of use.

Change-Id: I0a35a70a99c4bf8fbb245c96a19c8c5bfa0c6a38
Signed-off-by: Michael Demeter <michael.demeter@intel.com>
10 years agoSmack enabled systems need /dev special devices correctly labeled
Michael Demeter [Fri, 11 Oct 2013 22:37:57 +0000 (15:37 -0700)]
Smack enabled systems need /dev special devices correctly labeled

- Add AC_DEFINE for HAVE_SMACK to configure.ac
- Add Check for smack in Makefile.am to include smack default rules
- Add smack default rules to label /dev/xxx correctly for access

Change-Id: Iab07eb632b487b9ac4567cd08d0da6879709d44f
Signed-off-by: Michael Demeter <michael.demeter@intel.com>
10 years agoAdd systemd-system.rule workaround to fix the boot
Patrick McCarty [Tue, 8 Oct 2013 18:14:02 +0000 (11:14 -0700)]
Add systemd-system.rule workaround to fix the boot

Until the Smack three-domain system is in place, and systemd is running
with label "System", then "System" should have access to the default
floor domain and vice versa.

Change-Id: I52bf275eeebbc08f5243690647084fb9f3e8d8eb
Signed-off-by: Patrick McCarty <patrick.mccarty@linux.intel.com>
10 years agoAdd System label to systemd
William Douglas [Mon, 7 Oct 2013 21:23:56 +0000 (14:23 -0700)]
Add System label to systemd

Change-Id: I5f5ba4e7a0279db514b428be14846adbd1994b72
Signed-off-by: William Douglas <william.douglas@intel.com>
10 years agoRun with a custom SMACK domain (label).
Auke Kok [Wed, 25 Sep 2013 22:49:42 +0000 (15:49 -0700)]
Run with a custom SMACK domain (label).

Allows the systemd --system process to change its current
SMACK label to a predefined custom label (usually "system")
at boot time.

This is needed to have a few system-generated folders and
sockets automatically be created with the right SMACK
label. Without that, processes either cannot communicate with
systemd or systemd fails to perform some actions.

Change-Id: Ie0427422407cd1b7ffa94f6f3b1b918b2c03bb0f

10 years agoMount /run, /dev/shm usable to tasks when using SMACK.
Auke Kok [Thu, 26 Sep 2013 21:41:09 +0000 (14:41 -0700)]
Mount /run, /dev/shm usable to tasks when using SMACK.

Once systemd itself is running in a security domain for SMACK,
it will fail to start countless tasks due to missing privileges
for mounted and created directory structures. For /run and shm
specifically, we grant all tasks access.

These 2 mounts are allowed to fail, which will happen if the
system is not running a SMACK enabled kernel or security=none is
passed to the kernel.

Change-Id: I0b2af620b69f86f5b4a1536959e502b1328c1f27

10 years agoUpdate .changes for a new release
Mikko Ylinen [Fri, 30 Aug 2013 10:15:29 +0000 (13:15 +0300)]
Update .changes for a new release

Change-Id: Ib212c50603ad9546c6787b3b48e9f355eefaddca
Signed-off-by: Mikko Ylinen <mikko.ylinen@intel.com>
10 years agoinstall pamconsole-tmp.conf into /usr/lib/..
Anas Nashif [Sat, 24 Aug 2013 11:57:19 +0000 (07:57 -0400)]
install pamconsole-tmp.conf into /usr/lib/..

it was incorrectly installed in /usr/lib64 on x86_64 systems.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
10 years ago[systemd upgrade] Import platform restart from RSA
Krzysztof Opasiak [Thu, 18 Apr 2013 07:29:53 +0000 (09:29 +0200)]
[systemd upgrade] Import platform restart from RSA

Platform restart functionality patch reorganized.

 Previous patch made by Sangjung Woo <sangjung.woo@samsung.com>
 had to be reorganized to ensure that it may be applied on any
 systemd version. Now it is applied without modifying any
 systemd files (ex. Makefile).

Change-Id: I187f05c24f3e8267a9e88c11a0a9ca84a6ae7d71
Signed-off-by: Krzysztof Opasiak <k.opasiak@samsung.com>
10 years ago[systemd upgrade] Add pamconsole-tmp.conf from RSA
Maciej Wereski [Tue, 6 Aug 2013 11:56:31 +0000 (13:56 +0200)]
[systemd upgrade] Add pamconsole-tmp.conf from RSA

Change-Id: I4a80b0a472711d20d42d4b24f1a6d382d4df166a
Signed-off-by: Maciej Wereski <m.wereski@partner.samsung.com>
10 years agoUpdate changelog
Michael I Doherty [Thu, 1 Aug 2013 10:11:16 +0000 (11:11 +0100)]
Update changelog

10 years agoAllow swap to be activated concurrently with sysinit target
Michael I Doherty [Tue, 23 Jul 2013 13:12:50 +0000 (14:12 +0100)]
Allow swap to be activated concurrently with sysinit target

10 years agoresetting manifest requested domain to floor
Alexandru Cornea [Sat, 29 Jun 2013 01:59:04 +0000 (04:59 +0300)]
resetting manifest requested domain to floor

10 years agoown directories
Anas Nashif [Wed, 3 Jul 2013 18:22:45 +0000 (14:22 -0400)]
own directories

10 years agoAdd changelog entry
Patrick McCarty [Fri, 7 Jun 2013 23:33:20 +0000 (16:33 -0700)]
Add changelog entry

Change-Id: I73f7f7934b1bbc861095aee26812ed917c3c3369

10 years agolibsystemd: remove explicit dependency on systemd
Patrick McCarty [Thu, 6 Jun 2013 23:08:53 +0000 (16:08 -0700)]
libsystemd: remove explicit dependency on systemd

There is a circular dependency between the systemd and libsystemd
packages; during a package build, the dependency chain is broken and the
installation order may be incorrect.

By removing the explicit dependency on systemd for libsystemd, the
circular dependency is removed.

Change-Id: I887b42ad1870fe04aad0ce694fb6f2bbd3e82772

10 years agoUpdate to v204
Anas Nashif [Wed, 29 May 2013 15:53:18 +0000 (11:53 -0400)]
Update to v204

10 years agoupdate to v204
Anas Nashif [Wed, 29 May 2013 15:47:15 +0000 (11:47 -0400)]
update to v204

10 years agoadd gbs.conf
Anas Nashif [Wed, 29 May 2013 15:46:27 +0000 (11:46 -0400)]
add gbs.conf

10 years agoAdding smack label support for udev
Elena Reshetova [Tue, 23 Apr 2013 09:28:03 +0000 (12:28 +0300)]
Adding smack label support for udev

10 years agoUpdate to 2.01
Anas Nashif [Thu, 11 Apr 2013 09:56:04 +0000 (02:56 -0700)]
Update to 2.01

10 years agoUpdate version to v200
Anas Nashif [Fri, 29 Mar 2013 12:55:16 +0000 (05:55 -0700)]
Update version to v200

10 years agoUpdate to v199
Anas Nashif [Wed, 27 Mar 2013 16:30:55 +0000 (09:30 -0700)]
Update to v199

10 years agoFixed package groups
Anas Nashif [Fri, 22 Mar 2013 18:08:32 +0000 (11:08 -0700)]
Fixed package groups

10 years agoUpdate to v198
Anas Nashif [Mon, 18 Mar 2013 04:00:18 +0000 (21:00 -0700)]
Update to v198

10 years agoUpdater to v198
Anas Nashif [Mon, 18 Mar 2013 03:59:34 +0000 (20:59 -0700)]
Updater to v198

10 years agoFix the dangling /var/lock -> /run/lock symlink
Patrick McCarty [Mon, 4 Mar 2013 19:11:15 +0000 (11:11 -0800)]
Fix the dangling /var/lock -> /run/lock symlink

In upstream systemd, legacy.conf, which creates /run/lock, is only
installed when sysvcompat is enabled, but this breaks the /var/lock
symlink. Installing legacy.conf fixes the issue.

Change-Id: Id287d8206ae1052899048247eb532fee8fa126c5

10 years agoAdd baselibs.conf to support multilib
Anas Nashif [Thu, 21 Feb 2013 17:55:46 +0000 (09:55 -0800)]
Add baselibs.conf to support multilib

10 years agoEnable readahead services
Patrick McCarty [Fri, 15 Feb 2013 22:49:21 +0000 (14:49 -0800)]
Enable readahead services

Change-Id: I4751eb0c58d20ffe5f61eb0440ccc1c56ce39087

10 years agodisable sysv compatibility
Anas Nashif [Wed, 16 Jan 2013 23:14:15 +0000 (15:14 -0800)]
disable sysv compatibility

10 years agodefine %_unitdir_user macro for user session units
Anas Nashif [Sun, 9 Dec 2012 17:52:16 +0000 (09:52 -0800)]
define %_unitdir_user macro for user session units

10 years agoadd %install_service macro
Anas Nashif [Sun, 9 Dec 2012 17:51:23 +0000 (09:51 -0800)]
add %install_service macro

10 years agoadd packaging
Anas Nashif [Tue, 8 Jan 2013 23:31:46 +0000 (15:31 -0800)]
add packaging

10 years agocgroup: there's no point in labelling cgroupfs dirs, so let's not do that v208
Lennart Poettering [Wed, 2 Oct 2013 02:54:07 +0000 (04:54 +0200)]
cgroup: there's no point in labelling cgroupfs dirs, so let's not do that

This allows us to get rid of the dep on libsystemd-label for cgroup
management.

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

10 years agobuild-sys: mkdir.[ch] should be in libsystemd-shared
Lennart Poettering [Wed, 2 Oct 2013 02:52:48 +0000 (04:52 +0200)]
build-sys: mkdir.[ch] should be in libsystemd-shared

Otherwise, why is mkdir-label.[ch] split out?

10 years agobuild-ss: prepare new release
Lennart Poettering [Wed, 2 Oct 2013 01:02:25 +0000 (03:02 +0200)]
build-ss: prepare new release

10 years agohashmap: randomize hash functions a bit
Lennart Poettering [Tue, 1 Oct 2013 21:11:23 +0000 (23:11 +0200)]
hashmap: randomize hash functions a bit

10 years agoUpdate TODO
David Herrmann [Tue, 1 Oct 2013 17:21:35 +0000 (19:21 +0200)]
Update TODO

Remove "logind fbdev removal" as it is no longer supported.

10 years agologind: remove fbdev session-device support
David Herrmann [Tue, 1 Oct 2013 16:08:54 +0000 (18:08 +0200)]
logind: remove fbdev session-device support

fbdev does not support access-handover so it is quite useless to route it
through logind. If compositors want to use it they ought to open it
themselves. It's highly recommended to be ignored entirely, though. fbdev
is about to be deprecated in the kernel.

10 years agologind: run with CAP_SYS_ADMIN
David Herrmann [Tue, 1 Oct 2013 15:59:44 +0000 (17:59 +0200)]
logind: run with CAP_SYS_ADMIN

DRM Master access requires CAP_SYS_ADMIN, yay! Add it to the capability
bounding set for systemd-logind. As CAP_SYS_ADMIN actually allows a huge
set of actions, this mostly renders the restriction-set useless. Anyway,
patches are already pending to reduce the restriction on the kernel side.
But these won't really make it into any stable-release so for now we're
stuck with CAP_SYS_ADMIN.

10 years agologind: send PropertyChanged during deactivation
David Herrmann [Tue, 1 Oct 2013 15:58:58 +0000 (17:58 +0200)]
logind: send PropertyChanged during deactivation

We only send the PropertyChanged signal for the to-be-activated session
but not for the to-be-deactivated one. Fix that so both listeners get
notified about the new state.

10 years agologind: check whether first drmSetMaster succeeded
David Herrmann [Tue, 1 Oct 2013 15:53:43 +0000 (17:53 +0200)]
logind: check whether first drmSetMaster succeeded

The initial drmSetMaster may fail if there is an active master already. We
must not assume that all existing clients comply to logind rules. We check
for this during session-activation already but didn't during device setup.
Fix this by checking the return code.

As drmSetMaster has had horrible return codes in the past (0 for failure?
EINVAL for denied access, ..) we need to be quite pedantic. To guarantee
an open file-descriptor we need to close the device and reopen it without
master if setting master failed first.

10 years agologind: fix session-device dbus notify
David Herrmann [Tue, 1 Oct 2013 15:48:15 +0000 (17:48 +0200)]
logind: fix session-device dbus notify

Had this fix lying around here for some time. Thanks to missing
type-checking for va-args we passed in the actual major/minor values
instead of pointers to it. Fix it by saving the values on the stack first
and passing in the pointers.

10 years agokernel-install: add compat with 'installkernel'
Tom Gundersen [Wed, 25 Sep 2013 22:38:34 +0000 (00:38 +0200)]
kernel-install: add compat with 'installkernel'

If 'kernel-install' is called as 'installkernel' it will be compatible with the
syntax used by the kernel's build system.

This means it can be called by doing 'make install' in a kernel build
directory, if the correct symlink has been installed (which we don't do by
default yet).

[Edit harald@redhat.com: removed basename and use shift]

10 years agoupdate TODO
Lennart Poettering [Tue, 1 Oct 2013 11:35:37 +0000 (13:35 +0200)]
update TODO

10 years agocore: whenever a new PID is passed to us, make sure we watch it
Lennart Poettering [Tue, 1 Oct 2013 03:06:56 +0000 (05:06 +0200)]
core: whenever a new PID is passed to us, make sure we watch it

10 years agoutil.c: ignore pollfd.revent for loop_read/loop_write
Chen Jie [Thu, 12 Sep 2013 01:21:41 +0000 (09:21 +0800)]
util.c: ignore pollfd.revent for loop_read/loop_write

Let read()/write() report any error/EOF.

10 years agounits: Add SHELL environment variable
Evan Callicoat [Tue, 24 Sep 2013 02:01:04 +0000 (21:01 -0500)]
units: Add SHELL environment variable

With the advent of systemd --user sessions, it's become very interesting to spawn X as a user unit, as well as accompanying processes that may have previously been in a .xinitrc/.xsession, or even just to replace a collection of XDG/GDM/KDM/etc session files with independent systemd --user units. The simplest case here would be to login on a tty, with the traditional /usr/sbin/login "login manager".

However, systemd --user (spawned by user@.service) is at the top level of the slice for the user, and does not inherit any environment variables from the login process. Given the number of common applications which rely on SHELL being set in the environment, it seems like the cleanest way to provide this variable is to set it to %s in the user@.service.

Ideally in the long-term, applications which rely on SHELL being set should be fixed to just grab it from getpwnam() or similar, but until that becomes more common, I propose this simple change to make user sessions a little bit nicer out of the box.

10 years agobuild-sys: don't fallback to upstart defaults
Lennart Poettering [Tue, 1 Oct 2013 01:22:41 +0000 (03:22 +0200)]
build-sys: don't fallback to upstart defaults

10 years agosystemctl: remove legacy upstart compatibility
Cristian Rodríguez [Mon, 30 Sep 2013 02:17:42 +0000 (23:17 -0300)]
systemctl: remove legacy upstart compatibility

10 years agosmack-setup: fix path to Smack/CIPSO mappings
Patrick McCarty [Tue, 1 Oct 2013 00:43:38 +0000 (17:43 -0700)]
smack-setup: fix path to Smack/CIPSO mappings

The correct path to the dir with CIPSO mappings is /etc/smack/cipso.d/;
/etc/smack/cipso is a file that can include these mappings as well,
though it is no longer supported in upstream libsmack.

10 years agoRevert "build-sys: link libsystemd-login with libsystemd-label.la"
Kay Sievers [Mon, 30 Sep 2013 22:19:25 +0000 (00:19 +0200)]
Revert "build-sys: link libsystemd-login with libsystemd-label.la"

Systemd-logind does not pull in cg_create(), if we unconditionally link
this, all users of systemd-logind qill need the label stuff and therefore
link against selinux.

It is probably a build-system issue, or something that need to be sorted
out in a differnt way than linking not needed libs.

This reverts commit ceadabb102b05b237bfab11e1f742975ee4daeb1.

10 years agoUpdate TODO
Lennart Poettering [Mon, 30 Sep 2013 22:15:15 +0000 (00:15 +0200)]
Update TODO

10 years agohashmap: size hashmap bucket array dynamically
Lennart Poettering [Mon, 30 Sep 2013 22:13:18 +0000 (00:13 +0200)]
hashmap: size hashmap bucket array dynamically

Instead of fixing the hashmap bucket array to 127 entries dynamically
size it, starting with a smaller one of 31. As soon as a fill level of
75% is reached, quadruple the size, and so on.

This should siginficantly optimize the lookup time in large tables
(from O(n) back to O(1)), and save memory on smaller tables (which most
are).

10 years agolocal: fix memory leak when putting together locale settings
Lennart Poettering [Mon, 30 Sep 2013 22:08:30 +0000 (00:08 +0200)]
local: fix memory leak when putting together locale settings

Also, we need to use proper strv_env_xyz() calls when putting together
the environment array, since otherwise settings won't be properly
overriden.

And let's get rid of strv_appendf(), is overkill and there was only one
user.

10 years agomain: don't free fds array twice
Lennart Poettering [Mon, 30 Sep 2013 22:06:48 +0000 (00:06 +0200)]
main: don't free fds array twice

10 years agologs-show.c: show all messages for a slice
Zbigniew Jędrzejewski-Szmek [Mon, 30 Sep 2013 21:58:44 +0000 (23:58 +0200)]
logs-show.c: show all messages for a slice

10 years agobuild-sys: link libsystemd-login with libsystemd-label.la
Michał Górny [Mon, 30 Sep 2013 08:08:09 +0000 (10:08 +0200)]
build-sys: link libsystemd-login with libsystemd-label.la

libsystemd-login.la uses cg_create() that currently seems to be a part
of libsystemd-label.la. However, it doesn't link against that library
and it seems that none of the (unconditional) libraries it uses do. In
the end, people end up getting «undefined reference to `cg_create'»
when trying to build e.g. dbus.

10 years agoman: mention the systemd homepage from systemd(1)
Lennart Poettering [Mon, 30 Sep 2013 16:56:34 +0000 (18:56 +0200)]
man: mention the systemd homepage from systemd(1)

10 years agoupdate TODO
Lennart Poettering [Mon, 30 Sep 2013 16:54:12 +0000 (18:54 +0200)]
update TODO

10 years agoman: link cgroups api docs from relevant man pages
Lennart Poettering [Mon, 30 Sep 2013 16:54:05 +0000 (18:54 +0200)]
man: link cgroups api docs from relevant man pages

10 years agoset IgnoreOnIsolate=true for systemd-cryptsetup@.service
Andrey Borzenkov [Sun, 29 Sep 2013 11:37:30 +0000 (15:37 +0400)]
set IgnoreOnIsolate=true for systemd-cryptsetup@.service

When crypttab contains noauto, cryptsetup service does not have any
explicit dependencies. If service is started later manually (directly or via
mount dependency) it will be stopped on isolate.

mount units already have IgnoreOnIsolate set by default. Set it by
default for cryptsetup units as well.

10 years agoFix buffer overrun when enumerating files
Zbigniew Jędrzejewski-Szmek [Sun, 29 Sep 2013 12:40:58 +0000 (14:40 +0200)]
Fix buffer overrun when enumerating files

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

Based-on-a-patch-by: Hans Petter Jansson <hpj@copyleft.no>
10 years agokmod-static-nodes: condition execution on modules.devname
Dave Reisner [Sat, 28 Sep 2013 18:51:39 +0000 (14:51 -0400)]
kmod-static-nodes: condition execution on modules.devname

10 years agoAdd a bit more explicit message, to help confused users
Michael Scherer [Fri, 27 Sep 2013 09:43:28 +0000 (11:43 +0200)]
Add a bit more explicit message, to help confused users

Seeing http://www.happyassassin.net/2013/09/27/further-sysadmin-adventures-wheres-my-freeipa-badge/
it seems that the default message is a bit confusing for people
who never encountered it before, so adding a link to the manpage could
help them.

10 years agokernel-install: avoid using 'cp --preserve'
Tom Gundersen [Wed, 25 Sep 2013 20:58:00 +0000 (22:58 +0200)]
kernel-install: avoid using 'cp --preserve'

Force 0644 and root:root instead, to avoid problems with fat filesystems.

10 years agobuild-sys: restore detection of sphinx
Zbigniew Jędrzejewski-Szmek [Fri, 27 Sep 2013 06:24:00 +0000 (08:24 +0200)]
build-sys: restore detection of sphinx

10 years agoDo not use unitialized variable and remove duplicated line
Zbigniew Jędrzejewski-Szmek [Fri, 27 Sep 2013 05:58:57 +0000 (07:58 +0200)]
Do not use unitialized variable and remove duplicated line

10 years agoUpdate TODO
Lennart Poettering [Fri, 27 Sep 2013 00:59:50 +0000 (02:59 +0200)]
Update TODO

10 years agoswap: properly expose timeout property on the bus
Lennart Poettering [Fri, 27 Sep 2013 00:02:21 +0000 (02:02 +0200)]
swap: properly expose timeout property on the bus

10 years agodbus: fix introspection for TimerSlackNSec
Lennart Poettering [Thu, 26 Sep 2013 22:35:36 +0000 (00:35 +0200)]
dbus: fix introspection for TimerSlackNSec

10 years agosystemctl: make sure set-property mangles unit names
Lennart Poettering [Thu, 26 Sep 2013 22:11:54 +0000 (00:11 +0200)]
systemctl: make sure set-property mangles unit names

10 years agoman: drop references to "cgroup" wher appropriate
Lennart Poettering [Thu, 26 Sep 2013 22:05:07 +0000 (00:05 +0200)]
man: drop references to "cgroup" wher appropriate

Since cgroups are mostly now an implementation detail of systemd lets
deemphasize it a bit in the man pages. This renames systemd.cgroup(5) to
systemd.resource-control(5) and uses the term "resource control" rather
than "cgroup" where appropriate.

This leaves the word "cgroup" in at a couple of places though, like for
example systemd-cgtop and systemd-cgls where cgroup stuff is at the core
of what is happening.

10 years agocore: drop some out-of-date references to cgroup settings
Lennart Poettering [Thu, 26 Sep 2013 20:49:44 +0000 (22:49 +0200)]
core: drop some out-of-date references to cgroup settings

10 years agologind: never consider a closing session relevant for PK checks
Lennart Poettering [Thu, 26 Sep 2013 19:32:47 +0000 (21:32 +0200)]
logind: never consider a closing session relevant for PK checks

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

10 years agomain: set umask before creating any files
Mike Gilbert [Thu, 26 Sep 2013 18:39:41 +0000 (20:39 +0200)]
main: set umask before creating any files

This avoids a problem when we inherit a non-zero umask from the
initramfs. This would cause /run/systemd to be created with the wrong
mode.

10 years agologind: if a user is sitting in front of the computer and can shutdown the machine...
Lennart Poettering [Thu, 26 Sep 2013 18:31:37 +0000 (20:31 +0200)]
logind: if a user is sitting in front of the computer and can shutdown the machine anyway he should also be able to reboot it

10 years agocore: rework how we match mount units against each other
Lennart Poettering [Thu, 26 Sep 2013 18:14:24 +0000 (20:14 +0200)]
core: rework how we match mount units against each other

Previously to automatically create dependencies between mount units we
matched every mount unit agains all others resulting in O(n^2)
complexity. On setups with large amounts of mount units this might make
things slow.

This change replaces the matching code to use a hashtable that is keyed
by a path prefix, and points to a set of units that require that path to
be around. When a new mount unit is installed it is hence sufficient to
simply look up this set of units via its own file system paths to know
which units to order after itself.

This patch also changes all unit types to only create automatic mount
dependencies via the RequiresMountsFor= logic, and this is exposed to
the outside to make things more transparent.

With this change we still have some O(n) complexities in place when
handling mounts, but that's currently unavoidable due to kernel APIs,
and still substantially better than O(n^2) as before.

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

10 years agounit-name: when escaping a path consider the empty path identical to the root dir
Lennart Poettering [Thu, 26 Sep 2013 18:03:20 +0000 (20:03 +0200)]
unit-name: when escaping a path consider the empty path identical to the root dir

10 years agoutil: properly handle the root dir in PATH_FOREACH_PREFIX
Lennart Poettering [Thu, 26 Sep 2013 17:58:33 +0000 (19:58 +0200)]
util: properly handle the root dir in PATH_FOREACH_PREFIX

Also add PATH_FOREACH_PREFIX_MORE which includes the specified dir
itself in the iteration

10 years agocgroup: when referencing cgroup controller trees allow omission of the path
Lennart Poettering [Thu, 26 Sep 2013 17:57:58 +0000 (19:57 +0200)]
cgroup: when referencing cgroup controller trees allow omission of the path

10 years agoMove part of logind.c into a separate file
Zbigniew Jędrzejewski-Szmek [Wed, 25 Sep 2013 15:04:41 +0000 (17:04 +0200)]
Move part of logind.c into a separate file

liblogind-core.la was underlinked, missing a few functions
defined in logind.c. They are moved to a new file, logind-core.c,
and this file is linked into liblogind-core.la.
In addition, logind-acl.c is attached to the liblogind-core.la,
instead of systemd-logind directly.

10 years agoMove functions around to fix underlinking in test-machine-tables
Zbigniew Jędrzejewski-Szmek [Wed, 25 Sep 2013 11:26:08 +0000 (13:26 +0200)]
Move functions around to fix underlinking in test-machine-tables

10 years agobuild-sys: add ./configure --enable-address-sanitizer
Zbigniew Jędrzejewski-Szmek [Thu, 26 Sep 2013 08:31:44 +0000 (10:31 +0200)]
build-sys: add ./configure --enable-address-sanitizer

Enabling address sanitizer seems like a useful thing, but is quite
tricky. Proper flags have to be passed to CPPFLAGS, CFLAGS and
LDFLAGS, but passing them on the commandline doesn't work because
we tests are done with ld directly, and not with libtool like in
real linking. We might want to fix this, but let's add a handy
way to enable address checking anyway.

10 years agojournald: accept EPOLLERR from /dev/kmsg
Zbigniew Jędrzejewski-Szmek [Thu, 19 Sep 2013 21:57:57 +0000 (16:57 -0500)]
journald: accept EPOLLERR from /dev/kmsg

Also print out unexpected epoll events explictly.

10 years agotest-hashmap: fix access to uninitialized memory
Zbigniew Jędrzejewski-Szmek [Wed, 25 Sep 2013 15:52:43 +0000 (17:52 +0200)]
test-hashmap: fix access to uninitialized memory

10 years agoexecute.c: little modernization
Zbigniew Jędrzejewski-Szmek [Wed, 28 Aug 2013 11:54:43 +0000 (07:54 -0400)]
execute.c: little modernization

10 years agoutil: add macro for iterating through all prefixes of a path
Lennart Poettering [Wed, 25 Sep 2013 18:58:23 +0000 (20:58 +0200)]
util: add macro for iterating through all prefixes of a path

Syntactic sugar in a macro PATH_FOREACH_PREFIX.

10 years agokeymap: Add Samsung Ativ 9 Plus
Jimmie Tauriainen [Wed, 25 Sep 2013 05:30:23 +0000 (07:30 +0200)]
keymap: Add Samsung Ativ 9 Plus

https://launchpad.net/bugs/1229936

10 years agocgroup: if we do a cgroup operation then do something on all supported controllers
Lennart Poettering [Tue, 24 Sep 2013 02:56:05 +0000 (21:56 -0500)]
cgroup: if we do a cgroup operation then do something on all supported controllers

Previously we did operations like attach, trim or migrate only on the
controllers that were enabled for a specific unit. With this changes we
will now do them for all supproted controllers, and fall back to all
possible prefix paths if the specified paths do not exist.

This fixes issues if a controller is being disabled for a unit where it
was previously enabled, and makes sure that all processes stay as "far
down" the tree as groups exist.

10 years agojournalctl(1): s/adm/systemd-journal/
Dave Reisner [Tue, 24 Sep 2013 18:39:40 +0000 (14:39 -0400)]
journalctl(1): s/adm/systemd-journal/

10 years agologind: return -EINVAL when PID is wrong
Lukas Nykryn [Tue, 24 Sep 2013 14:27:20 +0000 (16:27 +0200)]
logind: return -EINVAL when PID is wrong

dbus-send --print-reply --system --dest=org.freedesktop.login1
/org/freedesktop/login1 org.freedesktop.login1.Manager.GetUserByPID
uint32:0
causes
systemd-logind[29843]: Assertion 'pid >= 1' failed at
src/login/logind.c:938, function manager_get_user_by_pid(). Aborting.