util: add getxattr helper apis

To get xattr of given path or fd on newly allocated buffer, add new
helper api getxattr_malloc() and fgetxattr_malloc().
This commit is contained in:
WaLyong Cho
2015-08-04 21:09:48 +09:00
committed by WaLyong Cho
parent 13925e4ce8
commit 7b9c9ab810
2 changed files with 73 additions and 0 deletions
+3
View File
@@ -919,3 +919,6 @@ int parse_mode(const char *s, mode_t *ret);
int mount_move_root(const char *path);
int reset_uid_gid(void);
int getxattr_malloc(const char *path, const char *name, char **value, bool allow_symlink);
int fgetxattr_malloc(int fd, const char *name, char **value);