-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 08/13/2012 11:18 AM, Nalin Dahyabhai wrote: > On Sun, Aug 12, 2012 at 07:03:52AM -0400, Daniel J Walsh wrote: >> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 >> >> On 08/10/2012 10:05 AM, Lennart Poettering wrote: >>> On Fri, 10.08.12 08:39, Daniel J Walsh (dwalsh@xxxxxxxxxx) wrote: >>> >>>>>>> What benefit are we expecting to get here? >>>>>> >>>>>> kerberos library currently does a matchpathcon on /tmp/BLAH >>>>>> files and sets the label correctly. With this change in the >>>>>> library we are seeing huge performance hits of apache services >>>>>> caused by loading the regex. >>>>> >>>>> What is kerberos doing under /tmp and why is it being done >>>>> repeatedly by different processes? >>>>> >>>> Actually /var/tmp/HOST_0 /var/tmp/HTTP_23 ... Kerberos Replay >>>> Cache. Every time someone contacts an apache server using kerberos it >>>> needs to update this file, it does this via mktemp >>>> (/tmpHTTPD_23XXXX), rename. >>> >>> Hmm, but the ultimate name is still guessable? That sounds really >>> dangerous. Guessable names in /tmp (or /var/tmp) are prone to DoS >>> attacks... >>> >>> Lennart . >> One would guess that the Kerberos Libraries handle this situation, since >> it has been doing it for years. > > No, the library pretty much just fails if it detects shenanigans. You get > an error, you call up the admin, they nuke the suspicious file and then go > yell at someone. > > If /run/user/$UID is available to non-users without them having to log in > and trigger its creation first, it's probably worth moving. Or we should > arrange to have $KRB5RCACHEDIR set to a better location when we start a > daemon. > > Nalin > Lennart is there something you can add to the unit file to create a UID directory in /run/user? -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAlApLToACgkQrlYvE4MpobOf1gCePMKaq0ctD5cbzRTbNAblcSrr /aUAn00eVbt+Qrlzx/m5n5EG8Z/KK3Mt =7+F0 -----END PGP SIGNATURE----- -- This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to majordomo@xxxxxxxxxxxxx with the words "unsubscribe selinux" without quotes as the message.