Home
last modified time | relevance | path

Searched refs:kern_ipc_perm (Results 1 – 17 of 17) sorted by relevance

/linux-6.12.1/ipc/
Dutil.h107 int (*associate)(struct kern_ipc_perm *, int);
108 int (*more_checks)(struct kern_ipc_perm *, struct ipc_params *);
132 int ipc_addid(struct ipc_ids *, struct kern_ipc_perm *, int);
135 void ipc_rmid(struct ipc_ids *, struct kern_ipc_perm *);
138 void ipc_set_key_private(struct ipc_ids *, struct kern_ipc_perm *);
141 int ipcperms(struct ipc_namespace *ns, struct kern_ipc_perm *ipcp, short flg);
172 bool ipc_rcu_getref(struct kern_ipc_perm *ptr);
173 void ipc_rcu_putref(struct kern_ipc_perm *ptr,
176 struct kern_ipc_perm *ipc_obtain_object_idr(struct ipc_ids *ids, int id);
178 void kernel_to_ipc64_perm(struct kern_ipc_perm *in, struct ipc64_perm *out);
[all …]
Dutil.c102 .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 …]
Dshm.c55 struct kern_ipc_perm shm_perm;
123 static void do_shm_rmid(struct ipc_namespace *ns, struct kern_ipc_perm *ipcp) in do_shm_rmid()
169 struct kern_ipc_perm *ipcp = ipc_obtain_object_idr(&shm_ids(ns), id); in shm_obtain_object()
179 struct kern_ipc_perm *ipcp = ipc_obtain_object_check(&shm_ids(ns), id); in shm_obtain_object_check()
193 struct kern_ipc_perm *ipcp; in shm_lock()
231 struct kern_ipc_perm *ptr = container_of(head, struct kern_ipc_perm, in shm_rcu_free()
412 struct kern_ipc_perm *ipcp = p; in shm_try_destroy_orphaned()
812 static int shm_more_checks(struct kern_ipc_perm *ipcp, struct ipc_params *params) in shm_more_checks()
969 struct kern_ipc_perm *ipc; in shm_get_stat()
991 struct kern_ipc_perm *ipcp; in shmctl_down()
[all …]
Dnamespace.c124 void (*free)(struct ipc_namespace *, struct kern_ipc_perm *)) in free_ipcs() argument
126 struct kern_ipc_perm *perm; in free_ipcs()
Dmsg.c50 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()
Dsem.c115 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()
2452 struct kern_ipc_perm *ipcp = it; in sysvipc_sem_proc_show()
/linux-6.12.1/include/linux/
Dsecurity.h43 struct kern_ipc_perm;
484 int security_ipc_permission(struct kern_ipc_perm *ipcp, short flag);
485 void security_ipc_getsecid(struct kern_ipc_perm *ipcp, u32 *secid);
488 int security_msg_queue_alloc(struct kern_ipc_perm *msq);
489 void security_msg_queue_free(struct kern_ipc_perm *msq);
490 int security_msg_queue_associate(struct kern_ipc_perm *msq, int msqflg);
491 int security_msg_queue_msgctl(struct kern_ipc_perm *msq, int cmd);
492 int security_msg_queue_msgsnd(struct kern_ipc_perm *msq,
494 int security_msg_queue_msgrcv(struct kern_ipc_perm *msq, struct msg_msg *msg,
496 int security_shm_alloc(struct kern_ipc_perm *shp);
[all …]
Dlsm_hook_defs.h258 LSM_HOOK(int, 0, ipc_permission, struct kern_ipc_perm *ipcp, short flag)
259 LSM_HOOK(void, LSM_RET_VOID, ipc_getsecid, struct kern_ipc_perm *ipcp,
263 LSM_HOOK(int, 0, msg_queue_alloc_security, struct kern_ipc_perm *perm)
265 struct kern_ipc_perm *perm)
266 LSM_HOOK(int, 0, msg_queue_associate, struct kern_ipc_perm *perm, int msqflg)
267 LSM_HOOK(int, 0, msg_queue_msgctl, struct kern_ipc_perm *perm, int cmd)
268 LSM_HOOK(int, 0, msg_queue_msgsnd, struct kern_ipc_perm *perm,
270 LSM_HOOK(int, 0, msg_queue_msgrcv, struct kern_ipc_perm *perm,
272 LSM_HOOK(int, 0, shm_alloc_security, struct kern_ipc_perm *perm)
273 LSM_HOOK(void, LSM_RET_VOID, shm_free_security, struct kern_ipc_perm *perm)
[all …]
Dipc.h12 struct kern_ipc_perm { struct
Daudit.h39 struct kern_ipc_perm;
404 extern void __audit_ipc_obj(struct kern_ipc_perm *ipcp);
427 static inline void audit_ipc_obj(struct kern_ipc_perm *ipcp) in audit_ipc_obj()
631 static inline void audit_ipc_obj(struct kern_ipc_perm *ipcp) in audit_ipc_obj()
/linux-6.12.1/security/
Dsecurity.c783 static int lsm_ipc_alloc(struct kern_ipc_perm *kip) in lsm_ipc_alloc()
3729 int security_ipc_permission(struct kern_ipc_perm *ipcp, short flag) in security_ipc_permission()
3742 void security_ipc_getsecid(struct kern_ipc_perm *ipcp, u32 *secid) in security_ipc_getsecid()
3791 int security_msg_queue_alloc(struct kern_ipc_perm *msq) in security_msg_queue_alloc()
3809 void security_msg_queue_free(struct kern_ipc_perm *msq) in security_msg_queue_free()
3827 int security_msg_queue_associate(struct kern_ipc_perm *msq, int msqflg) in security_msg_queue_associate()
3842 int security_msg_queue_msgctl(struct kern_ipc_perm *msq, int cmd) in security_msg_queue_msgctl()
3858 int security_msg_queue_msgsnd(struct kern_ipc_perm *msq, in security_msg_queue_msgsnd()
3879 int security_msg_queue_msgrcv(struct kern_ipc_perm *msq, struct msg_msg *msg, in security_msg_queue_msgrcv()
3894 int security_shm_alloc(struct kern_ipc_perm *shp) in security_shm_alloc()
[all …]
/linux-6.12.1/security/smack/
Dsmack_lsm.c3102 static struct smack_known *smack_of_ipc(struct kern_ipc_perm *isp) in smack_of_ipc()
3115 static int smack_ipc_alloc_security(struct kern_ipc_perm *isp) in smack_ipc_alloc_security()
3130 static int smk_curacc_shm(struct kern_ipc_perm *isp, int access) in smk_curacc_shm()
3152 static int smack_shm_associate(struct kern_ipc_perm *isp, int shmflg) in smack_shm_associate()
3167 static int smack_shm_shmctl(struct kern_ipc_perm *isp, int cmd) in smack_shm_shmctl()
3203 static int smack_shm_shmat(struct kern_ipc_perm *isp, char __user *shmaddr, in smack_shm_shmat()
3219 static int smk_curacc_sem(struct kern_ipc_perm *isp, int access) in smk_curacc_sem()
3241 static int smack_sem_associate(struct kern_ipc_perm *isp, int semflg) in smack_sem_associate()
3256 static int smack_sem_semctl(struct kern_ipc_perm *isp, int cmd) in smack_sem_semctl()
3301 static int smack_sem_semop(struct kern_ipc_perm *isp, struct sembuf *sops, in smack_sem_semop()
[all …]
Dsmack.h347 static inline struct smack_known **smack_ipc(const struct kern_ipc_perm *ipc) in smack_ipc()
/linux-6.12.1/security/selinux/include/
Dobjsec.h177 selinux_ipc(const struct kern_ipc_perm *ipc) in selinux_ipc()
/linux-6.12.1/Documentation/security/
Dlsm.rst82 security fields were added to :c:type:`struct kern_ipc_perm
83 <kern_ipc_perm>` and :c:type:`struct msg_msg
/linux-6.12.1/security/selinux/
Dhooks.c5987 static int ipc_has_perm(struct kern_ipc_perm *ipc_perms, in ipc_has_perm()
6013 static int selinux_msg_queue_alloc_security(struct kern_ipc_perm *msq) in selinux_msg_queue_alloc_security()
6029 static int selinux_msg_queue_associate(struct kern_ipc_perm *msq, int msqflg) in selinux_msg_queue_associate()
6044 static int selinux_msg_queue_msgctl(struct kern_ipc_perm *msq, int cmd) in selinux_msg_queue_msgctl()
6072 static int selinux_msg_queue_msgsnd(struct kern_ipc_perm *msq, struct msg_msg *msg, int msqflg) in selinux_msg_queue_msgsnd()
6115 static int selinux_msg_queue_msgrcv(struct kern_ipc_perm *msq, struct msg_msg *msg, in selinux_msg_queue_msgrcv()
6140 static int selinux_shm_alloc_security(struct kern_ipc_perm *shp) in selinux_shm_alloc_security()
6156 static int selinux_shm_associate(struct kern_ipc_perm *shp, int shmflg) in selinux_shm_associate()
6172 static int selinux_shm_shmctl(struct kern_ipc_perm *shp, int cmd) in selinux_shm_shmctl()
6204 static int selinux_shm_shmat(struct kern_ipc_perm *shp, in selinux_shm_shmat()
[all …]
/linux-6.12.1/kernel/
Dauditsc.c2627 void __audit_ipc_obj(struct kern_ipc_perm *ipcp) in __audit_ipc_obj()