Default libkrb5 ccache location

Stephen Gallagher sgallagh at redhat.com
Wed Jul 31 00:50:33 UTC 2013


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 07/30/2013 05:53 PM, Lennart Poettering wrote:
> On Tue, 30.07.13 08:07, Simo Sorce (simo at redhat.com) wrote:
> 
>>> The same component that creates the temporary directory?
>>> 
>>> In pseudo code:
>>> 
>>> char temp[] = "/tmp/krb.XXXXXX", link[PATH_MAX]; char
>>> *machine_id, *home;
>>> 
>>> mkdtemp(temp); machine_id =
>>> get_file_contents("/etc/machine_id"); *strchrnul(machined_id,
>>> '\n') = 0; home = getenv("HOME); snprintf(link, "%s/.krb-%s",
>>> home, machine_id); symlink(temp, link);
>>> 
>>> Of course, you should skip this if the symlink already exists
>>> and points to a valid directory...
>> 
>> This doesn't make any sense whatsoever, if we are back to
>> unpredictable file names and trolling I may as well just use
>> /tmp/krb5cc_XXXXXX only.
>> 
>> Ccaches do not belong in the home directory, period.
> 
> Read again what I wrote above. The ccche is not in the home
> directory following my proposal. Only a symlink to give it a stable
> name is. And the ccache is stored in /tmp, i.e. on tmpfs.
> 

That still doesn't help us, because we cannot create the symlink at
the same time we create the directory, since it may not yet be
mounted. I'm not sure how this improves the situation.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.13 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iEYEARECAAYFAlH4X1kACgkQeiVVYja6o6PCDACfVDRPfMmea0F7SDHtojvftxKi
qsAAniFn8o+sxvUQZoMdt8wd/F1SGG5u
=evY3
-----END PGP SIGNATURE-----


More information about the devel mailing list