You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by ma...@apache.org on 2020/12/08 15:02:11 UTC
[commons-daemon] branch master updated: Remove unused code
This is an automated email from the ASF dual-hosted git repository.
markt pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-daemon.git
The following commit(s) were added to refs/heads/master by this push:
new 2396fc2 Remove unused code
2396fc2 is described below
commit 2396fc2d988fc65e2b2f18d12c70138307a3e2d2
Author: Mark Thomas <ma...@apache.org>
AuthorDate: Tue Dec 8 14:58:07 2020 +0000
Remove unused code
---
src/native/unix/native/jsvc-unix.c | 13 -------------
1 file changed, 13 deletions(-)
diff --git a/src/native/unix/native/jsvc-unix.c b/src/native/unix/native/jsvc-unix.c
index ac34487..f7f90c4 100644
--- a/src/native/unix/native/jsvc-unix.c
+++ b/src/native/unix/native/jsvc-unix.c
@@ -166,16 +166,6 @@ static int set_user_group(const char *user, int uid, int gid)
/* Set linux capability, user and group */
#ifdef OS_LINUX
-/* CAPSALL is to allow to read/write at any location */
-#define LEGACY_CAPSALL (1 << CAP_NET_BIND_SERVICE) + \
- (1 << CAP_SETUID) + \
- (1 << CAP_SETGID) + \
- (1 << CAP_DAC_READ_SEARCH) + \
- (1 << CAP_DAC_OVERRIDE)
-
-#define LEGACY_CAPSMAX (1 << CAP_NET_BIND_SERVICE) + \
- (1 << CAP_DAC_READ_SEARCH) + \
- (1 << CAP_DAC_OVERRIDE)
/* That a more reasonable configuration */
#define LEGACY_CAPS (1 << CAP_NET_BIND_SERVICE) + \
@@ -342,9 +332,6 @@ static int set_caps(int cap_type)
}
#else /* !HAVE_LIBCAP */
-/* CAPSALL is to allow to read/write at any location */
-#define CAPSALL LEGACY_CAPSALL
-#define CAPSMAX LEGACY_CAPSMAX
#define CAPS LEGACY_CAPS
#define CAPSMIN LEGACY_CAPSMIN
static int set_caps(int caps)