summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/httpserver
diff options
context:
space:
mode:
authorGeorge Shammas <george@shamm.as>2023-09-16 07:47:52 -0400
committerGeorge Shammas <george@shamm.as>2023-09-16 08:22:45 -0400
commit142d83f90e2903c92a78c8f4fa84a87fe37a0409 (patch)
treeb99f79e21405bccc374cdb86bc59655a057492a1 /pkgs/development/python-modules/httpserver
parent47fc70dde97b3c378b47c5419cb6bb6cae252367 (diff)
nixos/postfix: postalias should not use source file permissions
Our postfix-setup service ensures that the directory is only writable by root. postalias by default drops permissions to the user of the source file. In the case of NixOS that file is in the nix store and thus always owned by root and everything works. The problem is that when using a nixos-container with user namespaces (`-U`) then the nix store is owned by nobody/nogroup, and postfix-setup.service will be unable to create or modify `aliases.db`. Since the file would otherwise be owned by root, we should tell postfix to not assume the user and permissions of the `aliases` file by setting -o and -p From postalias(1) > -o Do not release root privileges when processing a non-root input file. By > default, postalias(1) drops root privileges and runs as the source file owner > instead. > -p Do not inherit the file access permissions from the input file when > creating a new file. Instead, create a new file with default access > permissions (mode 0644).
Diffstat (limited to 'pkgs/development/python-modules/httpserver')
0 files changed, 0 insertions, 0 deletions