Bug 827 - Allow selection of temporary directory for sudoedit
Allow selection of temporary directory for sudoedit
Status: RESOLVED FIXED
Product: Sudo
Classification: Unclassified
Component: Sudo
1.8.21
PC Linux
: low enhancement
Assigned To: Todd C. Miller
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2018-03-29 07:52 MDT by Chiraag Nataraj
Modified: 2018-05-01 07:05 MDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Chiraag Nataraj 2018-03-29 07:52:22 MDT
It would be useful to be able to set the temporary directory used by sudoedit (e.g. through a setting in sudoers). Namely, this came up in the context of sandboxing an application where /var/tmp read/write access was not given by default (a tmpfs was mounted there) and there was no option to change the temporary directory used by sudo to /tmp (where the application _does_ have access).

Sincerely,

Chiraag
Comment 1 Todd C. Miller 2018-04-04 20:27:53 MDT
sudoedit will choose /tmp if /var/tmp is missing but doesn't currently check for writability.  Adding an explicit access check should solve this without needing an extra configuration option.
Comment 2 Todd C. Miller 2018-04-05 08:57:22 MDT
I believe this should be addressed by https://www.sudo.ws/repos/sudo/rev/1e29ade3f4b2
Comment 3 Todd C. Miller 2018-05-01 07:05:25 MDT
sudo 1.8.23 checks for writability of the temp dir, not just existence.