Created attachment 16706 [details] possible patch to include type into some 3 argument *acl_sys_set_fd() refs In the stable release 4.14.6 the prototype for solarisacl_sys_acl_set_fd() in s3/modules/vfs_solarisacl.h is listed with 3 arguments, while the code in s3/modules/vfs_solarisacl.c has 4. This leads to a compile error. The latter reflects the upcoming release, with code in solarisacl_sys_acl_set_fd() checking for the type. The commit was "vfs: add acl type arg to SMB_VFS_SYS_ACL_SET_FD()" that made the partial change. Later commits which updated the header files and other files may be desired since much code is touched. Or not since this branch is meant to be stable. If the later, a patch mimicking what was done with posixacl_sys_acl_set_fd() is attached. solarisacl_sys_acl_set_fd() is only called from sys_acl_set_fd() in s3/lib/sysacls.c which in turn is only called by vfswrap_sys_acl_set_fd() in s3/modules/vfs_default.c when type == SMB_ACL_TYPE_ACCESS. The proposed patch mimics the call to posixacl_sys_acl_set_fd() by setting the type argument to SMB_ACL_TYPE_ACCESS. More OS's, like tru64 and aix, are also affected and are updated the same way to resolve compile errors. The patch updates s3/lib/sysacls.c and the header files (except for aix, which doesn't seem to exist? but is also 4 args in vfs_aixacl.c but 3 in s3/lib/sysacls.c). hpux uses 3 arguments everywhere and that is not changed here. The upcoming release is not affected, only the 4.14 line.
Created attachment 16711 [details] git-am fix for 4.14.next. Assigned to Ralph for review for 4.14.next. No ci, as this is only changing non-tested OS's. David, can you confirm you're happy with this and the 'Signed-off-by:'. You might also want to send in a "Samba Developer's Declaration" as specified here: https://www.samba.org/samba/devel/copyright-policy.html if you're going to be patching Samba more in future ! Thanks a lot for your help.
Confirmed - I'm OK with "Signed-off-by:" addition. I'll look into that "Samba Developer's Declaration" for the future.
Reassigning to Jule for inclusion in 4.14 (only, not 4.15 or 4.13!).
(In reply to Ralph Böhme from comment #3) Please add my reviewed-by before pushing... :)
(In reply to Ralph Böhme from comment #3) Reviewed-by added and pushed to autobuild-v4-14-test.
This bug was referenced in samba v4-14-test: 340aff1c8f419c5b1ce18fa5f8b080d4426da65f
Closing out bug report. Thanks!
This bug was referenced in samba v4-14-stable (Release samba-4.14.7): 340aff1c8f419c5b1ce18fa5f8b080d4426da65f