#include <glib.h>
#include <stdbool.h>
Go to the source code of this file.
Functions | |
bool | client_allow_file (const struct client *client, const char *path_fs, GError **error_r) |
Is this client allowed to use the specified local file? |
bool client_allow_file | ( | const struct client * | client, | |
const char * | path_fs, | |||
GError ** | error_r | |||
) |
Is this client allowed to use the specified local file?
Note that this function is vulnerable to timing/symlink attacks. We cannot fix this as long as there are plugins that open a file by its name, and not by file descriptor / callbacks.
path_fs | the absolute path name in filesystem encoding |