Re: Default libkrb5 ccache location

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

 



-----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@xxxxxxxxxx) 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-----
-- 
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/devel
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct





[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]
  Powered by Linux