logind: hook uaccess into udev by default

This commit is contained in:
Lennart Poettering
2011-06-29 04:14:43 +02:00
parent b4f78aeac6
commit 0b191e603c
5 changed files with 14 additions and 6 deletions
+1
View File
@@ -2,3 +2,4 @@ org.freedesktop.systemd1.policy
gnome-ask-password-agent.c
systemd-interfaces.c
systemadm.c
73-seat-late.rules
@@ -12,4 +12,6 @@ ENV{ID_SEAT}=="", IMPORT{parent}="ID_SEAT"
ENV{ID_SEAT}!="", TAG+="$env{ID_SEAT}"
TAG=="uaccess", RUN+="@rootlibexecdir@/systemd-uaccess $env{DEVNAME} $env{ID_SEAT}"
LABEL="seat_late_end"
-1
View File
@@ -37,7 +37,6 @@
* spawn user systemd
* direct client API
* verify access to SetIdleHint
* hook up ACL tool for udev
*
* udev:
* drop redundant udev_device_get_is_initialized() use as soon as libudev is fixed
+3 -3
View File
@@ -36,14 +36,14 @@ int main(int argc, char *argv[]) {
log_parse_environment();
log_open();
if (argc != 2) {
log_error("This program expects two argument.");
if (argc < 2 || argc > 3) {
log_error("This program expects one or two arguments.");
r = -EINVAL;
goto finish;
}
path = argv[1];
seat = argv[2];
seat = argc >= 3 ? argv[2] : "seat0";
p = strappend("/run/systemd/seats/", seat);
if (!p) {