Public bug reported: In mantic, the smbd.service unit file contained the line:
ExecStartPre=/usr/share/samba/update-apparmor-samba-profile As such, the associated AppArmor profile for smbd etc would be automatically updated to include permissions for the various shares etc on the local files system. Since debian version 2:4.19.4+dfsg-1 this is not included anymore since we are not using the patched version of smb.service.in from packaging/systemd and instead are using one maintained directly in debian/samba.smbd.service - as such, the existing patch d/p/smbd.service-Run-update-apparmor-samba-profile-befor.patch should be dropped and instead the file debian/samba.smbd.service should be updated to include this ExecStartPre line. ProblemType: Bug DistroRelease: Ubuntu 24.04 Package: samba 2:4.19.5+dfsg-4ubuntu9 ProcVersionSignature: Ubuntu 6.8.0-22.22-generic 6.8.1 Uname: Linux 6.8.0-22-generic x86_64 ApportVersion: 2.28.1-0ubuntu2 Architecture: amd64 BothFailedConnect: Yes CasperMD5CheckResult: unknown CloudArchitecture: x86_64 CloudBuildName: server CloudID: lxd CloudName: lxd CloudPlatform: lxd CloudSerial: 20240407 CloudSubPlatform: LXD socket API v. 1.0 (/dev/lxd/sock) Date: Mon Apr 22 06:30:04 2024 NmbdLog: ProcEnviron: LANG=C.UTF-8 PATH=(custom, no user) SHELL=/bin/bash TERM=xterm-256color XDG_RUNTIME_DIR=<set> RebootRequiredPkgs: Error: path contained symlinks. SambaServerRegression: Yes SmbConfIncluded: Yes SmbLog: SourcePackage: samba TestparmExitCode: 0 UpgradeStatus: No upgrade log present (probably fresh install) ** Affects: samba (Ubuntu) Importance: Undecided Status: New ** Tags: amd64 apport-bug cloud-image noble -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2063079 Title: samba smbd.service is missing ExecStartPre for update-apparmor-samba- profile To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/samba/+bug/2063079/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs