Skip to contentSkip to conversation

per-user tmpdir

DISCUSSION Russell Coker 1 participant 1 message Jul 30, 2003 SELinux security module

lore
Share & tools
lore
#0 lore raw

Currently there is some discussion on the debian-devel mailing list about libpam-tmpdir and other methods for creating a per-user directory under /tmp and setting $TMP to it.

Under SE Linux this will require mkdir_secure() as the directory will be created under the context of the calling program (/bin/login, sshd, or maybe even crond) not the context of the user.

Of course a per-user $TMP directory provides less benefits under SE Linux. Sym-link attacks are not effective against regular users and will only do any good against sysadm_t. A special $TMP for administrative logins can be easily handled as a special case, however getting it to work for cron jobs is more difficult (and sysadm_crond_t is a domain that is particularly prone to feature-creep).

Writing a SE Linux libpam-tmpdir would probably be a good introduction to SE Linux programming...

Signature · 11 lines
http://www.coker.com.au/selinux/   My NSA Security Enhanced Linux packages
http://www.coker.com.au/bonnie++/  Bonnie++ hard drive benchmark
http://www.coker.com.au/postal/    Postal SMTP/POP benchmark
http://www.coker.com.au/~russell/  My home page



--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to [email protected] with
the words "unsubscribe selinux" without quotes as the message.