fixed Linux capabilities handling
authorAndrew Tridgell <tridge@samba.org>
Sun, 11 Jun 2000 06:24:54 +0000 (06:24 +0000)
committerAndrew Tridgell <tridge@samba.org>
Sun, 11 Jun 2000 06:24:54 +0000 (06:24 +0000)
commit0fb1dbe7fa0da5a1374e4a8cb9c3e922c9a08c8d
tree07b6abd39ec717219fee0dee47650088fdac333a
parent8843a6379d7c1cf59f0f3673cbc567b09994b7d2
fixed Linux capabilities handling

I used a trick where CAP_LEASE isn't claimed until it is needed. This
means we avoid a system call per setreuid(), and never call capset()
unless a user tries to get a oplock on a file that they don't own
(This used to be commit afa98d511f70f455d599c3a36dd25e49fe74ac09)
source3/include/includes.h
source3/smbd/oplock_linux.c