You've already forked Zygisk-Assistant
mirror of
https://github.com/snake-4/Zygisk-Assistant.git
synced 2025-09-06 06:37:02 +00:00
Moved headers to includes, various changes...
+ Added better UID checks. + Added MS_SLAVE root mount in the new mount namespace.
This commit is contained in:
29
module/jni/include/mount_parser.hpp
Normal file
29
module/jni/include/mount_parser.hpp
Normal file
@@ -0,0 +1,29 @@
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <unordered_map>
|
||||
|
||||
#include <mntent.h>
|
||||
|
||||
class mount_entry_t
|
||||
{
|
||||
public:
|
||||
mount_entry_t(::mntent *entry);
|
||||
const std::string &getFsName() const;
|
||||
const std::string &getMountPoint() const;
|
||||
const std::string &getType() const;
|
||||
const std::unordered_map<std::string, std::string> &getOptions() const;
|
||||
int getDumpFrequency() const;
|
||||
int getPassNumber() const;
|
||||
|
||||
private:
|
||||
void parseMountOptions(const std::string &input);
|
||||
|
||||
std::string fsname;
|
||||
std::string dir;
|
||||
std::string type;
|
||||
std::unordered_map<std::string, std::string> opts_map;
|
||||
int freq;
|
||||
int passno;
|
||||
};
|
||||
|
||||
std::vector<mount_entry_t> parseMountsFromPath(const char *path);
|
||||
Reference in New Issue
Block a user