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)  

libzuluCrypt-exe.h File Reference
#include <sys/types.h>
Include dependency graph for libzuluCrypt-exe.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  struct_opts_1
 

Macros

#define TRUECRYPT_MAX_KEYFILES   16
 

Typedefs

typedef struct struct_opts_1 struct_opts
 

Functions

void zuluCryptExeSetOriginalUID (uid_t s)
 
int zuluCryptExeOriginalUserIsNotRoot ()
 
void zuluCryptEXEGetOpts (int argc, char *argv[], struct_opts *)
 
int zuluCryptEXESaveAndRestoreVolumeHeader (const struct_opts *opts, uid_t uid, int option)
 
int zuluCryptEXEVolumeInfo (const char *mapper, const char *device, uid_t)
 
int zuluCryptEXECloseVolume (const char *device, const char *mapping_name, uid_t)
 
int zuluCryptEXEOpenVolume (const struct_opts *, const char *mapping_name, uid_t uid)
 
int zuluCryptEXECreateVolume (const struct_opts *, const char *mapping_name, uid_t uid)
 
int zuluCryptEXEAddKey (const struct_opts *, uid_t)
 
int zuluCryptEXERemoveKey (const struct_opts *, uid_t)
 
int zuluCryptIsPathValid (const char *path)
 
int zuluCryptCanOpenPathForWriting (const char *path, uid_t uid)
 
int zuluCryptCanOpenPathForReading (const char *path, uid_t uid)
 
void zuluCryptCheckInvalidKey (const char *device)
 
int zuluCryptCheckIfPartitionIsSystemPartition (const char *device)
 
int zuluCryptExeFileEncrypt (const struct_opts *, uid_t uid)
 
int zuluCryptExeFileDecrypt (const struct_opts *, uid_t uid)
 
int zuluCryptCheckOpenedMapper (const char *mapper)
 
int zuluCryptCheckIfMounted (const char *path)
 
int zuluCryptEXEWriteDeviceWithJunk (const struct_opts *opts, const char *mapping_name, uid_t uid)
 
int zuluCryptEXEOpenPlainAsMe (const struct_opts *opts, const char *mapping_name, uid_t uid)
 
char * zuluCryptVolumeDeviceName (const char *)
 
void zuluCryptEXEHelp (void)
 
int zuluCryptCheckSystemTools (void)
 
char * zuluCryptDeviceFromUUID (const char *uuid)
 
int zuluCryptPrintPartitions (int option, int info, uid_t uid)
 
char * zuluCryptGetMountPointFromPath (const char *path)
 

Macro Definition Documentation

◆ TRUECRYPT_MAX_KEYFILES

#define TRUECRYPT_MAX_KEYFILES   16

Definition at line 29 of file libzuluCrypt-exe.h.

Typedef Documentation

◆ struct_opts

typedef struct struct_opts_1 struct_opts

Function Documentation

◆ 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 
)

◆ zuluCryptCheckIfMounted()

int zuluCryptCheckIfMounted ( const char *  path)

◆ zuluCryptCheckIfPartitionIsSystemPartition()

int zuluCryptCheckIfPartitionIsSystemPartition ( const char *  device)

◆ zuluCryptCheckInvalidKey()

void zuluCryptCheckInvalidKey ( const char *  device)

◆ zuluCryptCheckOpenedMapper()

int zuluCryptCheckOpenedMapper ( const char *  mapper)

Definition at line 23 of file check_opened_mapper.c.

References StringsAreEqual.

Referenced by open_plain_as_me_1(), and zuluCryptEXECreateVolume().

◆ zuluCryptCheckSystemTools()

int zuluCryptCheckSystemTools ( void  )

◆ zuluCryptDeviceFromUUID()

char* zuluCryptDeviceFromUUID ( const char *  uuid)

◆ zuluCryptEXEAddKey()

◆ zuluCryptEXECloseVolume()

◆ zuluCryptEXECreateVolume()

int zuluCryptEXECreateVolume ( const struct_opts ,
const char *  mapping_name,
uid_t  uid 
)

