summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/.gitignore1
-rw-r--r--src/73-seat-late.rules.in (renamed from src/73-seat-late.rules)2
-rw-r--r--src/logind.h1
-rw-r--r--src/uaccess.c6
4 files changed, 6 insertions, 4 deletions
diff --git a/src/.gitignore b/src/.gitignore
index 4c7d3c8822..de3bb5f100 100644
--- a/src/.gitignore
+++ b/src/.gitignore
@@ -2,3 +2,4 @@ org.freedesktop.systemd1.policy
gnome-ask-password-agent.c
systemd-interfaces.c
systemadm.c
+73-seat-late.rules
diff --git a/src/73-seat-late.rules b/src/73-seat-late.rules.in
index 5a17c814ae..e93a0e6da9 100644
--- a/src/73-seat-late.rules
+++ b/src/73-seat-late.rules.in
@@ -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"
diff --git a/src/logind.h b/src/logind.h
index 8726502c1c..aaa21cddda 100644
--- a/src/logind.h
+++ b/src/logind.h
@@ -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
diff --git a/src/uaccess.c b/src/uaccess.c
index 524e4f0032..392b51604f 100644
--- a/src/uaccess.c
+++ b/src/uaccess.c
@@ -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) {