Last active
December 23, 2022 20:17
-
-
Save Robertof/e5240dee40ec76fbd05f4d2913fa5b69 to your computer and use it in GitHub Desktop.
Patch to add support for vfs_full_audit.c to Entware-NG Samba modules to fix Zyxel's NSA-325v2 requiring it for 'admin' shares
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This was compiled using the following guide: https://github.com/Entware/Entware-ng/wiki/Compile-packages-from-sources on Ubuntu 12.04 LTS. | |
Binary pre-compiled package is available here: https://robertof.ovh/mirror/add-vfs-full-audit-to-entware-ng-samba/samba36-server_3.6.25-9_armv5soft.ipk | |
Install by downloading it on your device, then `opkg install --force-checksum samba36-server_3.6.25-9_armv5soft.ipk`. Restart Samba or device afterwards, `admin` share should work. | |
For posterity, rough list of commands: | |
- sudo sed -i 's/us-east-1.ec2.archive.ubuntu.com/old-releases.ubuntu.com/g' /etc/apt/sources.list | |
- sudo sed -i 's/security.ubuntu.com/old-releases.ubuntu.com/g' /etc/apt/sources.list | |
- sudo apt-get update | |
- sudo apt-get install build-essential subversion libncurses5-dev zlib1g-dev gawk gcc-multilib flex git-core gettext libssl-dev unzip rsync | |
- git clone https://github.com/Entware-ng/Entware-ng.git; cd Entware-ng | |
- cp configs/armv5.config .config | |
- make -j9 tools/install | |
- make -j9 toolchain/install | |
- make -j9 target/compile | |
- make -j9 package/network/services/samba36/compile | |
- # bin/targets/armv5soft/generic-glibc/packages/samba36-server_3.6.25-9_armv5soft.ipk |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/package/network/services/samba36/Makefile b/package/network/services/samba36/Makefile | |
index 6cb91b8..fd35262 100644 | |
--- a/package/network/services/samba36/Makefile | |
+++ b/package/network/services/samba36/Makefile | |
@@ -133,7 +133,8 @@ CONFIGURE_ARGS += \ | |
--without-libsmbsharemodes \ | |
--without-libtevent \ | |
--without-libaddns \ | |
- --with-shared-modules=pdb_tdbsam,pdb_wbc_sam,idmap_nss,nss_info_template,auth_winbind,auth_wbc,auth_domain | |
+ --with-shared-modules=pdb_tdbsam,pdb_wbc_sam,idmap_nss,nss_info_template,auth_winbind,auth_wbc,auth_domain \ | |
+ --with-static-modules=vfs_full_audit | |
MAKE_FLAGS += DYNEXP= PICFLAG= MODULES= | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment