Features/Polyinstantiated Temporary Directories
Polyinstantiated Temporary Directories
Polyinstatiate temporary directories for different users to avoid risks comming with insecure tempfile creation. Targetted directories are at least /tmp, /var/tmp and maybe /dev/shm.
- Name: Your Name
- email: <your email address so we can contact you, invite you to meetings, etc.>
- Targeted release: Fedora 22
- Last updated: (DATE)
- Percentage of completion: XX%
Benefit to Fedora
It increases the security of a system, because it mitigates insecure tempfile attacks, because users can only access their own temporary directories.
It has to be decided which directories should be polyinstantiated and a configuration for pam_namespace needs to be created. Probably this needs to be included in some system-config tool to enable/disable this easily.
How To Test
Login with two user accounts, create a files in each targetted directory as the first user and try to access the files as the other user.
The user should not see or be able to access the created files in the targetted diretories.
Users will see different contents at the targetted directories, which may irritate them when they try to exchange files between two user accounts. On the other hand they are protected in case they create a temporary file with insecure permissions or with a guessable filename.