[Bug 1780463] Re: Stackable VFS objects recycle, full_audit interoperability error

Andreas Hasenack andreas at canonical.com
Wed Jul 11 19:16:10 UTC 2018


I can confirm this with xenial's samba:

# works:
[storage]
	path = /storage
	vfs objects = full_audit recycle
	read only = no
	guest ok = no
	full_audit:prefix = %u|%I
	full_audit:success = unlink
	full_audit:failure = none

Jul 11 19:12:55 xenial-samba-vfs-stack smbd_audit: ubuntu|127.0.0.1|unlink|ok|head
Jul 11 19:12:58 xenial-samba-vfs-stack smbd_audit: ubuntu|127.0.0.1|unlink|ok|tty
Jul 11 19:13:00 xenial-samba-vfs-stack smbd_audit: ubuntu|127.0.0.1|unlink|ok|[

I get logging (full_audit) and .recycle gets the files I removed.

Changing the order like this:

        vfs objects = recycle full_audit

I lose the logging, but recycling works.

I'll try on newer versions to see if this was fixed.

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to samba in Ubuntu.
https://bugs.launchpad.net/bugs/1780463

Title:
  Stackable VFS objects recycle, full_audit interoperability error

Status in samba package in Ubuntu:
  New

Bug description:
  Specifying "vfs objects = recycle full_audit" Results in the audit
  behavior working but the recycle behavior not working:

  Jul  5 20:46:05 sambatest smbd_audit:
  mark|192.168.12.120|myclient|test|unlink|ok|test-b.txt

  However, specifying "vfs objects = full_audit recycle" results in both
  the recycle bin behavior and the audit behavior working as expected:

  Jul  5 20:47:45 sambatest smbd_audit:
  mark|192.168.12.120|myclient|test|rename|ok|test-c.txt|.recycle///test-c.txt

  It doesn't seem like these modules should overlap in functionality, so
  the order doesn't seem like it should matter.

  Package: samba 2:4.3.11+dfsg-0ubuntu0.16.04.13 
  Description:    Ubuntu 16.04.4 LTS
  Release:        16.04

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/samba/+bug/1780463/+subscriptions



More information about the foundations-bugs mailing list