Fix mode for JAIL_FIXFD_FILE in the unix jail

Very much looks like copy-pasta in ede8c3db

JAIL_FIXFD_VSMMGT and JAIL_FIXFD_VSMWRK work on directories but,
as the name implies, JAIL_FIXFD_FILE not.
parent 3eeb8c4f
......@@ -296,7 +296,7 @@ vju_fixfd(int fd, enum jail_fixfd_e what)
switch (what) {
case JAIL_FIXFD_FILE:
AZ(fchmod(fd, 0750));
AZ(fchmod(fd, 0600));
AZ(fchown(fd, vju_wrkuid, vju_wrkgid));
break;
case JAIL_FIXFD_VSMMGT:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment