Add an option to change vsftpd anonymos write umask.
This commit is contained in:
parent
30e1186a0c
commit
4c9c7f6ba4
1 changed files with 8 additions and 0 deletions
|
@ -91,6 +91,7 @@ let
|
|||
${optionalString (pkgs.stdenv.system == "x86_64-linux") ''
|
||||
seccomp_sandbox=NO
|
||||
''}
|
||||
anon_umask=${cfg.anonymousUmask}
|
||||
'';
|
||||
|
||||
in
|
||||
|
@ -139,6 +140,13 @@ in
|
|||
description = "RSA certificate file.";
|
||||
};
|
||||
|
||||
anonymousUmask = mkOption {
|
||||
type = types.string;
|
||||
default = "077";
|
||||
example = "002";
|
||||
description = "Anonymous write umask.";
|
||||
};
|
||||
|
||||
} // (listToAttrs (catAttrs "nixosOption" optionDescription));
|
||||
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue