/Linux-v6.1/ipc/ |
D | util.h | 108 int (*associate)(struct kern_ipc_perm *, int); 109 int (*more_checks)(struct kern_ipc_perm *, struct ipc_params *); 133 int ipc_addid(struct ipc_ids *, struct kern_ipc_perm *, int); 136 void ipc_rmid(struct ipc_ids *, struct kern_ipc_perm *); 139 void ipc_set_key_private(struct ipc_ids *, struct kern_ipc_perm *); 142 int ipcperms(struct ipc_namespace *ns, struct kern_ipc_perm *ipcp, short flg); 173 bool ipc_rcu_getref(struct kern_ipc_perm *ptr); 174 void ipc_rcu_putref(struct kern_ipc_perm *ptr, 177 struct kern_ipc_perm *ipc_obtain_object_idr(struct ipc_ids *ids, int id); 179 void kernel_to_ipc64_perm(struct kern_ipc_perm *in, struct ipc64_perm *out); [all …]
|
D | util.c | 102 .head_offset = offsetof(struct kern_ipc_perm, khtnode), 103 .key_offset = offsetof(struct kern_ipc_perm, key), 104 .key_len = sizeof_field(struct kern_ipc_perm, key), 172 static struct kern_ipc_perm *ipc_findkey(struct ipc_ids *ids, key_t key) in ipc_findkey() 174 struct kern_ipc_perm *ipcp; in ipc_findkey() 202 static inline int ipc_idr_alloc(struct ipc_ids *ids, struct kern_ipc_perm *new) in ipc_idr_alloc() 278 int ipc_addid(struct ipc_ids *ids, struct kern_ipc_perm *new, int limit) in ipc_addid() 366 struct kern_ipc_perm *ipcp, in ipc_check_perms() 400 struct kern_ipc_perm *ipcp; in ipcget_public() 447 static void ipc_kht_remove(struct ipc_ids *ids, struct kern_ipc_perm *ipcp) in ipc_kht_remove() [all …]
|
D | shm.c | 54 struct kern_ipc_perm shm_perm; 122 static void do_shm_rmid(struct ipc_namespace *ns, struct kern_ipc_perm *ipcp) in do_shm_rmid() 168 struct kern_ipc_perm *ipcp = ipc_obtain_object_idr(&shm_ids(ns), id); in shm_obtain_object() 178 struct kern_ipc_perm *ipcp = ipc_obtain_object_check(&shm_ids(ns), id); in shm_obtain_object_check() 192 struct kern_ipc_perm *ipcp; in shm_lock() 230 struct kern_ipc_perm *ptr = container_of(head, struct kern_ipc_perm, in shm_rcu_free() 411 struct kern_ipc_perm *ipcp = p; in shm_try_destroy_orphaned() 820 static int shm_more_checks(struct kern_ipc_perm *ipcp, struct ipc_params *params) in shm_more_checks() 977 struct kern_ipc_perm *ipc; in shm_get_stat() 999 struct kern_ipc_perm *ipcp; in shmctl_down() [all …]
|
D | namespace.c | 109 void (*free)(struct ipc_namespace *, struct kern_ipc_perm *)) in free_ipcs() argument 111 struct kern_ipc_perm *perm; in free_ipcs()
|
D | msg.c | 50 struct kern_ipc_perm q_perm; 104 struct kern_ipc_perm *ipcp = ipc_obtain_object_idr(&msg_ids(ns), id); in msq_obtain_object() 115 struct kern_ipc_perm *ipcp = ipc_obtain_object_check(&msg_ids(ns), id); in msq_obtain_object_check() 130 struct kern_ipc_perm *p = container_of(head, struct kern_ipc_perm, rcu); in msg_rcu_free() 273 static void freeque(struct ipc_namespace *ns, struct kern_ipc_perm *ipcp) in freeque() 404 struct kern_ipc_perm *ipcp; in msgctl_down() 1345 struct kern_ipc_perm *ipcp = it; in sysvipc_msg_proc_show()
|
D | sem.c | 115 struct kern_ipc_perm sem_perm; /* permissions .. see ipc.h */ 172 static void freeary(struct ipc_namespace *, struct kern_ipc_perm *); 325 struct kern_ipc_perm *p = container_of(head, struct kern_ipc_perm, rcu); in sem_rcu_free() 480 struct kern_ipc_perm *ipcp = ipc_obtain_object_idr(&sem_ids(ns), id); in sem_obtain_object() 491 struct kern_ipc_perm *ipcp = ipc_obtain_object_check(&sem_ids(ns), id); in sem_obtain_object_check() 591 static int sem_more_checks(struct kern_ipc_perm *ipcp, struct ipc_params *params) in sem_more_checks() 1143 static void freeary(struct ipc_namespace *ns, struct kern_ipc_perm *ipcp) in freeary() 1606 struct kern_ipc_perm *ipcp; in semctl_down() 2454 struct kern_ipc_perm *ipcp = it; in sysvipc_sem_proc_show()
|
/Linux-v6.1/include/linux/ |
D | security.h | 40 struct kern_ipc_perm; 443 int security_ipc_permission(struct kern_ipc_perm *ipcp, short flag); 444 void security_ipc_getsecid(struct kern_ipc_perm *ipcp, u32 *secid); 447 int security_msg_queue_alloc(struct kern_ipc_perm *msq); 448 void security_msg_queue_free(struct kern_ipc_perm *msq); 449 int security_msg_queue_associate(struct kern_ipc_perm *msq, int msqflg); 450 int security_msg_queue_msgctl(struct kern_ipc_perm *msq, int cmd); 451 int security_msg_queue_msgsnd(struct kern_ipc_perm *msq, 453 int security_msg_queue_msgrcv(struct kern_ipc_perm *msq, struct msg_msg *msg, 455 int security_shm_alloc(struct kern_ipc_perm *shp); [all …]
|
D | lsm_hook_defs.h | 228 LSM_HOOK(int, 0, ipc_permission, struct kern_ipc_perm *ipcp, short flag) 229 LSM_HOOK(void, LSM_RET_VOID, ipc_getsecid, struct kern_ipc_perm *ipcp, 233 LSM_HOOK(int, 0, msg_queue_alloc_security, struct kern_ipc_perm *perm) 235 struct kern_ipc_perm *perm) 236 LSM_HOOK(int, 0, msg_queue_associate, struct kern_ipc_perm *perm, int msqflg) 237 LSM_HOOK(int, 0, msg_queue_msgctl, struct kern_ipc_perm *perm, int cmd) 238 LSM_HOOK(int, 0, msg_queue_msgsnd, struct kern_ipc_perm *perm, 240 LSM_HOOK(int, 0, msg_queue_msgrcv, struct kern_ipc_perm *perm, 242 LSM_HOOK(int, 0, shm_alloc_security, struct kern_ipc_perm *perm) 243 LSM_HOOK(void, LSM_RET_VOID, shm_free_security, struct kern_ipc_perm *perm) [all …]
|
D | ipc.h | 12 struct kern_ipc_perm { struct
|
D | audit.h | 402 extern void __audit_ipc_obj(struct kern_ipc_perm *ipcp); 425 static inline void audit_ipc_obj(struct kern_ipc_perm *ipcp) in audit_ipc_obj() 629 static inline void audit_ipc_obj(struct kern_ipc_perm *ipcp) in audit_ipc_obj()
|
/Linux-v6.1/security/ |
D | security.c | 631 static int lsm_ipc_alloc(struct kern_ipc_perm *kip) in lsm_ipc_alloc() 1919 int security_ipc_permission(struct kern_ipc_perm *ipcp, short flag) in security_ipc_permission() 1924 void security_ipc_getsecid(struct kern_ipc_perm *ipcp, u32 *secid) in security_ipc_getsecid() 1949 int security_msg_queue_alloc(struct kern_ipc_perm *msq) in security_msg_queue_alloc() 1961 void security_msg_queue_free(struct kern_ipc_perm *msq) in security_msg_queue_free() 1968 int security_msg_queue_associate(struct kern_ipc_perm *msq, int msqflg) in security_msg_queue_associate() 1973 int security_msg_queue_msgctl(struct kern_ipc_perm *msq, int cmd) in security_msg_queue_msgctl() 1978 int security_msg_queue_msgsnd(struct kern_ipc_perm *msq, in security_msg_queue_msgsnd() 1984 int security_msg_queue_msgrcv(struct kern_ipc_perm *msq, struct msg_msg *msg, in security_msg_queue_msgrcv() 1990 int security_shm_alloc(struct kern_ipc_perm *shp) in security_shm_alloc() [all …]
|
/Linux-v6.1/Documentation/RCU/ |
D | arrayRCU.rst | 87 new = ipc_rcu_alloc(sizeof(struct kern_ipc_perm *)*newsize + 93 sizeof(struct kern_ipc_perm *)*size + 127 struct kern_ipc_perm* ipc_lock(struct ipc_ids* ids, int id) 129 struct kern_ipc_perm* out;
|
/Linux-v6.1/security/smack/ |
D | smack_lsm.c | 2919 static struct smack_known *smack_of_ipc(struct kern_ipc_perm *isp) in smack_of_ipc() 2932 static int smack_ipc_alloc_security(struct kern_ipc_perm *isp) in smack_ipc_alloc_security() 2947 static int smk_curacc_shm(struct kern_ipc_perm *isp, int access) in smk_curacc_shm() 2969 static int smack_shm_associate(struct kern_ipc_perm *isp, int shmflg) in smack_shm_associate() 2984 static int smack_shm_shmctl(struct kern_ipc_perm *isp, int cmd) in smack_shm_shmctl() 3020 static int smack_shm_shmat(struct kern_ipc_perm *isp, char __user *shmaddr, in smack_shm_shmat() 3036 static int smk_curacc_sem(struct kern_ipc_perm *isp, int access) in smk_curacc_sem() 3058 static int smack_sem_associate(struct kern_ipc_perm *isp, int semflg) in smack_sem_associate() 3073 static int smack_sem_semctl(struct kern_ipc_perm *isp, int cmd) in smack_sem_semctl() 3118 static int smack_sem_semop(struct kern_ipc_perm *isp, struct sembuf *sops, in smack_sem_semop() [all …]
|
D | smack.h | 346 static inline struct smack_known **smack_ipc(const struct kern_ipc_perm *ipc) in smack_ipc()
|
/Linux-v6.1/security/selinux/include/ |
D | objsec.h | 176 const struct kern_ipc_perm *ipc) in selinux_ipc()
|
/Linux-v6.1/Documentation/security/ |
D | lsm.rst | 82 security fields were added to :c:type:`struct kern_ipc_perm 83 <kern_ipc_perm>` and :c:type:`struct msg_msg
|
/Linux-v6.1/security/selinux/ |
D | hooks.c | 5966 static int ipc_has_perm(struct kern_ipc_perm *ipc_perms, in ipc_has_perm() 5993 static int selinux_msg_queue_alloc_security(struct kern_ipc_perm *msq) in selinux_msg_queue_alloc_security() 6010 static int selinux_msg_queue_associate(struct kern_ipc_perm *msq, int msqflg) in selinux_msg_queue_associate() 6026 static int selinux_msg_queue_msgctl(struct kern_ipc_perm *msq, int cmd) in selinux_msg_queue_msgctl() 6057 static int selinux_msg_queue_msgsnd(struct kern_ipc_perm *msq, struct msg_msg *msg, int msqflg) in selinux_msg_queue_msgsnd() 6103 static int selinux_msg_queue_msgrcv(struct kern_ipc_perm *msq, struct msg_msg *msg, in selinux_msg_queue_msgrcv() 6130 static int selinux_shm_alloc_security(struct kern_ipc_perm *shp) in selinux_shm_alloc_security() 6147 static int selinux_shm_associate(struct kern_ipc_perm *shp, int shmflg) in selinux_shm_associate() 6164 static int selinux_shm_shmctl(struct kern_ipc_perm *shp, int cmd) in selinux_shm_shmctl() 6199 static int selinux_shm_shmat(struct kern_ipc_perm *shp, in selinux_shm_shmat() [all …]
|
/Linux-v6.1/kernel/ |
D | auditsc.c | 2621 void __audit_ipc_obj(struct kern_ipc_perm *ipcp) in __audit_ipc_obj()
|