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