From c3b6fa9d9549549a21ed96244838e36bbf4cb1ae Mon Sep 17 00:00:00 2001 From: Bjoern Jacke Date: Fri, 11 Feb 2022 00:45:00 +0000 Subject: [PATCH] vfs_aixacl: add proper header file BUG: https://bugzilla.samba.org/show_bug.cgi?id=7239 Signed-off-by: Bjoern Jacke Reviewed-by: Jeremy Allison (cherry picked from commit 396c17160c19c6df43123074bf62268c6ed0f9e4) --- source3/lib/sysacls.c | 4 ++++ source3/modules/vfs_aixacl.h | 34 ++++++++++++++++++++++++++++++++++ 2 files changed, 38 insertions(+) create mode 100644 source3/modules/vfs_aixacl.h diff --git a/source3/lib/sysacls.c b/source3/lib/sysacls.c index e76e78e48e7..e287bb5d488 100644 --- a/source3/lib/sysacls.c +++ b/source3/lib/sysacls.c @@ -34,6 +34,10 @@ #include "modules/vfs_hpuxacl.h" #endif +#if defined(HAVE_AIX_ACLS) +#include "modules/vfs_aixacl.h" +#endif + #undef DBGC_CLASS #define DBGC_CLASS DBGC_ACLS diff --git a/source3/modules/vfs_aixacl.h b/source3/modules/vfs_aixacl.h new file mode 100644 index 00000000000..f9fe3f85dc6 --- /dev/null +++ b/source3/modules/vfs_aixacl.h @@ -0,0 +1,34 @@ +/* + Copyright (C) Bjoern Jacke 2022 + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . +*/ + +#ifndef __VFS_AIXACL_H__ +#define __VFS_AIXACL_H__ + +SMB_ACL_T aixacl_sys_acl_get_fd(vfs_handle_struct *handle, + files_struct *fsp, + SMB_ACL_TYPE_T type, + TALLOC_CTX *mem_ctx); + +int aixacl_sys_acl_set_fd(vfs_handle_struct *handle, + files_struct *fsp, + SMB_ACL_TYPE_T type, + SMB_ACL_T acl_d); + +int aixacl_sys_acl_delete_def_fd(vfs_handle_struct *handle, + files_struct *fsp); + +#endif -- 2.20.2