diff options
Diffstat (limited to 'app-admin/clsync/files/clsync-0.4-unshare-ifdef.patch')
-rw-r--r-- | app-admin/clsync/files/clsync-0.4-unshare-ifdef.patch | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/app-admin/clsync/files/clsync-0.4-unshare-ifdef.patch b/app-admin/clsync/files/clsync-0.4-unshare-ifdef.patch deleted file mode 100644 index 84116dd2ba11..000000000000 --- a/app-admin/clsync/files/clsync-0.4-unshare-ifdef.patch +++ /dev/null @@ -1,34 +0,0 @@ -commit a437518de6813202ab9cef124a6ca085d3eb555d -Author: Dmitry Yu Okunev <dyokunev@ut.mephi.ru> -Date: Tue Jan 27 18:56:02 2015 +0300 - - Added missed "#ifdef"-s for unshare() - -diff --git a/privileged.c b/privileged.c -index 4b35514..fafd5b7 100644 ---- a/privileged.c -+++ b/privileged.c -@@ -1747,7 +1747,9 @@ int privileged_init(ctx_t *ctx_p) - - SAFE ( pthread_mutex_lock(pthread_mutex_runner_p), return errno;); - -+# ifdef UNSHARE_SUPPORT - unshare(CLONE_NEWIPC); -+# endif - - switch (ctx_p->flags[SPLITTING]) { - case SM_THREAD: { -@@ -1792,11 +1794,13 @@ int privileged_init(ctx_t *ctx_p) - } - critical_on(!helper_isalive()); - -+# ifdef UNSHARE_SUPPORT - // The rest routines - if (ctx_p->flags[DETACH_NETWORK] == DN_NONPRIVILEGED) { - SAFE ( cap_enable(CAP_TO_MASK(CAP_SYS_ADMIN)), return errno; ); - SAFE ( unshare(CLONE_NEWNET), return errno; ); - } -+# endif - SAFE ( cap_drop(ctx_p, 0), return errno; ); - - debug(4, "Waiting for the privileged thread to get prepared"); |