diff options
author | 2018-04-06 14:05:06 +0000 | |
---|---|---|
committer | 2018-04-06 14:05:06 +0000 | |
commit | bed6b4e3577967fc781da7254eaebfc850f5db19 (patch) | |
tree | d75b2cc886d8f8d95df9bf0069ddf608349fa666 | |
parent | If port io is disabled, disable the associated windows as well. (diff) | |
download | wireguard-openbsd-bed6b4e3577967fc781da7254eaebfc850f5db19.tar.xz wireguard-openbsd-bed6b4e3577967fc781da7254eaebfc850f5db19.zip |
Print a 'p' flag for file descriptors that were opened after pledge(2).
OK deraadt@
-rw-r--r-- | usr.bin/fstat/fstat.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.bin/fstat/fstat.c b/usr.bin/fstat/fstat.c index f5cf38cd703..414302c9de1 100644 --- a/usr.bin/fstat/fstat.c +++ b/usr.bin/fstat/fstat.c @@ -1,4 +1,4 @@ -/* $OpenBSD: fstat.c,v 1.91 2017/12/08 17:51:26 deraadt Exp $ */ +/* $OpenBSD: fstat.c,v 1.92 2018/04/06 14:05:06 bluhm Exp $ */ /* * Copyright (c) 2009 Todd C. Miller <Todd.Miller@courtesan.com> @@ -452,6 +452,8 @@ vtrans(struct kinfo_file *kf) strlcat(rwep, "w", sizeof rwep); if (kf->fd_ofileflags & UF_EXCLOSE) strlcat(rwep, "e", sizeof rwep); + if (kf->fd_ofileflags & UF_PLEDGED) + strlcat(rwep, "p", sizeof rwep); printf(" %4s", rwep); switch (kf->v_type) { case VBLK: |