rwhod: react to audit pam events to broadcast updates
Listen to read-only audit packets from the kernel to react on user logins/logouts. This way, we can immediately notify other machines on the network whenever there is a change to the user session list.
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
[Unit]
|
||||
Description=Roowho2 Audit Netlink Socket
|
||||
|
||||
ConditionKernelCommandLine=!audit=0
|
||||
ConditionKernelCommandLine=!audit=off
|
||||
|
||||
[Socket]
|
||||
FileDescriptorName=audit_socket
|
||||
ListenNetlink=audit 1
|
||||
Service=roowho2.service
|
||||
|
||||
[Install]
|
||||
WantedBy=sockets.target
|
||||
Reference in New Issue
Block a user