]> git.proxmox.com Git - proxmox-mail-forward.git/commit - src/main.rs
initial commit
authorFiona Ebner <f.ebner@proxmox.com>
Fri, 21 Oct 2022 13:02:45 +0000 (15:02 +0200)
committerWolfgang Bumiller <w.bumiller@proxmox.com>
Thu, 10 Nov 2022 10:28:17 +0000 (11:28 +0100)
commit28f222cd6ea4415e4d24c54e302133962f2ab414
treee3db26ce63d261c06110b51de91691dddba66288
initial commit

It is intended to replace the current pvemailforward binary+script in
PVE and also be used in PBS. The implemenation is largely based on the
pvemailforward script to try and keep behavior mostly the same in PVE.

To read the config in PBS, the binary would need to belong to
backup:backup with setuid and setgid bits (proxmox-backup is 700 owned
by backup:backup and user.cfg is 640 owned by root:backup). To read
the configs in PVE the setgid bit for www-data would need to be set.

To avoid this issue, the helper will be a root-owned setuid binary and
set the effective UID to the real UID, after reading in the config
files.

Signed-off-by: Fiona Ebner <f.ebner@proxmox.com>
.cargo/config [new file with mode: 0644]
.gitignore [new file with mode: 0644]
Cargo.toml [new file with mode: 0644]
rustfmt.toml [new file with mode: 0644]
src/main.rs [new file with mode: 0644]