mirror of
https://git.proxmox.com/git/proxmox-mail-forward
synced 2025-04-28 15:32:11 +00:00
use setresuid to drop saved-uid as well
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
parent
5e758590d6
commit
33617e7e02
@ -143,7 +143,7 @@ fn main() {
|
||||
let pve_datacenter_cfg_content = attempt_file_read(PVE_DATACENTER_CFG_FILENAME);
|
||||
|
||||
let real_uid = nix::unistd::getuid();
|
||||
if let Err(err) = nix::unistd::seteuid(real_uid) {
|
||||
if let Err(err) = nix::unistd::setresuid(real_uid, real_uid, real_uid) {
|
||||
log::error!(
|
||||
"mail forward failed: unable to set effective uid to {}: {}",
|
||||
real_uid,
|
||||
|
Loading…
Reference in New Issue
Block a user