mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-17 07:13:23 +01:00
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