src/client_file.h File Reference

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

Function Documentation

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.

Parameters:
path_fs the absolute path name in filesystem encoding
Returns:
true if access is allowed

Generated on 17 Jul 2013 for MPD by  doxygen 1.6.1