The first commit fixes logind session "activation", so that the user session will be assigned a type of "tty" and the seat "seat0". A nice side effect is that polkit will succeed in identifying active sessions, so that non-root user can carry out actions like suspend, reboot, and poweroff when appropriate.
The second commit enables setting MemoryLimit and MemorySoftLimit for user session services, previously only possible with system services.
This is a 2-commit patch series:
The first commit fixes logind session "activation", so that the user session will be assigned a type of "tty" and the seat "seat0". A nice side effect is that polkit will succeed in identifying active sessions, so that non-root user can carry out actions like suspend, reboot, and poweroff when appropriate.
The second commit enables setting MemoryLimit and MemorySoftLimit for user session services, previously only possible with system services.