smbd/notify: add option "honor change notify privilege"
authorBjörn Baumbach <bb@sernet.de>
Tue, 6 Nov 2018 14:21:37 +0000 (15:21 +0100)
committerStefan Metzmacher <metze@samba.org>
Thu, 17 Dec 2020 15:01:53 +0000 (15:01 +0000)
commit6c95e467817b246a0eab626cac10b6120f6c88f8
treeb3c52ca1038d0b2fc60174eca1bc0b5306a25be8
parentbcfce0ecd3153d158f712ff548a1ccd005031bc8
smbd/notify: add option "honor change notify privilege"

This option can be used to make use of the change notify privilege.
By default notify results are not checked against the file system
permissions.

If "honor change notify privilege" is enabled, a user will only
receive notify results, if he has change notify privilege or sufficient
file system permissions. If a user has the change notify privilege, he
will receive all requested notify results, even if the user does not
have the permissions on the file system.

Pair-Programmed-With: Stefan Metzmacher <metze@samba.org>

Signed-off-by: Björn Baumbach <bb@sernet.de>
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Autobuild-User(master): Stefan Metzmacher <metze@samba.org>
Autobuild-Date(master): Thu Dec 17 15:01:53 UTC 2020 on sn-devel-184
docs-xml/smbdotconf/misc/honorchangenotifyprivilege.xml [new file with mode: 0644]
selftest/knownfail.d/notify_privileged [deleted file]
selftest/target/Samba3.pm
source3/param/loadparm.c
source3/smbd/notify.c