Up to [local] / src / usr.bin / talk
Request diff between arbitrary revisions
Default branch: MAIN
Current tag: OPENBSD_5_9
Revision 1.11 / (download) - annotate - [select for diffs], Fri Feb 5 10:18:01 2016 UTC (8 years, 3 months ago) by mestre
Branch: MAIN
CVS Tags: OPENBSD_5_9_BASE,
OPENBSD_5_9
Changes since 1.10: +14 -1 lines
Diff to previous 1.10 (colored)
pledge(2) for talk(1): At the beginning the largest pledge is the following: rpath: read ~/.terminfo (the reason was changed pointed out by semarie@) inet/dns: talk may need to connect to a remote host and resolve it getpw: if getlogin(2) fails then it needs getpwuid(3) as a fallback tty: this is a typical tty application, so it'll always need this annotation Then just before the application main loop check if the talk is with local user so it only needs "stdio tty", if it's remote then it needs "stdio inet tty". I couldn't test this with a remote host to confirm if it needs inet or not but as per jca@'s comment "tighter settings - if possible - can happen later" ok jca@ and also discussed with tb@