diff options
author | Thomas Bushnell <thomas@gnu.org> | 1997-09-16 19:57:23 +0000 |
---|---|---|
committer | Thomas Bushnell <thomas@gnu.org> | 1997-09-16 19:57:23 +0000 |
commit | 1849a29fecadd21b919ea10bb7981aa04fb31d1c (patch) | |
tree | 5f6b9dd6da8cb6307b36d1bc6d8d2b5923a48217 /libdiskfs/opts-append-std.c | |
parent | d75428bda5e617c4b5a4384c9c4ec2cf4c8f36bb (diff) |
Tue Sep 16 14:37:51 1997 Thomas Bushnell, n/BSG <thomas@gnu.ai.mit.edu>
* opts-append-std.c (diskfs_append_std_options): Add --no-suid and
--no-exec when appropriate.
Diffstat (limited to 'libdiskfs/opts-append-std.c')
-rw-r--r-- | libdiskfs/opts-append-std.c | 12 |
1 files changed, 11 insertions, 1 deletions
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 <miles@gnu.ai.mit.edu> @@ -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 |