33 #define LIX_MAX_PATH 256u 38 #define LIX_MAX_DENTRY_DEPTH 30 43 #ifdef INT_COMPILER_MSVC 44 #define LIX_FILE_HAS_SUID(mode) ((mode & S_ISUID) || ((mode & (S_ISGID | S_IXGRP)) == (S_ISGID | S_IXGRP))) 46 #define LIX_FILE_HAS_SUID(mode) \ 47 ({ __auto_type mode_suid_ = (mode); \ 48 ((mode_suid_ & S_ISUID) || ((mode_suid_ & (S_ISGID | S_IXGRP)) == (S_ISGID | S_IXGRP))); }) 84 #endif // LIX_FILES_H_
int INTSTATUS
The status data type.
struct _LIX_QSTR * PLIX_QSTR
DWORD Hash
Unused by introcore.
INTSTATUS IntLixDentryGetName(QWORD Dentry, char **FileName, DWORD *NameLength)
Gets the file-name that corresponds to the provided Dentry (guest virtual address).
struct _LIX_QSTR LIX_QSTR
Describes a string used for paths by the linux kernel (quick string).
QWORD HashLen
The union between the Hash and the Length.
INTSTATUS IntLixFileGetDentry(QWORD File, QWORD *Dentry)
Reads the value of the dentry field of the 'struct file'.
DWORD Length
The length of the string.
void IntLixFilesCacheUninit(void)
Removes and frees the entries of the dentry-cache.
INTSTATUS IntLixGetFileName(QWORD FileStruct, char **FileName, DWORD *NameLength, QWORD *DentryGva)
Gets the file-name that corresponds to the provided FileStruct (guest virtual address).
QWORD Name
A pointer to the string.
Describes a string used for paths by the linux kernel (quick string).
INTSTATUS IntLixFileGetPath(QWORD FileStructGva, char **Path, DWORD *Length)
Gets the path that corresponds to the provided FileStructGva (guest virtual address of the 'struct fi...