| /linux-4.4.14/ipc/ |
| D | shm.c | 520 int shmflg = params->flg; in newseg() local 545 shp->shm_perm.mode = (shmflg & S_IRWXUGO); in newseg() 556 if (shmflg & SHM_HUGETLB) { in newseg() 560 hs = hstate_sizelog((shmflg >> SHM_HUGE_SHIFT) & SHM_HUGE_MASK); in newseg() 568 if (shmflg & SHM_NORESERVE) in newseg() 572 (shmflg >> SHM_HUGE_SHIFT) & SHM_HUGE_MASK); in newseg() 578 if ((shmflg & SHM_NORESERVE) && in newseg() 629 static inline int shm_security(struct kern_ipc_perm *ipcp, int shmflg) in shm_security() argument 634 return security_shm_associate(shp, shmflg); in shm_security() 652 SYSCALL_DEFINE3(shmget, key_t, key, size_t, size, int, shmflg) in SYSCALL_DEFINE3() argument [all …]
|
| D | compat.c | 552 COMPAT_SYSCALL_DEFINE3(shmat, int, shmid, compat_uptr_t, shmaddr, int, shmflg) in COMPAT_SYSCALL_DEFINE3() argument 557 err = do_shmat(shmid, compat_ptr(shmaddr), shmflg, &ret, COMPAT_SHMLBA); in COMPAT_SYSCALL_DEFINE3()
|
| /linux-4.4.14/include/linux/ |
| D | shm.h | 53 long do_shmat(int shmid, char __user *shmaddr, int shmflg, unsigned long *addr, 64 int shmflg, unsigned long *addr, in do_shmat() argument
|
| D | security.h | 338 int security_shm_associate(struct shmid_kernel *shp, int shmflg); 340 int security_shm_shmat(struct shmid_kernel *shp, char __user *shmaddr, int shmflg); 1016 int shmflg) in security_shm_associate() argument 1027 char __user *shmaddr, int shmflg) in security_shm_shmat() argument
|
| D | lsm_hooks.h | 1495 int (*shm_associate)(struct shmid_kernel *shp, int shmflg); 1498 int shmflg);
|
| D | compat.h | 319 asmlinkage long compat_sys_shmat(int shmid, compat_uptr_t shmaddr, int shmflg);
|
| D | syscalls.h | 671 asmlinkage long sys_shmat(int shmid, char __user *shmaddr, int shmflg);
|
| /linux-4.4.14/arch/xtensa/kernel/ |
| D | syscall.c | 43 asmlinkage long xtensa_shmat(int shmid, char __user *shmaddr, int shmflg) in xtensa_shmat() argument 48 err = do_shmat(shmid, shmaddr, shmflg, &ret, SHMLBA); in xtensa_shmat()
|
| /linux-4.4.14/security/ |
| D | security.c | 1074 int security_shm_associate(struct shmid_kernel *shp, int shmflg) in security_shm_associate() argument 1076 return call_int_hook(shm_associate, 0, shp, shmflg); in security_shm_associate() 1084 int security_shm_shmat(struct shmid_kernel *shp, char __user *shmaddr, int shmflg) in security_shm_shmat() argument 1086 return call_int_hook(shm_shmat, 0, shp, shmaddr, shmflg); in security_shm_shmat()
|
| /linux-4.4.14/security/smack/ |
| D | smack_lsm.c | 2957 static int smack_shm_associate(struct shmid_kernel *shp, int shmflg) in smack_shm_associate() argument 2961 may = smack_flags_to_may(shmflg); in smack_shm_associate() 3008 int shmflg) in smack_shm_shmat() argument 3012 may = smack_flags_to_may(shmflg); in smack_shm_shmat()
|
| /linux-4.4.14/security/selinux/ |
| D | hooks.c | 5370 static int selinux_shm_associate(struct shmid_kernel *shp, int shmflg) in selinux_shm_associate() argument 5419 char __user *shmaddr, int shmflg) in selinux_shm_shmat() argument 5423 if (shmflg & SHM_RDONLY) in selinux_shm_shmat()
|