From 8d6b00e4f34dfb6f627b49713bf80b0745b50abc Mon Sep 17 00:00:00 2001 From: paul Date: Thu, 22 May 2003 02:35:52 +0000 Subject: Add additional system capabilities --- lib/privs.c | 6 +++++- lib/privs.h | 4 ++++ 2 files changed, 9 insertions(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/privs.c b/lib/privs.c index 1902310d..35e5a76b 100644 --- a/lib/privs.c +++ b/lib/privs.c @@ -65,7 +65,11 @@ cap_map [ZCAP_MAX] = [ZCAP_RAW] = CAP_NET_RAW, [ZCAP_CHROOT] = CAP_SYS_CHROOT, [ZCAP_NICE] = CAP_SYS_NICE, - [ZCAP_PTRACE] = CAP_SYS_PTRACE + [ZCAP_PTRACE] = CAP_SYS_PTRACE, + [ZCAP_DAC_OVERRIDE] = CAP_DAC_OVERRIDE, + [ZCAP_READ_SEARCH] = CAP_DAC_READ_SEARCH, + [ZCAP_SYS_ADMIN] = CAP_SYS_ADMIN, + [ZCAP_FOWNER] = ZCAP_FOWNER }; static cap_value_t cap_setuid_value [] = { CAP_SETUID }; diff --git a/lib/privs.h b/lib/privs.h index 6839c479..3cdd20da 100644 --- a/lib/privs.h +++ b/lib/privs.h @@ -32,10 +32,14 @@ typedef enum ZCAP_BIND, ZCAP_BROADCAST, ZCAP_ADMIN, + ZCAP_SYS_ADMIN, ZCAP_RAW, ZCAP_CHROOT, ZCAP_NICE, ZCAP_PTRACE, + ZCAP_DAC_OVERRIDE, + ZCAP_READ_SEARCH, + ZCAP_FOWNER, ZCAP_MAX } zebra_capabilities_t; -- cgit v1.2.1