Re: Default libkrb5 ccache location

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

 



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