[systemd-devel] [PATCH v2] Refuse mount on symlink

Lennart Poettering lennart at poettering.net
Thu Aug 14 10:05:06 PDT 2014


On Mon, 21.07.14 19:24, Timofey Titovets (nefelim4ag at gmail.com) wrote:

Doesn't apply to current git. Could you please rebase on current git?

> 
> +int fail_if_symlink(const char *unit, const char* where) {
> +        assert(where);
> +
> +        if (!is_symlink(where))
> +                return 0;

This should probably be "if (is_symlink(where) > 0)".

Also I think we should print an explicit message here, that tells the
admin that mounting symlinks is not supported.

Sorry for the long delay in responding.

Lennart

-- 
Lennart Poettering, Red Hat


More information about the systemd-devel mailing list