summary |
shortlog | log |
commit |
commitdiff |
tree
first ⋅ prev ⋅ next
Ronan Le Martret [Wed, 9 Jul 2014 10:19:01 +0000 (12:19 +0200)]
Clean spec file for yocto compliance.
Change-Id: Ieeedbd008d01bee00a034db7b59e78c5a173dead
Signed-off-by: Ronan Le Martret <ronan@fridu.net>
Karol Lewandowski [Wed, 12 Mar 2014 17:50:19 +0000 (18:50 +0100)]
packaging: Install custom pam config for user-session-launch
Change-Id: I8f7dafefc536453fddb80f22a356de0ed93218fa
Signed-off-by: Karol Lewandowski <k.lewandowsk@samsung.com>
Karol Lewandowski [Wed, 12 Mar 2014 17:47:51 +0000 (18:47 +0100)]
Use custom pam configuration file for user-session-launch
Don't reuse 'login' pam configuration as it might need to have
different requirements wrt to enabled modules.
Change-Id: I424674e769d8bdd5af7c04966fd270df1a278e30
Signed-off-by: Karol Lewandowski <k.lewandowsk@samsung.com>
wangfei [Wed, 15 Jan 2014 06:41:07 +0000 (01:41 -0500)]
fix: https://bugs.tizen.org/jira/browse/PTREL-611
'%bcond_with x' should be added into spec file. Otherwise it can not
get the right value of 'with x' from build.conf file.
Signed-off-by: wangfei <feix.w.wang@intel.com>
Change-Id: Ifd66cbb0cef382f6ee72927e1c8014e8b2e7d6e3
wangfei [Fri, 10 Jan 2014 09:30:58 +0000 (04:30 -0500)]
init wayland support.
The display server based on X or Wayland, is now a choice of different profile in Tizen 3.0.
Basically and consistently, two macros were used "with wayland" and "with x".
Below summarize the combination of the macros:
| wayland | x | meaning
|---------------------------
| 0 | 1 | pure X11 platform(no wayland)
| 1 | 0 | pure wayland platform (no X11)
| 1 | 1 | wayland but X compatibility
| 0 | 0 | no X and no wayland
This method unifies the meaning and usage. Deploy this method to user-session-units package.
Currently we need "pure wayland platform (no X11)" status,so "with wayland" and "with x" are
defined into "1" and "0" in build.conf file.If you need other status of above illustration,
please change values of "with x" and "with wayland" in your build.conf file.
Signed-off-by: wangfei <feix.w.wang@intel.com>
Change-Id: I1d574ecdd3b5583698d50f94eceed958eebadc50
Patrick McCarty [Wed, 18 Dec 2013 20:16:20 +0000 (12:16 -0800)]
Update changelog
Change-Id: Ib232464e44389dd3e2c78ca3ac70e376432b3c34
Signed-off-by: Patrick McCarty <patrick.mccarty@linux.intel.com>
Patrick McCarty [Wed, 18 Dec 2013 18:18:59 +0000 (10:18 -0800)]
packaging: update spec file
- 'user-session-launch' uses libpam and libsystemd-login, so new build
dependencies are required
- update the %files section to package the new binary
Change-Id: Ibff6b2a50af691bf967a0e69800827a50a6ae51f
Signed-off-by: Patrick McCarty <patrick.mccarty@linux.intel.com>
Patrick McCarty [Tue, 17 Dec 2013 01:48:13 +0000 (17:48 -0800)]
build: compile and install the new service
This service can be enabled by running
systemctl enable user-session-launch@seat0-1000.service
for example.
Change-Id: If571afe71c281250cff597017df65f7cf9d442e1
Signed-off-by: Patrick McCarty <patrick.mccarty@linux.intel.com>
Patrick McCarty [Tue, 17 Dec 2013 01:35:36 +0000 (17:35 -0800)]
Add a program for launching user sessions
To integrate graphical user sessions with systemd > 204, there must be a
daemon running that opens a PAM session before the user session starts
up.
This daemon takes one argument of form SEAT-UID. It will start a logind
session for user with UID on SEAT.
Change-Id: I1292c1ab312f6b4a676b3f7121fa157ad680bd99
Signed-off-by: Patrick McCarty <patrick.mccarty@linux.intel.com>
Patrick McCarty [Tue, 17 Dec 2013 01:22:44 +0000 (17:22 -0800)]
pam: add a header; remove undefined/unused functions
Change-Id: I3932ea31d4b635b77caf3feb1a23da9ce0b1f33b
Signed-off-by: Patrick McCarty <patrick.mccarty@linux.intel.com>
Patrick McCarty [Tue, 17 Dec 2013 01:16:07 +0000 (17:16 -0800)]
Import pam.c from uxlaunch project
This code will be used for a new daemon that starts a logind session for
a user, added in forthcoming commits.
Change-Id: If2a2b07e1940b92fd7ca1388a090309049be4e57
Signed-off-by: Patrick McCarty <patrick.mccarty@linux.intel.com>
Rusty Lynch [Mon, 28 Oct 2013 17:01:03 +0000 (10:01 -0700)]
Update changelog
Change-Id: If6eb0cafa79f2a7e3e8589d0f3a7f537b724893d
Signed-off-by: Rusty Lynch <rusty.lynch@intel.com>
Ossama Othman [Mon, 21 Oct 2013 19:50:40 +0000 (12:50 -0700)]
TIVI-2021: Force STDIN to be connected to the user session tty.
Change-Id: I55145de0d3fc00ffb782092ad6e49e95586bdcc2
Signed-off-by: Ossama Othman <ossama.othman@intel.com>
Mikko Ylinen [Fri, 4 Oct 2013 10:03:43 +0000 (13:03 +0300)]
Start user-session After dbus.service. Fixes: TIVI-1037
Change-Id: I2888a332ab4396e09b530ced7956430f10937376
Signed-off-by: Mikko Ylinen <mikko.ylinen@intel.com>
Alexandru Cornea [Sat, 29 Jun 2013 00:30:47 +0000 (03:30 +0300)]
resetting manifest requested domain to floor
Anas Nashif [Sat, 11 May 2013 05:52:30 +0000 (01:52 -0400)]
Set license using %license
Anas Nashif [Fri, 10 May 2013 14:18:55 +0000 (10:18 -0400)]
Update to v8
Anas Nashif [Fri, 10 May 2013 14:17:57 +0000 (10:17 -0400)]
Fixed license/group
Anas Nashif [Fri, 10 May 2013 14:12:43 +0000 (10:12 -0400)]
update to v8
Anas Nashif [Tue, 8 Jan 2013 01:09:55 +0000 (17:09 -0800)]
Exclude dbus units for user sessions, they are not part of dbus
Anas Nashif [Mon, 29 Oct 2012 15:44:17 +0000 (08:44 -0700)]
require user-session-units
Anas Nashif [Mon, 29 Oct 2012 14:39:46 +0000 (07:39 -0700)]
split desktop unit files
Anas Nashif [Mon, 29 Oct 2012 14:32:32 +0000 (07:32 -0700)]
enable desktops using options
Anas Nashif [Thu, 25 Oct 2012 14:28:07 +0000 (07:28 -0700)]
added packaging
Anas Nashif [Thu, 25 Oct 2012 04:54:49 +0000 (21:54 -0700)]
packaging
Anas Nashif [Thu, 25 Oct 2012 04:52:30 +0000 (21:52 -0700)]
added packaging
Anas Nashif [Thu, 25 Oct 2012 04:46:15 +0000 (21:46 -0700)]
added packaging
Auke Kok [Fri, 29 Mar 2013 00:23:18 +0000 (17:23 -0700)]
v8
Auke Kok [Mon, 25 Mar 2013 19:42:59 +0000 (12:42 -0700)]
Set Restart=on-failure for all relevant units.
This is a decent default for all of these units.
Auke Kok [Mon, 25 Mar 2013 19:37:41 +0000 (12:37 -0700)]
Units for Steam - big picture mode.
These are useful for folks making a "steambox", or just to
close all your other appps while gaming. You can of course
systemctl --user isolate steam.target
to switch to this.
Note that you probably should still run a window manager by
linking e.g. xfwm4.service into steam.target.wants.
Chad Versace [Sun, 24 Mar 2013 18:51:02 +0000 (11:51 -0700)]
openbox: Add units for Openbox
These are installed conditionally, only when Openbox is present.
Auke Kok [Sat, 23 Mar 2013 04:46:45 +0000 (21:46 -0700)]
Update unit file to reflect some changes:
- cgroup path name
- mem_cg hints
- systemctl enable
- dbus path set with %U
Auke Kok [Wed, 20 Mar 2013 04:47:09 +0000 (21:47 -0700)]
Allow this unit to be used with systemctl enable
Ross Burton [Fri, 22 Feb 2013 19:53:28 +0000 (19:53 +0000)]
configure: don't error if X isn't found, just warn
X is needed by the current user units, but Wayland-based units could be here one
day and when cross-compiling X isn't a true build requirement.
Signed-off-by: Ross Burton <ross.burton@intel.com>
Auke Kok [Fri, 22 Feb 2013 19:33:18 +0000 (11:33 -0800)]
Update some parts of the README.
Auke Kok [Fri, 22 Feb 2013 19:22:48 +0000 (11:22 -0800)]
Correct base license, rev to v7 for upcoming release.
This was never intended to be GPLv3, instead I'm pulling the license
from systemd as quite a few of the files are derivative of the
systemd versions.
Auke Kok [Thu, 14 Feb 2013 20:10:15 +0000 (12:10 -0800)]
Make sure we kill getty@tty1.service.
getty@tty1.service needs to be disabled if you run X on
tty1. This Conflicts makes sure it is.
Auke Kok [Tue, 23 Oct 2012 19:15:11 +0000 (12:15 -0700)]
Rev to v6.
Auke Kok [Tue, 23 Oct 2012 17:41:03 +0000 (10:41 -0700)]
Explicitly stop systemd user session units at shutdown.
Taken from:
http://gitweb.merproject.org/gitweb?p=mer-core/systemd.git;a=patch;h=
18ee801483fc71f4c423c8e16b039f5902e879b9
See also:
https://bugs.nemomobile.org/show_bug.cgi?id=502
This is a stop-gap measure to shutdown any remaining user-session's.
Systemd still has a race (even in 195) that kills the logic in
user sessions before it can properly exit that same user session. Hence,
the user sessions time out shutting down for 90 seconds. This unit
forces the shutdown procedure again which works.
This is not supposed to be a final solution, which is why I'm
merging it here instead of pushing this fix to systemd itself. Ultimately
this patch needs to be dropped and the original logic made functional.
Thanks to the Mer project for coming up with this one.
=======
From
18ee801483fc71f4c423c8e16b039f5902e879b9 Mon Sep 17 00:00:00 2001
From: Pekka Lundstrom <pekka.lundstrom@jollamobile.com>
Date: Thu, 11 Oct 2012 12:07:07 +0300
Subject: [PATCH] Added file /lib/systemd/system/systemd-stop-user-sessions.service
Fixes NEMO#502: Shutdown is not working properly when systemd user session is used
Signed-off-by: Pekka Lundstrom <pekka.lundstrom@jollamobile.com>
---
systemd-stop-user-sessions.service | 20 ++++++++++++++++++++
systemd.changes | 4 ++++
systemd.spec | 6 ++++++
3 files changed, 30 insertions(+), 0 deletions(-)
create mode 100644 systemd-stop-user-sessions.service
diff --git a/systemd-stop-user-sessions.service b/systemd-stop-user-sessions.service
new file mode 100644
index 0000000..ce24c0f
--- /dev/null
+++ b/systemd-stop-user-sessions.service
@@ -0,0 +1,20 @@
+# This file is part of systemd.
+#
+# systemd is free software; you can redistribute it and/or modify it
+# under the terms of the GNU Lesser General Public License as published by
+# the Free Software Foundation; either version 2.1 of the License, or
+# (at your option) any later version.
+
+[Unit]
+Description=Disable User Sessions
+Documentation=man:systemd-user-sessions.service(8)
+Before=shutdown.target
+DefaultDependencies=no
+
+[Service]
+Type=oneshot
+RemainAfterExit=yes
+ExecStart=/lib/systemd/systemd-user-sessions stop
+
+[Install]
+WantedBy=shutdown.target
diff --git a/systemd.changes b/systemd.changes
index caadfbd..5865f2b 100644
--- a/systemd.changes
+++ b/systemd.changes
@@ -1,3 +1,7 @@
+* Thu Oct 11 2012 Pekka Lundstrom <pekka.lundstrom@jollamobile.com> - 187
+- Added file /lib/systemd/system/systemd-stop-user-sessions.service
+ Fixes NEMO#502: Shutdown is not working properly when systemd user session is used
+
* Mon Aug 27 2012 Marko Saukko <marko.saukko@jollamobile.com> - 187
- Fix tty1 autostart by excluding the file in /etc/systemd/system/getty.target.wants/
diff --git a/systemd.spec b/systemd.spec
index 607570e..9c78060 100644
--- a/systemd.spec
+++ b/systemd.spec
@@ -28,6 +28,7 @@ Requires: filesystem >= 3
# fsck with -l option was introduced in 2.21.2 packaging
Requires: util-linux >= 2.21.2
Source0: http://www.freedesktop.org/software/systemd/%{name}-%{version}.tar.xz
+Source1: systemd-stop-user-sessions.service
Patch0: systemd-185-pkgconfigdir.patch
Patch1: systemd-187-reintroduce-support-for-deprecated-oom.patch
Patch2: systemd-187-video.patch
@@ -255,6 +256,11 @@ rm %{buildroot}/%{_docdir}/systemd/*
mkdir -p %{buildroot}/etc/systemd/system/basic.target.wants
+# Fix shutdown hang problem with user-serssions
+install -D -m 644 %{SOURCE1} %{buildroot}/lib/systemd/system/systemd-stop-user-sessions.service
+mkdir -p %{buildroot}/lib/systemd/system/shutdown.target.wants
+ln -s ../systemd-stop-user-sessions.service %{buildroot}/lib/systemd/system/shutdown.target.wants/systemd-stop-user-sessions.service
+
#console-ttyMFD2
ln -s ../serial-getty@.service %{buildroot}/lib/systemd/system/getty.target.wants/serial-getty@ttyMFD2.service
Auke Kok [Sat, 29 Sep 2012 00:21:54 +0000 (17:21 -0700)]
Merge pull request #4 from mmonaco/master
dbus-1.6.8
Matthew Monaco [Fri, 28 Sep 2012 21:12:10 +0000 (15:12 -0600)]
dbus patch: update to dbus-1.6.8
Fuzzy patches make me nervous
Auke Kok [Mon, 17 Sep 2012 22:37:45 +0000 (15:37 -0700)]
Merge pull request #2 from phmccarty/master
Two improvements for user-session@.service
Auke Kok [Mon, 17 Sep 2012 22:36:47 +0000 (15:36 -0700)]
Merge pull request #3 from phmccarty/dbus-patch
dbus patch: update to latest revision
Patrick McCarty [Mon, 17 Sep 2012 20:14:28 +0000 (13:14 -0700)]
dbus patch: update to latest revision
Patrick McCarty [Wed, 5 Sep 2012 18:51:49 +0000 (11:51 -0700)]
user session: Add membership to the memory cgroup
In order to set cgroup memory limits for systemd user session services
(by setting MemoryLimit and MemorySoftLimit), the systemd user instance
must have write permissions for the toplevel memory cgroup controller
hierarchy, located at /sys/fs/cgroup/memory.
To grant access to this hierarchy, this commits adds "memory:/" to
ControlGroup for the user session service file, which makes the user
instance a member of the memory cgroup and enables writing
/sys/fs/cgroup/memory/user and populating additional cgroups within that
directory.
Patrick McCarty [Wed, 5 Sep 2012 18:50:16 +0000 (11:50 -0700)]
Set TTYPath for user-session@.service
In order for a login session (managed by systemd-logind) to become fully
active, it must be assigned to both a seat and a VT. Without using a
display manager, two options are available for ensuring these
assignments are made: (a) set XDG_SEAT and XDG_VTNR in the PAM session,
or (b) set PAM_TTY in the PAM session.
This commit implements the second option by setting TTYPath to
"/dev/tty1" for user-session@.service, thereby forcing systemd to set
PAM_TTY in the PAM session, which then sets XDG_SEAT to "seat0" and
XDG_VTNR to "1" for the user session. "/dev/tty1" is the TTY of choice
because xorg-launch-helper spawns Xorg on tty1.
Auke Kok [Fri, 27 Jul 2012 04:33:35 +0000 (21:33 -0700)]
Add hint about permission requirements.
groups audio/video may need to be added.
Xorg may need to be setuid root.
Auke Kok [Mon, 16 Jul 2012 19:22:32 +0000 (12:22 -0700)]
debug: hint about dbus-monitor
Auke Kok [Mon, 16 Jul 2012 19:19:11 +0000 (12:19 -0700)]
debugging: some useful hints for those debugging issues.
Auke Kok [Mon, 16 Jul 2012 19:09:28 +0000 (12:09 -0700)]
README: clarify the auto-login method a bit more.
Auke Kok [Tue, 3 Jul 2012 06:46:48 +0000 (23:46 -0700)]
v5
Auke Kok [Tue, 3 Jul 2012 06:44:01 +0000 (23:44 -0700)]
Merge branch 'master' of github.com:/sofar/user-session-units
Auke Kok [Tue, 3 Jul 2012 06:42:38 +0000 (23:42 -0700)]
Add units for "mythfrontend".
With these user session units, you can create a quick and easy
Multimedia Center setup. You will likely need to add separate
units for the backend yourself.
Auke Kok [Sun, 1 Jul 2012 04:15:32 +0000 (21:15 -0700)]
Merge pull request #1 from hdhoang/patch-1
Add note about XDG_RUNTIME_DIR's change to UID
Hoàng Đức Hiếu [Sat, 30 Jun 2012 20:57:16 +0000 (03:57 +0700)]
Add note about XDG_RUNTIME_DIR's change to UID
Changed in systemd v185-42-g2138e96.
Auke Kok [Thu, 28 Jun 2012 03:39:08 +0000 (20:39 -0700)]
v4
Auke Kok [Wed, 27 Jun 2012 18:08:46 +0000 (11:08 -0700)]
Targets: AllowIsolate=true
This simple directive allows us to start implementing
some "neat tricks". One of them is to restart a completely
different UI using the systemctl command "isolate".
Auke Kok [Wed, 27 Jun 2012 04:33:19 +0000 (21:33 -0700)]
Bad oops: This will break all dbus usage in any of all the sessions
Auke Kok [Tue, 26 Jun 2012 00:28:29 +0000 (17:28 -0700)]
Add link to releases.
Auke Kok [Mon, 25 Jun 2012 21:57:44 +0000 (14:57 -0700)]
Some subtle hints as to where this package should end up going.
Auke Kok [Mon, 25 Jun 2012 21:12:51 +0000 (14:12 -0700)]
And include the KDE files in the install procedure.
Auke Kok [Mon, 25 Jun 2012 21:06:35 +0000 (14:06 -0700)]
Rev to v3.
Quick drop of AC version needed - it may be too low, but, sure
doesn't hurt much at this point. --2.64.
Auke Kok [Mon, 25 Jun 2012 21:05:08 +0000 (14:05 -0700)]
Adding .gitignore.
Auke Kok [Mon, 25 Jun 2012 21:02:04 +0000 (14:02 -0700)]
Various fixes and cleanups, add KDE.
- Added [Install] sections for everything
- Changed tests for progs to use AC_TEST_PROG() generic
- Add KDE using `startkde`.
Auke Kok [Mon, 25 Jun 2012 06:49:56 +0000 (23:49 -0700)]
Oops here too. typo in the service name.
Auke Kok [Mon, 25 Jun 2012 06:48:24 +0000 (23:48 -0700)]
Oops, these should have been deleted.
Auke Kok [Mon, 25 Jun 2012 06:47:32 +0000 (23:47 -0700)]
Typo here.
Auke Kok [Mon, 25 Jun 2012 06:40:12 +0000 (23:40 -0700)]
Gnome: Add units for gnome-shell.
I tested these units under a fc17 livecd. Obviously, you'll
need to install the gnome-desktop-devel package in order for
the pkgconfig magic to work for you.
Auke Kok [Fri, 22 Jun 2012 18:25:59 +0000 (11:25 -0700)]
dbus: add the patch to dist...
Auke Kok [Fri, 22 Jun 2012 18:16:47 +0000 (11:16 -0700)]
XBMC: display that we're testing for it.
Auke Kok [Fri, 22 Jun 2012 18:05:58 +0000 (11:05 -0700)]
dbus: reference the upstream bug, and patch.
dbus activation is broken under the systemd user session
because dbus emits an env with DBUS_SESSION_BUS_ADDRESS=systemd:
to it's dbus-activated children.
To fix, the session bus should just pass the value of its own
DBUS_SESSION_BUS_ADDRESS if it is running under systemd with
systemd activation. This commit includes a copy of the patch
which should be applied to dbus.
Auke Kok [Fri, 22 Jun 2012 06:58:45 +0000 (23:58 -0700)]
Xfce: I'm assuming dbus activation will work properly.
Auke Kok [Fri, 22 Jun 2012 06:58:25 +0000 (23:58 -0700)]
Cleanup.
Auke Kok [Fri, 22 Jun 2012 06:56:56 +0000 (23:56 -0700)]
Xfce: add units file here too. Also use ln -sf.
Auke Kok [Fri, 22 Jun 2012 06:38:20 +0000 (23:38 -0700)]
Add Xbmc, also create the proper symlinks for xbmc, e17.
Auke Kok [Fri, 22 Jun 2012 06:19:54 +0000 (23:19 -0700)]
enlightenment: Add units for e17.
These are installed conditionally - when E is present, only.
Auke Kok [Fri, 22 Jun 2012 05:43:54 +0000 (22:43 -0700)]
Parse systemd.pc to get the proper path to the systemd binary
Auke Kok [Fri, 22 Jun 2012 05:32:57 +0000 (22:32 -0700)]
dbus: finalize installing these properly.
Auke Kok [Fri, 22 Jun 2012 05:28:08 +0000 (22:28 -0700)]
Dbus: make these units generated with proper paths.
Auke Kok [Fri, 22 Jun 2012 05:21:54 +0000 (22:21 -0700)]
dbus: use pkg-config to find the daemon path.
Auke Kok [Fri, 22 Jun 2012 05:13:55 +0000 (22:13 -0700)]
skeleton COPYING and INSTALL.
Auke Kok [Fri, 22 Jun 2012 05:13:32 +0000 (22:13 -0700)]
Misc files needed for autoreconf.
Auke Kok [Fri, 22 Jun 2012 05:13:12 +0000 (22:13 -0700)]
Add Makefile.am.
Auke Kok [Fri, 22 Jun 2012 05:12:57 +0000 (22:12 -0700)]
AC_SUBST the systemd paths.
Auke Kok [Fri, 22 Jun 2012 04:58:58 +0000 (21:58 -0700)]
README: basic guide as to how this all should work.
Auke Kok [Fri, 22 Jun 2012 04:37:27 +0000 (21:37 -0700)]
Initial import of user-session-units.