Skip to content

Commit

Permalink
ipc namespace: remove config ipc ns fix
Browse files Browse the repository at this point in the history
Finish the work : kill all #ifdef CONFIG_IPC_NS.

Thanks Robert !

Signed-off-by: Cedric Le Goater <clg@fr.ibm.com>
Cc: Eric Biederman <ebiederm@xmision.com>
Cc: Robert P. J. Day <rpjday@mindspring.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  • Loading branch information
Cedric Le Goater authored and Linus Torvalds committed Oct 17, 2007
1 parent c98673f commit a08b4be
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions ipc/ipc_sysctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,13 @@
#include <linux/sysctl.h>
#include <linux/uaccess.h>

#ifdef CONFIG_IPC_NS
static void *get_ipc(ctl_table *table)
{
char *which = table->data;
struct ipc_namespace *ipc_ns = current->nsproxy->ipc_ns;
which = (which - (char *)&init_ipc_ns) + (char *)ipc_ns;
return which;
}
#else
#define get_ipc(T) ((T)->data)
#endif

#ifdef CONFIG_PROC_FS
static int proc_ipc_dointvec(ctl_table *table, int write, struct file *filp,
Expand Down

0 comments on commit a08b4be

Please sign in to comment.