summaryrefslogtreecommitdiffstats
path: root/source3/include/includes.h
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2000-06-11 06:24:54 +0000
committerAndrew Tridgell <tridge@samba.org>2000-06-11 06:24:54 +0000
commit0fb1dbe7fa0da5a1374e4a8cb9c3e922c9a08c8d (patch)
tree07b6abd39ec717219fee0dee47650088fdac333a /source3/include/includes.h
parent8843a6379d7c1cf59f0f3673cbc567b09994b7d2 (diff)
downloadsamba-0fb1dbe7fa0da5a1374e4a8cb9c3e922c9a08c8d.tar.gz
samba-0fb1dbe7fa0da5a1374e4a8cb9c3e922c9a08c8d.tar.xz
samba-0fb1dbe7fa0da5a1374e4a8cb9c3e922c9a08c8d.zip
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)
Diffstat (limited to 'source3/include/includes.h')
-rw-r--r--source3/include/includes.h12
1 files changed, 0 insertions, 12 deletions
diff --git a/source3/include/includes.h b/source3/include/includes.h
index a30a8448ad5..432fd09f0bc 100644
--- a/source3/include/includes.h
+++ b/source3/include/includes.h
@@ -868,18 +868,6 @@ int setresgid(gid_t rgid, gid_t egid, gid_t sgid);
#include <dlfcn.h>
#endif
-#if HAVE_KERNEL_OPLOCKS_LINUX
-#ifndef F_SETLEASE
-#define F_SETLEASE 1024
-#endif
-#ifndef F_GETLEASE
-#define F_GETLEASE 1025
-#endif
-#ifndef CAP_LEASE
-#define CAP_LEASE 28
-#endif
-#endif
-
extern int DEBUGLEVEL;
#endif /* _INCLUDES_H */