Definition at line 80 of file create_volumes.c.

References struct_opts_1::ask_confirmation, struct_opts_1::device, struct_opts_1::existing_key, struct_opts_1::fs, struct_opts_1::key, struct_opts_1::key_source, struct_opts_1::rng, String(), StringAtLeastOneMatch_1(), StringContent(), StringConvertToInt(), StringFree(), StringGetFromTerminal_1(), StringLength(), StringListAppendString_1(), StringListArray(), StringListMultipleDelete(), StringListSize(), StringListStringArray_0(), StringListVoid, StringPrefixEqual(), StringsAreEqual, StringsAreEqual_1(), StringsAreNotEqual_2(), StringSilentlyGetFromTerminal_1(), StringVoid, struct_opts_1::tcrypt_hidden_volume_key, struct_opts_1::tcrypt_hidden_volume_multiple_keyfiles, struct_opts_1::tcrypt_hidden_volume_size, TCRYPT_KEYFILE, struct_opts_1::tcrypt_multiple_keyfiles, TCRYPT_PASSPHRASE, struct_opts_1::type, ZULUCRYPT_KEY_MAX_SIZE, zuluCryptCanOpenPathForWriting(), zuluCryptCheckOpenedMapper(), zuluCryptCreateKeyFile(), zuluCryptCreateKeyFiles(), zuluCryptCreateMapperName(), zuluCryptCreateTCryptVolume(), zuluCryptCreateVolume(), zuluCryptDeleteKeyFiles(), zuluCryptExeOriginalUserIsNotRoot(), zulucryptFileSystemIsSupported(), zuluCryptGetPassFromFile(), zuluCryptGetVolumeSize(), ZULUCRYPTlongMapperPath, ZULUCRYPTmkfs, zuluCryptPartitionIsMounted(), zuluCryptPartitionIsSystemPartition(), zuluCryptPathIsNotValid(), zuluCryptSecurityDropElevatedPrivileges(), zuluCryptSecurityGainElevatedPrivileges(), zuluCryptUserIsAMemberOfAGroup(), zuluExit(), and zuluExit_1().

Referenced by zuluCryptEXE().

◆ zuluCryptExeFileDecrypt()

int zuluCryptExeFileDecrypt ( const struct_opts ,
uid_t  uid 
)

Definition at line 204 of file crypt_file.c.

References crypt_opt(), and DECRYPT.

Referenced by zuluCryptEXE().

◆ zuluCryptExeFileEncrypt()

int zuluCryptExeFileEncrypt ( const struct_opts ,
uid_t  uid 
)

Definition at line 209 of file crypt_file.c.

References crypt_opt(), and ENCRYPT.

Referenced by zuluCryptEXE().

◆ zuluCryptEXEGetOpts()

◆ zuluCryptEXEHelp()

void zuluCryptEXEHelp ( void  )

Definition at line 29 of file help.c.

Referenced by main().

◆ zuluCryptEXEOpenPlainAsMe()

int zuluCryptEXEOpenPlainAsMe ( const struct_opts opts,
const char *  mapping_name,
uid_t  uid 
)

Definition at line 252 of file write_device_with_junk.c.

References open_plain_as_me_1().

Referenced by zuluCryptEXE().

◆ zuluCryptEXEOpenVolume()

int zuluCryptEXEOpenVolume ( const struct_opts ,
const char *  mapping_name,
uid_t  uid 
)

Definition at line 254 of file open_volume.c.

