1 /*
2    Copyright 2017 Skytechnology sp. z o.o.
3 
4    This file is part of LizardFS.
5 
6    LizardFS is free software: you can redistribute it and/or modify
7    it under the terms of the GNU General Public License as published by
8    the Free Software Foundation, version 3.
9 
10    LizardFS is distributed in the hope that it will be useful,
11    but WITHOUT ANY WARRANTY; without even the implied warranty of
12    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13    GNU General Public License for more details.
14 
15    You should have received a copy of the GNU General Public License
16    along with LizardFS. If not, see <http://www.gnu.org/licenses/>.
17  */
18 
19 #include "common/platform.h"
20 
21 #include "common/exception.h"
22 #include "common/richacl.h"
23 #include "mount/lizard_client.h"
24 
25 // NOTICE(sarna): OSX-specific, it's not libacl, even though it looks like it
26 #include <sys/acl.h>
27 
28 namespace osxAclConverter {
29 
30 LIZARDFS_CREATE_EXCEPTION_CLASS(AclConversionException, Exception);
31 
32 RichACL extractAclObject(const void *data, size_t /*size*/);
33 
34 std::vector<uint8_t> objectToOsxXattr(const RichACL &acl);
35 
36 } // namespace osxAclConverter
37