]> err.no Git - linux-2.6/blobdiff - kernel/fork.c
[PATCH] Fix typos in mm/shmem_acl.c
[linux-2.6] / kernel / fork.c
index d6cc56558507e34ba29647f28ed2e0849ee70e8d..7dc6140baac69325f1ce2fa08fa9bd858aa57258 100644 (file)
@@ -1589,6 +1589,16 @@ static int unshare_semundo(unsigned long unshare_flags, struct sem_undo_list **n
        return 0;
 }
 
+#ifndef CONFIG_IPC_NS
+static inline int unshare_ipcs(unsigned long flags, struct ipc_namespace **ns)
+{
+       if (flags & CLONE_NEWIPC)
+               return -EINVAL;
+
+       return 0;
+}
+#endif
+
 /*
  * unshare allows a process to 'unshare' part of the process
  * context which was originally shared using clone.  copy_*