zuluCrypt  5.7.1
About: zuluCrypt is a simple but feature rich solution for hard drives encryption. It can manage PLAIN dm-crypt, LUKS, TrueCrypt and VeraCrypt encrypted volumes.
  Fossies Dox: zuluCrypt-5.7.1.tar.xz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

path_access.c File Reference
#include <sys/stat.h>
#include <fcntl.h>
#include "../constants.h"
#include "../lib/includes.h"
#include "includes.h"
#include <errno.h>
#include <unistd.h>
Include dependency graph for path_access.c:

Go to the source code of this file.


static int has_device_access (const char *path, int c)
static int path_is_accessible (const char *path, uid_t uid, int action)
int zuluCryptCanOpenPathForReading (const char *path, uid_t uid)
int zuluCryptCanOpenPathForWriting (const char *path, uid_t uid)
void zuluCryptPrepareSocketPath (uid_t uid)
int zuluCryptGetPassFromFile (int *socket_path, const char *path, uid_t uid, string_t *st)
char * zuluCryptEvaluateDeviceTags (const char *tag, const char *path)
char * zuluCryptUUIDFromPath (const char *device)

Function Documentation

◆ has_device_access()

static int has_device_access ( const char *  path,
int  c 

Definition at line 28 of file path_access.c.

References ZULUCRYPTread.

Referenced by path_is_accessible().

◆ path_is_accessible()

static int path_is_accessible ( const char *  path,
uid_t  uid,
int  action 

◆ zuluCryptCanOpenPathForReading()

int zuluCryptCanOpenPathForReading ( const char *  path,
uid_t  uid 

Definition at line 98 of file path_access.c.

References path_is_accessible(), and ZULUCRYPTread.

Referenced by crypt_opt(), zuluCryptEXEOpenVolume(), and zuluMountMount().

◆ zuluCryptCanOpenPathForWriting()

int zuluCryptCanOpenPathForWriting ( const char *  path,
uid_t  uid 

◆ zuluCryptEvaluateDeviceTags()

char* zuluCryptEvaluateDeviceTags ( const char *  tag,
const char *  path 

◆ zuluCryptGetPassFromFile()

◆ zuluCryptPrepareSocketPath()

void zuluCryptPrepareSocketPath ( uid_t  uid)

Definition at line 108 of file path_access.c.

Referenced by zuluCryptEXEOpenVolume(), and zuluCryptGetPassFromFile().

◆ zuluCryptUUIDFromPath()