]> git.proxmox.com Git - mirror_lxcfs.git/blobdiff - src/utils.h
utils: add get_task_personality helper
[mirror_lxcfs.git] / src / utils.h
index dc0ec3a03a2c3fdb6226994d93b6d1c1e0e7657a..7ed021a92891ecc927e211fae72e3f53d8655479 100644 (file)
@@ -76,4 +76,7 @@ static inline bool file_exists(const char *f)
 #define PROTECT_OPEN (PROTECT_OPEN_WITH_TRAILING_SYMLINKS | O_NOFOLLOW)
 extern char *read_file_at(int dfd, const char *fnam, unsigned int o_flags);
 
+extern int get_task_personality(pid_t pid, __u32 *personality);
+extern int get_host_personality(__u32 *personality);
+
 #endif /* __LXCFS_UTILS_H */