acl-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Acl-devel] setfacl is not atomic?


From: K, Dinesh (Nokia - IN/Bangalore)
Subject: [Acl-devel] setfacl is not atomic?
Date: Wed, 27 Feb 2019 06:09:36 +0000

Hi,
When I try to set the acl for a single path from two different services at the same time, it is failing.
Though the return code is success, acl’s set by the second service is overwriting the acl’s set by the first service.
This seems to be happening because setxattri is overwriting the content. Since the last argument is 0 (means "new EA if one with the given name doesn’t already exist, or replace the value of an EA if it does already exist") ?
 
int setxattr(const char *pathname, const char *name, const void *value, size_t size, int flags);
 
Is this kind of known limitation or bug ?
 
 
Regards,
Dinesh.
 
 
 

reply via email to

[Prev in Thread] Current Thread [Next in Thread]