From 1849a29fecadd21b919ea10bb7981aa04fb31d1c Mon Sep 17 00:00:00 2001 From: Thomas Bushnell Date: Tue, 16 Sep 1997 19:57:23 +0000 Subject: Tue Sep 16 14:37:51 1997 Thomas Bushnell, n/BSG * opts-append-std.c (diskfs_append_std_options): Add --no-suid and --no-exec when appropriate. --- libdiskfs/opts-append-std.c | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'libdiskfs/opts-append-std.c') diff --git a/libdiskfs/opts-append-std.c b/libdiskfs/opts-append-std.c index d3da031d..22762722 100644 --- a/libdiskfs/opts-append-std.c +++ b/libdiskfs/opts-append-std.c @@ -1,6 +1,6 @@ /* Get standard diskfs run-time options - Copyright (C) 1995, 1996 Free Software Foundation, Inc. + Copyright (C) 1995, 1996, 1997 Free Software Foundation, Inc. Written by Miles Bader @@ -31,6 +31,16 @@ diskfs_append_std_options (char **argz, unsigned *argz_len) error_t err; extern int diskfs_sync_interval; + if (nosuid) + err = argz_add (argz, argz_len, "--no-suid"); + if (err) + return err; + + if (noexec) + err = argz_add (argz, argz_len, "--no-exec"); + if (err) + return err; + if (diskfs_readonly) err = argz_add (argz, argz_len, "--readonly"); else -- cgit v1.2.3