Hello,
I’m the upstream author of Spurenjäger ( GitHub - alikiratli/spurenjaeger: Linux authentication log monitor with network attribution (IP + MAC where physically resolvable) · GitHub ),
a GPL-3.0 authentication log monitor for Linux. It reads auth.log / the systemd
journal, extracts the source IP of each login attempt, and resolves the peer’s MAC
address from the kernel neighbour table when the peer is on a directly attached
subnet. Both a CLI and a GTK 3 GUI are shipped.
I’d like to request:
-
Manual review approval of the dbus slot
The GUI is a Gtk.Application with the ID org.spurenjaeger.Spurenjaeger and
registers that name on the session bus for single-instance handling. Without
the slot, AppArmor denies the name and the window never opens. The slot is
bus: session, name: org.spurenjaeger.Spurenjaeger, matching the
application ID and the AppStream ID.
-
Auto-connection of log-observe
Reading /var/log/auth.log (or /var/log/secure) and the systemd journal is
the tool’s core function; without it the snap cannot do anything. Normal
file permissions still apply (adm group or root).
-
Auto-connection of network-observe
Used read-only to list local subnets (ip addr) and the neighbour table
(ip neigh, /proc/net/arp) so a login source can be attributed to a MAC
address. No raw sockets or packet capture are used.
snapcraft.yaml: spurenjaeger/snap/snapcraft.yaml at snap-packaging · alikiratli/spurenjaeger · GitHub
Thank you!
The dbus slot, as declared in snapcraft.yaml (spurenjaeger/snap/snapcraft.yaml at snap-packaging · alikiratli/spurenjaeger · GitHub):
slots:
dbus-spurenjaeger:
interface: dbus
bus: session
name: org.spurenjaeger.Spurenjaeger
- Only the gui app has this slot. The CLI app doesn’t use D-Bus at all.
- The name is the application ID that Gtk.Application registers to stay single-instance (spurenjaeger/gui/app.py (spurenjaeger/spurenjaeger/gui/app.py at snap-packaging · alikiratli/spurenjaeger · GitHub)). The AppStream metainfo (org.spurenjaeger.Spurenjaeger.metainfo.xml) and the app’s common-id use the same ID.
- It’s a session bus name that only this application uses. Nothing else is exported on it, and no other snap is expected to connect to it.
- I’m the upstream author and the publisher of the snap, so the name and the snap name both belong to the project.
log-observe. Without it the tool can’t do anything. Reading /var/log/auth.log, /var/log/secure and the journal (through a staged journalctl) is its only input. It only reads and never writes to the logs. The usual permission checks still apply, so the user has to be in adm or run it as root.
network-observe. This is used read-only for ip addr, ip neigh and /proc/net/arp, so the tool can tell whether a source address is on an attached subnet and look up its MAC address. To be transparent about one more thing: when the neighbour table has no entry yet, the tool sends a single UDP datagram to the peer to trigger ARP resolution. That only uses the network plug, which is auto-connected anyway. There’s no raw socket, packet capture or interface configuration.
Without the two auto-connections, the snap does nothing after install until the user runs snap connect twice. For now the description explains how to do that.
Happy to change anything if needed.