Default libkrb5 ccache location
Florian Weimer
fweimer at redhat.com
Fri Aug 2 09:52:46 UTC 2013
On 07/30/2013 03:27 AM, Lennart Poettering 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...
I'm not sure if this is a supported use case, but the above breaks if
/home is mounted on multiple machines.
--
Florian Weimer / Red Hat Product Security Team
More information about the devel
mailing list