[Bug 1719354] Re: apparmor blocking smbd which is in complain mode

2021-11-30 Thread Andreas Hasenack
Since these samba profiles are experimental, not enabled by default, and even when enabled by the user, are loaded in "complain" mode, I don't think it's worth fixing for stable releases of Ubuntu. Furthermore, they come from the src:apparmor package, not samba, and that's a risky update for such

[Bug 1719354] Re: apparmor blocking smbd which is in complain mode

2021-11-26 Thread Andreas Hasenack
the net_admin bits only show up in apparmor's logs when nmbd is started via systemd. I suspect due to linking with systemd because of the notify mechanism. That's unfortunate. Funny though, it still happens in ubuntu jammy, even with the systemd patch applied. -- You received this bug notificatio

[Bug 1719354] Re: apparmor blocking smbd which is in complain mode

2021-11-25 Thread Andreas Hasenack
Hey, I'm back. Again. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1719354 Title: apparmor blocking smbd which is in complain mode To manage notifications about this bug go to: https://bugs.launch

[Bug 1719354] Re: apparmor blocking smbd which is in complain mode

2021-10-06 Thread Andreas Hasenack
I dropped the ball on this one, but would like another chance to work on it in the coming weeks. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1719354 Title: apparmor blocking smbd which is in compl

[Bug 1719354] Re: apparmor blocking smbd which is in complain mode

2020-07-14 Thread Andreas Hasenack
As part of our effort to fix languishing bugs, I'm revisiting this one and will drive it to conclusion. ** Changed in: samba (Ubuntu Xenial) Assignee: (unassigned) => Andreas Hasenack (ahasenack) ** Changed in: samba (Ubuntu Bionic) Assignee: (unassigned) => Andreas Hasenack (ahasenack)

[Bug 1719354] Re: apparmor blocking smbd which is in complain mode

2018-10-12 Thread Christian Boltz
The net_admin denial is probably caused by a bug in systemd, see https://bugzilla.opensuse.org/show_bug.cgi?id=991901 and https://github.com/systemd/systemd/pull/10085 I'd recommend not to allow that capability in the nmbd profile, and instead apply the patch to systemd. Write permissions to /r

[Bug 1719354] Re: apparmor blocking smbd which is in complain mode

2018-10-10 Thread Andreas Hasenack
** Also affects: samba (Ubuntu Xenial) Importance: Undecided Status: New ** Also affects: samba (Ubuntu Bionic) Importance: Undecided Status: New ** Changed in: samba (Ubuntu) Status: Confirmed => Fix Released ** Changed in: samba (Ubuntu Xenial) Status: New =>

[Bug 1719354] Re: apparmor blocking smbd which is in complain mode

2018-07-02 Thread Andreas Hasenack
Confirmed that cosmic is fine now, but there are still issues in xenial as reported, and these two in bionic: [ 132.722115] audit: type=1400 audit(1530560652.717:57): apparmor="DENIED" operation="capable" profile="/usr/sbin/nmbd" pid=717 comm="nmbd" capability=12 capname="net_admin" [ 132.723

[Bug 1719354] Re: apparmor blocking smbd which is in complain mode

2018-04-30 Thread Andreas Hasenack
** Tags added: server-next -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1719354 Title: apparmor blocking smbd which is in complain mode To manage notifications about this bug go to: https://bugs.l

[Bug 1719354] Re: apparmor blocking smbd which is in complain mode

2018-04-24 Thread Christian Boltz
> sudo mv /etc/apparmor.d/usr.sbin.smbd /etc/apparmor.d/usr.sbin.smbd_OLD Please move that *_OLD file outside of /etc/apparmor.d/ - otherwise it will still be loaded on a "last one wins" base. Obviously you'll need to reload the profiles once more afterwards to ensure the "right" profile is loaded

[Bug 1719354] Re: apparmor blocking smbd which is in complain mode

2018-04-24 Thread PabloAB
I run this: wget -O /tmp/usr.sbin.smbd https://bazaar.launchpad.net/~apparmor-dev/apparmor/2.11/download/head:/usr.sbin.smbd-2009194200-xv2hcz910jtzeta9-12/usr.sbin.smbd sudo mv /etc/apparmor.d/usr.sbin.smbd /etc/apparmor.d/usr.sbin.smbd_OLD sudo mv /tmp/usr.sbin.smbd /etc/apparmor.d/usr.sbin

[Bug 1719354] Re: apparmor blocking smbd which is in complain mode

2018-04-24 Thread Launchpad Bug Tracker
Status changed to 'Confirmed' because the bug affects multiple users. ** Changed in: samba (Ubuntu) Status: New => Confirmed -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1719354 Title: appa

[Bug 1719354] Re: apparmor blocking smbd which is in complain mode

2017-09-27 Thread Christian Boltz
aa-notify doesn't have an option to silence specific events - hey, it's job is to annoy^Wnotify you, so what do you expect? ;-) To silence the notifications, you'll have to update the profile. The easiest solution is probably to download the latest smbd profile from http://bazaar.launchpad.net/~a

[Bug 1719354] Re: apparmor blocking smbd which is in complain mode

2017-09-27 Thread Aravind R
Mr.Christian, Thanks, I will backport. I have another problem too because of the same. I have installed apparmor-notify. Please just tell me how to disable notification for samba in complaining mode. The below instance is loop for every 30 seconds. The below is the algo which is causing disaste

[Bug 1719354] Re: apparmor blocking smbd which is in complain mode

2017-09-26 Thread Christian Boltz
This is fixed in AppArmor bzr since revno: 3437.1.4 timestamp: Wed 2016-04-13 09:24:46 -0400 usr.sbin.smbd: new lock dir used by recent versions (4.3.8) so you'll "just" need to backport the smbd profile to 16.04. -- You received this bug notification because you are a member of Ubuntu Bugs,

[Bug 1719354] Re: apparmor blocking smbd which is in complain mode

2017-09-26 Thread Aravind R
** Package changed: apparmor (Ubuntu) => samba (Ubuntu) ** Description changed: - apparmor blocking smbd which is in complain mode + This error is occurring because samba is working in user profile and + folder '/run/samba/msg.log' has owner as root. Any log created will be + as root. Hence, samb