chiark / gitweb /
c3487d25f5761ba3409329ff1bdfbb15262eaa4b
[elogind.git] / src / login / 73-seat-late.rules.m4
1 #  SPDX-License-Identifier: LGPL-2.1+
2 #
3 #  This file is part of elogind.
4 #
5 #  elogind is free software; you can redistribute it and/or modify it
6 #  under the terms of the GNU Lesser General Public License as published by
7 #  the Free Software Foundation; either version 2.1 of the License, or
8 #  (at your option) any later version.
9
10 ACTION=="remove", GOTO="seat_late_end"
11
12 ENV{ID_SEAT}=="", ENV{ID_AUTOSEAT}=="1", ENV{ID_FOR_SEAT}!="", ENV{ID_SEAT}="seat-$env{ID_FOR_SEAT}"
13 ENV{ID_SEAT}=="", IMPORT{parent}="ID_SEAT"
14
15 ENV{ID_SEAT}!="", TAG+="$env{ID_SEAT}"
16 #if 0 /// elogind uses its own uaccess replacement command
17 # m4_ifdef(`HAVE_ACL',``
18 # TAG=="uaccess", ENV{MAJOR}!="", RUN{builtin}+="uaccess"''
19 # )m4_dnl
20 #else
21 m4_ifdef(`HAVE_ACL',``
22 TAG=="uaccess", ENV{MAJOR}!="", RUN{program}+="@rootlibexecdir@/elogind-uaccess-command %N $env{ID_SEAT}"''
23 )m4_dnl
24 #endif // 0
25
26 LABEL="seat_late_end"