Re: Default libkrb5 ccache location

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

 



On Fri, 02.08.13 11:52, Florian Weimer (fweimer@xxxxxxxxxx) wrote:

> 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.

No, it doesn't, since we explicitly include the machine ID in the name,
which is supposed to be unique to the local system.

Lennart

-- 
Lennart Poettering - Red Hat, Inc.
-- 
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