simplified capability dropping

This commit is contained in:
Martin Willi committed 2007-05-09 13:12:06 +00:00
1 parent 3cd3f48428
commit a6a039aa10
9 files changed
+32 -51

No files matched your search

+1 -2
View File
@@ -60,8 +60,7 @@ static void get_events(private_scheduler_t * this)
DBG1(DBG_JOB, "scheduler thread running, thread_ID: %06u",
(int)pthread_self());
/* drop threads capabilities */
charon->drop_capabilities(charon, TRUE, FALSE, FALSE);
charon->drop_capabilities(charon, TRUE);
while (TRUE)
{
+1 -2
View File
@@ -73,8 +73,7 @@ static void process_jobs(private_thread_pool_t *this)
DBG1(DBG_JOB, "worker thread running, thread_ID: %06u",
(int)pthread_self());
/* drop threads capabilities, except CAP_NET_ADMIN */
charon->drop_capabilities(charon, TRUE, TRUE, FALSE);
charon->drop_capabilities(charon, TRUE);
while (TRUE)
{