From d876c93b7646f878ef774553611d8ad9ad8f15aa Mon Sep 17 00:00:00 2001 From: Neil Brown Date: Sat, 11 Aug 2007 09:52:29 +1000 Subject: [PATCH] Restrict -i option to root. As it is still under development, don't expose it - just in case. Signed-off-by: Neil Brown --- utils/mount/mount.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/utils/mount/mount.c b/utils/mount/mount.c index 627019a..ec57d84 100644 --- a/utils/mount/mount.c +++ b/utils/mount/mount.c @@ -470,6 +470,11 @@ int main(int argc, char *argv[]) " kernel\n"), progname); exit(EX_USAGE); } + if (uid != 0) { + nfs_error(_("%s: -i option is restricted to 'root'\n"), + progname); + exit(EX_USAGE); + } ++string; break; case 'h': -- 2.39.2