diff options
author | mestre <mestre@cvs.openbsd.org> | 2016-02-05 10:18:02 +0000 |
---|---|---|
committer | mestre <mestre@cvs.openbsd.org> | 2016-02-05 10:18:02 +0000 |
commit | 6bb3602fc3b75e57548004bbb2fcbef785acd2c8 (patch) | |
tree | 925f7f238c6e78c2a26fe7a94a12353680c73dc0 /usr.bin/ftp | |
parent | 5d65d2018efec54d213937ca458946488546a6e3 (diff) |
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@
Diffstat (limited to 'usr.bin/ftp')
0 files changed, 0 insertions, 0 deletions