![ttyrpld [rusty colors]](title.png)
| Main page | Installing | ttyreplay(1) | rpl(4) | rpldev(4) | ttyrpld(7) | rplctl(8) | rpld(8) | Network Logging | ttyrpld 0.88 |
| Name > | rpld - tty logging daemon | ||||||||||||||||
| Synopsis > |
rpld [-D rpldev] [-I] [-O ofmt] [-Q] [-U user] [-c configfile] [-s] [-v] |
||||||||||||||||
| Description > |
rpld is the user-space daemon that reads /dev/rpl and plexes the data to different files depending on which tty they were logged. It also adds a timestamp so that replaying can be done in real-time. |
||||||||||||||||
| Options > |
|
||||||||||||||||
| Privilegue separation > |
rpld offers the possibility to change to another user's identity after the initialization phase is complete, even though if it is not really required since there is very few to exploit (if at all!), and on top it's local. The default package (from Jan Engelhardt) uses the daemon user. You can change this in the configuration file. |
||||||||||||||||
| Logging > |
rpld does not detach itself to help debugging, but using the startproc, setsid starter tools or bash's disown builtin can help bringing it in the background, if you need to. The only time when the daemon will output something is either during initialization or when there is really trouble, like memory allocation failure. In either case, error messages are rare and you would not need to worry about redirecting stderr. You can run rpld with the -v option to enable printing statistics on stdout. Even if you do not have -v specified, you can send rpld a SIGALRM signal to make it print the current statistics. That of course only makes sense when stdout is connected to something but /dev/null or /dev/zero. You can send it multiple SIGALRMs, of course, but you should consider using -v then, maybe. In verbose mode (-v) the statistics are printed with the move-to-beginning-of-line character (\r), which is not that suitable for logging, though. Basically, every tty is monitored, but certain kinds are excluded, like the master side of BSD (major number 2) and Unix98 ptys (major number 128 to 135), because they are just a mirror of their slave sides with things turned around and are rarely useful. Each packet recorded is also added a timestamp, but ttyreplay is not yet that advanced to display it. Hopefully, the user has a clock set up in his shell prompt. ;-) rpld will divert logging of a tty to a new file when the tty inode is opened the next time and if the owner of it has changed. This will make logins on vc-* [/dev/ttyN] go to the right file. Note that `su` does not change the ownership, so it both sessions (normal and su'ed) will go into the same file. (And that's good, because it then logs by "real person" rather than login name.) The byte count statistics are zeroed upon change detection. | ||||||||||||||||
| Configuration file > |
Configuration files have a simple KEY=VALUE syntax. Empty lines, lines beginning with a hash mark (#) or unrecognized keys are ignored. rpld will try to load rpld.conf from the current working directory onto the hardcoded defaults. Possible configuration variable (key) are:
|
||||||||||||||||
| Technical Details > |
rpld looks into /proc/misc to find the minor number of "rpl" (that is the name of the module passes to the misc device layer). It then tries to create a device node in ., /dev/shm, /tmp, in that order, which it opens and immediately unlinks after. |
||||||||||||||||
| See also > | ttyreplay(1) | ||||||||||||||||