ORBit-like /tmp functions


ORBit has some fancy code to create its /tmp/orbit-username directories
[1].  GConf needs something similar, as currently there is a possible
DOS attack whereby user1 creates a /tmp/gconfd-user2 directory, and then
user2 can't log in.

Would it be useful to put a one-stop-shop function for this kind of
stuff in Glib?  It basically scans /tmp for a suitable directory, checks
permissions and users, etc.

[1] ORBit2/src/orb/GIOP/giop.c:giop_tmpdir_init()


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]