Proper fallback if capability dropping is not available

This commit is contained in:
Tobias Brunner
2012-07-27 14:46:42 +02:00
parent 8ff1094823
commit 63ac6d00b0
4 changed files with 9 additions and 2 deletions
+2
View File
@@ -22,7 +22,9 @@
#include <daemon.h>
#include <processing/jobs/callback_job.h>
#ifndef CAP_DAC_OVERRIDE
#define CAP_DAC_OVERRIDE 1
#endif
typedef struct nm_backend_t nm_backend_t;
+4
View File
@@ -29,6 +29,10 @@
#include <kernel/kernel_handler.h>
#include <processing/jobs/start_action_job.h>
#ifndef CAP_NET_ADMIN
#define CAP_NET_ADMIN 12
#endif
typedef struct private_daemon_t private_daemon_t;
/**
@@ -19,8 +19,9 @@
#include <daemon.h>
/* missing in cababilities.h */
#ifndef CAP_AUDIT_WRITE
#define CAP_AUDIT_WRITE 29
#endif
METHOD(plugin_t, get_name, char*,
eap_gtc_plugin_t *this)
+1 -1
View File
@@ -24,7 +24,7 @@
#include <library.h>
#ifdef HAVE_SYS_CAPABILITY_H
# include <sys/capability.h>
#else
#elif defined(CAPABILITIES_NATIVE)
# include <linux/capability.h>
#endif