summaryrefslogtreecommitdiff
path: root/bin/df
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2015-10-04 15:54:16 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2015-10-04 15:54:16 +0000
commit7c79878258f8d406cde571045850cb95a1192a5f (patch)
treee58ef98fe9e7d4607096df01e907ac0ed915d88f /bin/df
parentbca7820f6d7d6ed76cf0693b7090e778c03308b4 (diff)
df is a tame "stdio rpath" program, the rpath due to getfsstat and statfs.
those two system calls were put into the "rpath" catagory because they expose pathname information.
Diffstat (limited to 'bin/df')
-rw-r--r--bin/df/df.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/bin/df/df.c b/bin/df/df.c
index d4d928c5471..07d549736e2 100644
--- a/bin/df/df.c
+++ b/bin/df/df.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: df.c,v 1.52 2015/01/16 06:39:31 deraadt Exp $ */
+/* $OpenBSD: df.c,v 1.53 2015/10/04 15:54:15 deraadt Exp $ */
/* $NetBSD: df.c,v 1.21.2.1 1995/11/01 00:06:11 jtc Exp $ */
/*
@@ -79,6 +79,9 @@ main(int argc, char *argv[])
int width, maxwidth;
char *mntpt;
+ if (tame("stdio rpath", NULL) == -1)
+ err(1, "tame");
+
while ((ch = getopt(argc, argv, "hiklnPt:")) != -1)
switch (ch) {
case 'h':