New API function iso_local_set_acl_text()
This commit is contained in:
parent
723d23321a
commit
24fadd7649
@ -415,6 +415,7 @@ int aaip_decode_acl(unsigned char *data, size_t num_data, size_t *consumed,
|
|||||||
@param flag Bitfield for control purposes
|
@param flag Bitfield for control purposes
|
||||||
bit0= set default ACL rather than access ACL
|
bit0= set default ACL rather than access ACL
|
||||||
@return >0 ok
|
@return >0 ok
|
||||||
|
0 no ACL manipulation adapter available
|
||||||
-1 failure of system ACL service (see errno)
|
-1 failure of system ACL service (see errno)
|
||||||
*/
|
*/
|
||||||
int aaip_set_acl_text(char *path, char *text, int flag);
|
int aaip_set_acl_text(char *path, char *text, int flag);
|
||||||
|
@ -4141,8 +4141,8 @@ int aaip_xinfo_func(void *data, int flag);
|
|||||||
* bit0= obtain "default" ACL rather than "access" ACL
|
* bit0= obtain "default" ACL rather than "access" ACL
|
||||||
* (Linux directories can have a "default" ACL which influences
|
* (Linux directories can have a "default" ACL which influences
|
||||||
* the permissions of newly created files.)
|
* the permissions of newly created files.)
|
||||||
* bit4= if no ACL available: return *text == NULL
|
* bit4= if no ACL is available: return *text == NULL
|
||||||
else: produce ACL from PROSIX permissions
|
else: produce ACL from POSIX permissions
|
||||||
* bit15= free memory and return 1
|
* bit15= free memory and return 1
|
||||||
* @return
|
* @return
|
||||||
* 2 ACL produced from POSIX permissions
|
* 2 ACL produced from POSIX permissions
|
||||||
@ -4155,4 +4155,17 @@ int aaip_xinfo_func(void *data, int flag);
|
|||||||
int iso_node_get_acl_text(IsoNode *node, char **text, int flag);
|
int iso_node_get_acl_text(IsoNode *node, char **text, int flag);
|
||||||
|
|
||||||
|
|
||||||
|
/* Set the ACL of the given file in the local filesystem to a given list
|
||||||
|
in long text form.
|
||||||
|
@param disk_path Path to the file
|
||||||
|
@param text The input text (0 terminated, ACL long text form)
|
||||||
|
@param flag Bitfield for control purposes
|
||||||
|
bit0= set default ACL rather than access ACL
|
||||||
|
@return >0 ok
|
||||||
|
0 no ACL manipulation adapter available
|
||||||
|
-1 failure of system ACL service (see errno)
|
||||||
|
*/
|
||||||
|
int iso_local_set_acl_text(char *disk_path, char *text, int flag);
|
||||||
|
|
||||||
|
|
||||||
#endif /*LIBISO_LIBISOFS_H_*/
|
#endif /*LIBISO_LIBISOFS_H_*/
|
||||||
|
@ -1517,3 +1517,19 @@ bad_decode:;
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
int iso_local_set_acl_text(char *disk_path, char *text, int flag)
|
||||||
|
{
|
||||||
|
|
||||||
|
#ifdef Libisofs_with_aaiP
|
||||||
|
|
||||||
|
return aaip_set_acl_text(disk_path, text, flag);
|
||||||
|
|
||||||
|
#else /* Libisofs_with_aaiP */
|
||||||
|
|
||||||
|
return 0;
|
||||||
|
|
||||||
|
#endif /* ! Libisofs_with_aaiP */
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user