Hi,

This one seems to only need rpath to be able to traverse the filesystem
and getpw to figure out who owns what.

OK?

Index: quot.c
===================================================================
RCS file: /cvs/src/usr.sbin/quot/quot.c,v
retrieving revision 1.30
diff -u -p -u -r1.30 quot.c
--- quot.c      7 Sep 2017 03:24:09 -0000       1.30
+++ quot.c      21 Jul 2018 16:32:25 -0000
@@ -572,6 +572,10 @@ main(int argc, char *argv[])
                        }
                }
        }
+
+       if (pledge("stdio rpath getpw", NULL) == -1)
+               err(1, "pledge");
+
        cnt = getmntinfo(&mp, MNT_NOWAIT);
        if (all) {
                for (; --cnt >= 0; mp++) {

Reply via email to