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)
commitafa98d511f70f455d599c3a36dd25e49fe74ac09
treeef16a02658d0477a1a1492fe50071104c88d5615
parentb28cc4163bc2faaa80c5782fc02c8f03c410cdeb
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
source/include/includes.h
source/smbd/oplock_linux.c