From 0fb1dbe7fa0da5a1374e4a8cb9c3e922c9a08c8d Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sun, 11 Jun 2000 06:24:54 +0000 Subject: 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 | 12 ------------ 1 file changed, 12 deletions(-) (limited to 'source3/include/includes.h') diff --git a/source3/include/includes.h b/source3/include/includes.h index a30a8448ad..432fd09f0b 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 #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 */ -- cgit