2 * Copyright (C) 2006, 2010 Novell, Inc.
3 * Written by Andreas Gruenbacher <agruen@suse.de>
5 * This program is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License as published by the
7 * Free Software Foundation; either version 2, or (at your option) any
10 * This program is distributed in the hope that it will be useful, but
11 * WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * General Public License for more details.
16 #ifndef __RICHACL_XATTR_H
17 #define __RICHACL_XATTR_H
19 #include <linux/richacl.h>
21 #define RICHACL_XATTR "system.richacl"
23 struct richace_xattr {
31 struct richacl_xattr {
32 unsigned char a_version;
33 unsigned char a_flags;
40 #define ACL4_XATTR_VERSION 0
41 #define ACL4_XATTR_MAX_COUNT 1024
43 extern struct richacl *richacl_from_xattr(const void *, size_t);
44 extern size_t richacl_xattr_size(const struct richacl *acl);
45 extern void richacl_to_xattr(const struct richacl *, void *);
47 #endif /* __RICHACL_XATTR_H */