Searched refs:ipc_namespace (Results 1 – 12 of 12) sorted by relevance
/linux-4.4.14/ipc/ |
D | util.h | 22 struct ipc_namespace; 25 extern void mq_clear_sbinfo(struct ipc_namespace *ns); 26 extern void mq_put_mnt(struct ipc_namespace *ns); 28 static inline void mq_clear_sbinfo(struct ipc_namespace *ns) { } in mq_clear_sbinfo() 29 static inline void mq_put_mnt(struct ipc_namespace *ns) { } in mq_put_mnt() 33 void sem_init_ns(struct ipc_namespace *ns); 34 void msg_init_ns(struct ipc_namespace *ns); 35 void shm_init_ns(struct ipc_namespace *ns); 37 void sem_exit_ns(struct ipc_namespace *ns); 38 void msg_exit_ns(struct ipc_namespace *ns); [all …]
|
D | namespace.c | 19 static struct ipc_namespace *create_ipc_ns(struct user_namespace *user_ns, in create_ipc_ns() 20 struct ipc_namespace *old_ns) in create_ipc_ns() 22 struct ipc_namespace *ns; in create_ipc_ns() 25 ns = kmalloc(sizeof(struct ipc_namespace), GFP_KERNEL); in create_ipc_ns() 54 struct ipc_namespace *copy_ipcs(unsigned long flags, in copy_ipcs() 55 struct user_namespace *user_ns, struct ipc_namespace *ns) in copy_ipcs() 70 void free_ipcs(struct ipc_namespace *ns, struct ipc_ids *ids, in free_ipcs() 71 void (*free)(struct ipc_namespace *, struct kern_ipc_perm *)) in free_ipcs() argument 93 static void free_ipc_ns(struct ipc_namespace *ns) in free_ipc_ns() 121 void put_ipc_ns(struct ipc_namespace *ns) in put_ipc_ns() [all …]
|
D | shm.c | 52 struct ipc_namespace *ns; 67 static int newseg(struct ipc_namespace *, struct ipc_params *); 70 static void shm_destroy(struct ipc_namespace *ns, struct shmid_kernel *shp); 75 void shm_init_ns(struct ipc_namespace *ns) in shm_init_ns() 89 static void do_shm_rmid(struct ipc_namespace *ns, struct kern_ipc_perm *ipcp) in do_shm_rmid() 104 void shm_exit_ns(struct ipc_namespace *ns) in shm_exit_ns() 130 static inline struct shmid_kernel *shm_obtain_object(struct ipc_namespace *ns, int id) in shm_obtain_object() 140 static inline struct shmid_kernel *shm_obtain_object_check(struct ipc_namespace *ns, int id) in shm_obtain_object_check() 154 static inline struct shmid_kernel *shm_lock(struct ipc_namespace *ns, int id) in shm_lock() 183 static inline void shm_rmid(struct ipc_namespace *ns, struct shmid_kernel *s) in shm_rmid() [all …]
|
D | msg.c | 77 static inline struct msg_queue *msq_obtain_object(struct ipc_namespace *ns, int id) in msq_obtain_object() 87 static inline struct msg_queue *msq_obtain_object_check(struct ipc_namespace *ns, in msq_obtain_object_check() 98 static inline void msg_rmid(struct ipc_namespace *ns, struct msg_queue *s) in msg_rmid() 119 static int newque(struct ipc_namespace *ns, struct ipc_params *params) in newque() 212 static void freeque(struct ipc_namespace *ns, struct kern_ipc_perm *ipcp) in freeque() 243 struct ipc_namespace *ns; in SYSCALL_DEFINE2() 339 static int msgctl_down(struct ipc_namespace *ns, int msqid, int cmd, in msgctl_down() 412 static int msgctl_nolock(struct ipc_namespace *ns, int msqid, in msgctl_nolock() 525 struct ipc_namespace *ns; in SYSCALL_DEFINE3() 615 struct ipc_namespace *ns; in do_msgsnd() [all …]
|
D | sem.c | 147 static int newary(struct ipc_namespace *, struct ipc_params *); 148 static void freeary(struct ipc_namespace *, struct kern_ipc_perm *); 173 void sem_init_ns(struct ipc_namespace *ns) in sem_init_ns() 184 void sem_exit_ns(struct ipc_namespace *ns) in sem_exit_ns() 398 static inline struct sem_array *sem_obtain_lock(struct ipc_namespace *ns, in sem_obtain_lock() 421 static inline struct sem_array *sem_obtain_object(struct ipc_namespace *ns, int id) in sem_obtain_object() 431 static inline struct sem_array *sem_obtain_object_check(struct ipc_namespace *ns, in sem_obtain_object_check() 448 static inline void sem_rmid(struct ipc_namespace *ns, struct sem_array *s) in sem_rmid() 494 static int newary(struct ipc_namespace *ns, struct ipc_params *params) in newary() 584 struct ipc_namespace *ns; in SYSCALL_DEFINE3() [all …]
|
D | util.c | 279 static int ipcget_new(struct ipc_namespace *ns, struct ipc_ids *ids, in ipcget_new() 305 static int ipc_check_perms(struct ipc_namespace *ns, in ipc_check_perms() 337 static int ipcget_public(struct ipc_namespace *ns, struct ipc_ids *ids, in ipcget_public() 484 int ipcperms(struct ipc_namespace *ns, struct kern_ipc_perm *ipcp, short flag) in ipcperms() 640 int ipcget(struct ipc_namespace *ns, struct ipc_ids *ids, in ipcget() 687 struct kern_ipc_perm *ipcctl_pre_down_nolock(struct ipc_namespace *ns, in ipcctl_pre_down_nolock() 739 struct ipc_namespace *ns;
|
D | mqueue.c | 104 static inline struct ipc_namespace *__get_ns_from_inode(struct inode *inode) in __get_ns_from_inode() 109 static struct ipc_namespace *get_ns_from_inode(struct inode *inode) in get_ns_from_inode() 111 struct ipc_namespace *ns; in get_ns_from_inode() 213 struct ipc_namespace *ipc_ns, umode_t mode, in mqueue_get_inode() 308 struct ipc_namespace *ns = data; in mqueue_fill_super() 330 struct ipc_namespace *ns = current->nsproxy->ipc_ns; in mqueue_mount() 375 struct ipc_namespace *ipc_ns; in mqueue_evict_inode() 424 struct ipc_namespace *ipc_ns; in mqueue_create() 693 static int mq_attr_ok(struct ipc_namespace *ipc_ns, struct mq_attr *attr) in mq_attr_ok() 724 static struct file *do_create(struct ipc_namespace *ipc_ns, struct inode *dir, in do_create() [all …]
|
D | ipc_sysctl.c | 24 struct ipc_namespace *ipc_ns = current->nsproxy->ipc_ns; in get_ipc() 55 struct ipc_namespace *ns = current->nsproxy->ipc_ns; in proc_ipc_dointvec_minmax_orphans()
|
D | mq_sysctl.c | 20 struct ipc_namespace *ipc_ns = current->nsproxy->ipc_ns; in get_mq()
|
D | msgutil.c | 31 struct ipc_namespace init_ipc_ns = {
|
/linux-4.4.14/include/linux/ |
D | ipc_namespace.h | 21 struct ipc_namespace { struct 65 extern struct ipc_namespace init_ipc_ns; argument 71 extern void shm_destroy_orphaned(struct ipc_namespace *ns); 73 static inline void shm_destroy_orphaned(struct ipc_namespace *ns) {} in shm_destroy_orphaned() 77 extern int mq_init_ns(struct ipc_namespace *ns); 112 static inline int mq_init_ns(struct ipc_namespace *ns) { return 0; } in mq_init_ns() 116 extern struct ipc_namespace *copy_ipcs(unsigned long flags, 117 struct user_namespace *user_ns, struct ipc_namespace *ns); 119 static inline struct ipc_namespace *get_ipc_ns(struct ipc_namespace *ns) in get_ipc_ns() 126 extern void put_ipc_ns(struct ipc_namespace *ns); [all …]
|
D | nsproxy.h | 9 struct ipc_namespace; 32 struct ipc_namespace *ipc_ns;
|