References _device_path(), _open_volume(), open_struct_t::bitlocker_volume, struct_opts_1::device, open_struct_t::device, struct_opts_1::fs_opts, open_struct_t::fs_opts, tvcrypt::iteration_count, open_struct_t::iteration_count, struct_opts_1::key, open_struct_t::key, open_struct_t::key_len, struct_opts_1::key_source, open_struct_t::key_source, open_struct_t::luks_detached_header, struct_opts_1::luks_external_header, open_struct_t::m_flags, struct_opts_1::m_opts, open_struct_t::m_opts, open_struct_t::m_point, open_struct_t::mapper_name, open_struct_t::mapper_path, struct_opts_1::mount_point, struct_opts_1::offset, struct_opts_1::open_mount, open_struct_t::plain_dm_properties, struct_opts_1::plugin_path, struct_opts_1::share, String(), StringAppend(), StringAtLeastOneMatch(), StringContent(), StringCopy(), StringDelete(), StringFree(), StringHasComponent(), StringHasNoComponent(), StringLastIndexOfChar_1(), StringLength(), StringListArray(), StringListDelete(), StringListSize(), StringListStringArray_0(), StringMultipleAppend(), StringMultiplePrepend(), StringsAreEqual, StringsAreNotEqual, StringSilentlyGetFromTerminal_1(), StringSize(), StringVoid, open_struct_t::system_volume, TCRYPT_KEYFILE, open_struct_t::tcrypt_keyfiles, open_struct_t::tcrypt_keyfiles_count, struct_opts_1::tcrypt_multiple_keyfiles, open_struct_t::trueCrypt_volume, tvcrypt::type, struct_opts_1::type, open_struct_t::uid, open_struct_t::use_backup_header, struct_opts_1::use_cryptsetup_for_bitlocker, open_struct_t::use_cryptsetup_for_bitlocker, open_struct_t::veraCrypt_volume, ZULUCRYPT_KEY_MAX_SIZE, zuluCryptBindMountVolume(), zuluCryptBindSharedMountPointPathTaken(), zuluCryptBitLockerFullMapperPath(), zuluCryptBitLockerMapperName(), zuluCryptBitLockerMapperPath(), zuluCryptBitLockerType(), zuluCryptCanOpenPathForReading(), zuluCryptCanOpenPathForWriting(), zuluCryptCheckInvalidKey(), zuluCryptCreateKeyFiles(), zuluCryptCreateMapperName(), zuluCryptCreateMountPoint(), zuluCryptCreateMountPointPrefix(), zuluCryptDeleteKeyFiles(), zuluCryptDeviceHasAgivenFileSystem(), zuluCryptGetPassFromFile(), zuluCryptMapperPrefix(), zuluCryptMountFlagsAreNotCorrect(), zuluCryptPluginManagerGetKeyFromModule(), zuluCryptPrepareSocketPath(), zuluCryptRunTimePath(), zuluCryptSecurityDropElevatedPrivileges(), zuluCryptSecurityGainElevatedPrivileges(), zuluCryptSecurityLockMemory_1(), ZULUCRYPTshortMapperPath, zuluCryptTrueCryptVeraCryptVolumeInfo(), zuluCryptUseCryptsetupBitLocker(), zuluCryptUseDislockerBitLocker(), zuluCryptUserIsAMemberOfAGroup(), zuluCryptUUIDFromPath(), zuluCryptVolumeIsInSystemVolumeList(), zuluExit(), and zuluExit_1().

Referenced by zuluCryptEXE(), and zuluMountCryptoMount().

◆ zuluCryptExeOriginalUserIsNotRoot()

◆ zuluCryptEXERemoveKey()

◆ zuluCryptEXESaveAndRestoreVolumeHeader()

◆ zuluCryptExeSetOriginalUID()

void zuluCryptExeSetOriginalUID ( uid_t  s)

Definition at line 54 of file security.c.

References _original_UID.

Referenced by main().

◆ zuluCryptEXEVolumeInfo()

◆ zuluCryptEXEWriteDeviceWithJunk()

◆ zuluCryptGetMountPointFromPath()

char* zuluCryptGetMountPointFromPath ( const char *  path)

Definition at line 380 of file mountinfo.c.

Referenced by _unmount_dead_mount_points(), and zuluMountUMount().

◆ zuluCryptIsPathValid()

int zuluCryptIsPathValid ( const char *  path)

◆ zuluCryptPrintPartitions()

◆ zuluCryptVolumeDeviceName()