diff options
Diffstat (limited to 'kernel/fork.c')
-rw-r--r-- | kernel/fork.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/kernel/fork.c b/kernel/fork.c index d6cc56558507..7dc6140baac6 100644 --- a/kernel/fork.c +++ b/kernel/fork.c | |||
@@ -1589,6 +1589,16 @@ static int unshare_semundo(unsigned long unshare_flags, struct sem_undo_list **n | |||
1589 | return 0; | 1589 | return 0; |
1590 | } | 1590 | } |
1591 | 1591 | ||
1592 | #ifndef CONFIG_IPC_NS | ||
1593 | static inline int unshare_ipcs(unsigned long flags, struct ipc_namespace **ns) | ||
1594 | { | ||
1595 | if (flags & CLONE_NEWIPC) | ||
1596 | return -EINVAL; | ||
1597 | |||
1598 | return 0; | ||
1599 | } | ||
1600 | #endif | ||
1601 | |||
1592 | /* | 1602 | /* |
1593 | * unshare allows a process to 'unshare' part of the process | 1603 | * unshare allows a process to 'unshare' part of the process |
1594 | * context which was originally shared using clone. copy_* | 1604 | * context which was originally shared using clone. copy_* |