blob: b3377bdf30b3581dde8666acd361c13953aad95e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
#ifndef NETFS_DAEMON_IOHELPERS
#define NETFS_DAEMON_IOHELPERS
#include <sys/stat.h>
class ModeCheck {
public:
static bool ReadableBy(const struct stat &, uid_t u, gid_t g);
static bool WritableBy(const struct stat &, uid_t u, gid_t g);
static bool ExecutableBy(const struct stat &, uid_t u, gid_t g);
};
#endif
|