selinux/restorecond
Nicolas Iooss d19f990188
restorecond: add systemd user service
When running restorecond in user sessions using D-Bus activation,
restorecond's process is spawned in the CGroup of the D-Bus daemon:

    $ systemctl --user status
    [...]
       CGroup: /user.slice/user-1000.slice/user@1000.service
               ├─init.scope
               │ ├─1206 /usr/lib/systemd/systemd --user
               │ └─1208 (sd-pam)
               └─dbus.service
                 ├─1628 /usr/bin/dbus-daemon --session --address=systemd:
                 └─4570 /usr/sbin/restorecond -u

In order to separate it, introduce a systemd unit for
restorecond-started-as-user.

After this patch:

       CGroup: /user.slice/user-1000.slice/user@1000.service
               ├─restorecond-user.service
               │ └─2871 /usr/sbin/restorecond -u
               ├─init.scope
               │ ├─481 /usr/lib/systemd/systemd --user
               │ └─485 (sd-pam)
               └─dbus.service
                 └─2868 /usr/bin/dbus-daemon --session --address=systemd:

Signed-off-by: Nicolas Iooss <nicolas.iooss@m4x.org>
2020-04-26 15:14:06 +02:00
..
ru Add man pages translation by Olesya Gerasimenko 2019-01-28 12:03:57 +01:00
.gitignore restorecond: Add gitignore 2016-11-16 11:20:05 -05:00
COPYING Add COPYING files for new subdirs. 2016-11-16 11:19:51 -05:00
Makefile restorecond: add systemd user service 2020-04-26 15:14:06 +02:00
org.selinux.Restorecond.service restorecond: add systemd user service 2020-04-26 15:14:06 +02:00
restore.c restorecond: Fix redundant console log output error 2019-11-15 08:12:16 -05:00
restore.h restorecond: break source dependency on policycoreutils/setfiles 2016-11-16 11:19:51 -05:00
restorecond_user.conf Move policycoreutils/restorecond to restorecond. 2016-11-16 11:19:50 -05:00
restorecond-user.service restorecond: add systemd user service 2020-04-26 15:14:06 +02:00
restorecond.8 Move policycoreutils/restorecond to restorecond. 2016-11-16 11:19:50 -05:00
restorecond.c restorecond: use /run instead of /var/run 2019-03-18 22:07:08 +01:00
restorecond.conf restorecond: use /run instead of /var/run 2019-03-18 22:07:08 +01:00
restorecond.desktop Move policycoreutils/restorecond to restorecond. 2016-11-16 11:19:50 -05:00
restorecond.h restorecond: add noreturn attribute to exitApp() 2017-03-07 14:00:16 -05:00
restorecond.init restorecond: use /run instead of /var/run 2019-03-18 22:07:08 +01:00
restorecond.service Add documentation key in systemd .service files 2019-07-18 09:51:43 -05:00
stringslist.c Move policycoreutils/restorecond to restorecond. 2016-11-16 11:19:50 -05:00
stringslist.h Move policycoreutils/restorecond to restorecond. 2016-11-16 11:19:50 -05:00
user.c restorecond: migrate to GDbus API provided by glib-gio 2020-04-26 15:14:03 +02:00
utmpwatcher.c restorecond: use /run instead of /var/run 2019-03-18 22:07:08 +01:00
utmpwatcher.h Move policycoreutils/restorecond to restorecond. 2016-11-16 11:19:50 -05:00
VERSION Update VERSIONs to 3.0 for release. 2019-11-28 13:46:48 +01:00
watch.c restorecond: Musl compatibility for GLOB_BRACE and GLOB_TILDE 2018-05-17 13:08:34 +08:00