Home
last modified time | relevance | path

Searched refs:shmflg (Results 1 – 10 of 10) sorted by relevance

/linux-6.15/include/linux/
H A Dshm.h17 long do_shmat(int shmid, char __user *shmaddr, int shmflg, unsigned long *addr,
27 int shmflg, unsigned long *addr, in do_shmat() argument
H A Dsecurity.h549 int security_shm_associate(struct kern_ipc_perm *shp, int shmflg);
551 int security_shm_shmat(struct kern_ipc_perm *shp, char __user *shmaddr, int shmflg);
1459 int shmflg) in security_shm_associate() argument
1470 char __user *shmaddr, int shmflg) in security_shm_shmat() argument
H A Dlsm_hook_defs.h277 LSM_HOOK(int, 0, shm_associate, struct kern_ipc_perm *perm, int shmflg)
280 int shmflg)
H A Dcompat.h750 asmlinkage long compat_sys_shmat(int shmid, compat_uptr_t shmaddr, int shmflg);
H A Dsyscalls.h760 asmlinkage long sys_shmat(int shmid, char __user *shmaddr, int shmflg);
1309 long ksys_shmget(key_t key, size_t size, int shmflg);
/linux-6.15/ipc/
H A Dshm.c700 int shmflg = params->flg; in newseg() local
735 if (shmflg & SHM_HUGETLB) { in newseg()
747 if (shmflg & SHM_NORESERVE) in newseg()
756 if ((shmflg & SHM_NORESERVE) && in newseg()
836 shm_params.flg = shmflg; in ksys_shmget()
1536 if (shmflg & SHM_RND) { in do_shmat()
1544 if (!addr && (shmflg & SHM_REMAP)) in do_shmat()
1554 } else if ((shmflg & SHM_REMAP)) in do_shmat()
1557 if (shmflg & SHM_RDONLY) { in do_shmat()
1566 if (shmflg & SHM_EXEC) { in do_shmat()
[all …]
/linux-6.15/arch/xtensa/kernel/
H A Dsyscall.c39 asmlinkage long xtensa_shmat(int shmid, char __user *shmaddr, int shmflg) in xtensa_shmat() argument
44 err = do_shmat(shmid, shmaddr, shmflg, &ret, SHMLBA); in xtensa_shmat()
/linux-6.15/security/
H A Dsecurity.c3947 int security_shm_associate(struct kern_ipc_perm *shp, int shmflg) in security_shm_associate() argument
3949 return call_int_hook(shm_associate, shp, shmflg); in security_shm_associate()
3980 char __user *shmaddr, int shmflg) in security_shm_shmat() argument
3982 return call_int_hook(shm_shmat, shp, shmaddr, shmflg); in security_shm_shmat()
/linux-6.15/security/smack/
H A Dsmack_lsm.c3154 static int smack_shm_associate(struct kern_ipc_perm *isp, int shmflg) in smack_shm_associate() argument
3158 may = smack_flags_to_may(shmflg); in smack_shm_associate()
3206 int shmflg) in smack_shm_shmat() argument
3210 may = smack_flags_to_may(shmflg); in smack_shm_shmat()
/linux-6.15/security/selinux/
H A Dhooks.c6241 static int selinux_shm_associate(struct kern_ipc_perm *shp, int shmflg) in selinux_shm_associate() argument
6290 char __user *shmaddr, int shmflg) in selinux_shm_shmat() argument
6294 if (shmflg & SHM_RDONLY) in selinux_shm_shmat()