2 Unix SMB/Netbios implementation.
3 VFS module to get and set irix acls
4 Copyright (C) Michael Adam 2006,2008
6 This program 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; either version 3 of the License, or
9 (at your option) any later version.
11 This program is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
16 You should have received a copy of the GNU General Public License
17 along with this program. If not, see <http://www.gnu.org/licenses/>.
21 #include "system/filesys.h"
22 #include "smbd/smbd.h"
23 #include "modules/vfs_irixacl.h"
26 /* prototypes for private functions first - for clarity */
28 /* public functions - the api */
30 SMB_ACL_T
irixacl_sys_acl_get_file(vfs_handle_struct
*handle
,
38 SMB_ACL_T
irixacl_sys_acl_get_fd(vfs_handle_struct
*handle
,
45 int irixacl_sys_acl_set_file(vfs_handle_struct
*handle
,
54 int irixacl_sys_acl_set_fd(vfs_handle_struct
*handle
,
62 int irixacl_sys_acl_delete_def_file(vfs_handle_struct
*handle
,
69 /* private functions */
71 /* VFS operations structure */
73 static struct vfs_fn_pointers irixacl_fns
= {
74 .sys_acl_get_file
= irixacl_sys_acl_get_file
,
75 .sys_acl_get_fd
= irixacl_sys_acl_get_fd
,
76 .sys_acl_set_file
= irixacl_sys_acl_set_file
,
77 .sys_acl_set_fd
= irixacl_sys_acl_set_fd
,
78 .sys_acl_delete_def_file
= irixacl_sys_acl_delete_def_file
,
81 NTSTATUS
vfs_irixacl_init(void);
82 NTSTATUS
vfs_irixacl_init(void)
84 return smb_register_vfs(SMB_VFS_INTERFACE_VERSION
, "irixacl",