/freebsd-10.1-release/sys/security/mac/ |
H A D | mac_posix_shm.c | 69 mac_posixshm_init(struct shmfd *shmfd) argument 73 shmfd->shm_label = mac_posixshm_label_alloc(); 75 shmfd->shm_label = NULL; 87 mac_posixshm_destroy(struct shmfd *shmfd) argument 90 if (shmfd->shm_label != NULL) { 91 mac_posixshm_label_free(shmfd->shm_label); 92 shmfd->shm_label = NULL; 97 mac_posixshm_create(struct ucred *cred, struct shmfd *shmf argument 122 mac_posixshm_check_mmap(struct ucred *cred, struct shmfd *shmfd, int prot, int flags) argument 139 mac_posixshm_check_open(struct ucred *cred, struct shmfd *shmfd, accmode_t accmode) argument 155 mac_posixshm_check_stat(struct ucred *active_cred, struct ucred *file_cred, struct shmfd *shmfd) argument 172 mac_posixshm_check_truncate(struct ucred *active_cred, struct ucred *file_cred, struct shmfd *shmfd) argument 189 mac_posixshm_check_unlink(struct ucred *cred, struct shmfd *shmfd) argument 204 mac_posixshm_check_setmode(struct ucred *cred, struct shmfd *shmfd, mode_t mode) argument 219 mac_posixshm_check_setowner(struct ucred *cred, struct shmfd *shmfd, uid_t uid, gid_t gid) argument 236 mac_posixshm_check_read(struct ucred *active_cred, struct ucred *file_cred, struct shmfd *shmfd) argument 253 mac_posixshm_check_write(struct ucred *active_cred, struct ucred *file_cred, struct shmfd *shmfd) argument [all...] |
H A D | mac_framework.h | 78 struct shmfd; 242 int mac_posixshm_check_mmap(struct ucred *cred, struct shmfd *shmfd, 244 int mac_posixshm_check_open(struct ucred *cred, struct shmfd *shmfd, 247 struct ucred *file_cred, struct shmfd *shmfd); 248 int mac_posixshm_check_setmode(struct ucred *cred, struct shmfd *shmfd, 250 int mac_posixshm_check_setowner(struct ucred *cred, struct shmfd *shmf [all...] |
H A D | mac_policy.h | 92 struct shmfd; 361 struct shmfd *shmfd, struct label *shmlabel, int prot, 364 struct shmfd *shmfd, struct label *shmlabel, 367 struct ucred *file_cred, struct shmfd *shmfd, 370 struct shmfd *shmfd, struct label *shmlabel, 373 struct shmfd *shmf [all...] |
/freebsd-10.1-release/sys/kern/ |
H A D | uipc_shm.c | 96 struct shmfd *sm_shmfd; 100 static MALLOC_DEFINE(M_SHMFD, "shmfd", "shared memory file descriptor"); 110 static int shm_access(struct shmfd *shmfd, struct ucred *ucred, int flags); 111 static struct shmfd *shm_alloc(struct ucred *ucred, mode_t mode); 113 static void shm_drop(struct shmfd *shmfd); 114 static struct shmfd *shm_hold(struct shmfd *shmfd); 249 struct shmfd *shmfd; local 291 struct shmfd *shmfd; local 314 struct shmfd *shmfd; local 343 struct shmfd *shmfd; local 384 struct shmfd *shmfd; local 423 struct shmfd *shmfd; local 433 shm_dotruncate(struct shmfd *shmfd, off_t length) argument 546 struct shmfd *shmfd; local 581 shm_hold(struct shmfd *shmfd) argument 589 shm_drop(struct shmfd *shmfd) argument 610 shm_access(struct shmfd *shmfd, struct ucred *ucred, int flags) argument 662 shm_insert(char *path, Fnv32_t fnv, struct shmfd *shmfd) argument 710 struct shmfd *shmfd; local 870 shm_mmap(struct shmfd *shmfd, vm_size_t objsize, vm_ooffset_t foff, vm_object_t *obj) argument 894 struct shmfd *shmfd; local 923 struct shmfd *shmfd; local 956 struct shmfd *shmfd; local 1014 struct shmfd *shmfd; local 1052 shm_path(struct shmfd *shmfd, char *path, size_t size) argument [all...] |
H A D | uipc_syscalls.c | 2084 struct vnode **vp_res, struct shmfd **shmfd_res, off_t *obj_size, 2090 struct shmfd *shmfd; local 2095 shmfd = *shmfd_res = NULL; 2120 shmfd = fp->f_data; 2121 obj = shmfd->shm_object; 2122 *obj_size = shmfd->shm_size; 2144 *shmfd_res = shmfd; 2189 struct shmfd *shmfd; local [all...] |
H A D | kern_descrip.c | 3086 struct shmfd *shmfd; local 3122 shmfd = NULL; 3159 shmfd = fp->f_data; 3272 if (shmfd != NULL) 3273 shm_path(shmfd, kif->kf_path, sizeof(kif->kf_path));
|
/freebsd-10.1-release/sys/sys/ |
H A D | mman.h | 205 struct shmfd { struct 233 int shm_mmap(struct shmfd *shmfd, vm_size_t objsize, vm_ooffset_t foff, 237 void shm_path(struct shmfd *shmfd, char *path, size_t size);
|
/freebsd-10.1-release/tools/tools/syscall_timing/ |
H A D | syscall_timing.c | 389 int fd, i, shmfd; local 391 shmfd = shm_open(SHM_ANON, O_CREAT | O_RDWR, 0600); 392 if (shmfd < 0) 394 fd = dup(shmfd); 401 fd = dup(shmfd); 406 close(shmfd); 414 int shmfd; local 416 shmfd = shm_open(SHM_ANON, O_CREAT | O_RDWR, 0600); 417 if (shmfd < 0) 419 close(shmfd); 438 int shmfd; local [all...] |
/freebsd-10.1-release/sys/security/mac_stub/ |
H A D | mac_stub.c | 744 stub_posixshm_check_mmap(struct ucred *cred, struct shmfd *shmfd, argument 752 stub_posixshm_check_open(struct ucred *cred, struct shmfd *shmfd, argument 761 struct shmfd *shm, struct label *shmlabel) 768 stub_posixshm_check_setmode(struct ucred *cred, struct shmfd *shmfd, argument 776 stub_posixshm_check_setowner(struct ucred *cred, struct shmfd *shmfd, argument 785 struct shmfd *shmf 784 stub_posixshm_check_stat(struct ucred *active_cred, struct ucred *file_cred, struct shmfd *shmfd, struct label *shmlabel) argument 792 stub_posixshm_check_truncate(struct ucred *active_cred, struct ucred *file_cred, struct shmfd *shmfd, struct label *shmlabel) argument 800 stub_posixshm_check_unlink(struct ucred *cred, struct shmfd *shmfd, struct label *shmlabel) argument 816 stub_posixshm_create(struct ucred *cred, struct shmfd *shmfd, struct label *shmlabel) argument [all...] |
/freebsd-10.1-release/sys/security/mac_biba/ |
H A D | mac_biba.c | 1714 biba_posixshm_check_mmap(struct ucred *cred, struct shmfd *shmfd, argument 1738 biba_posixshm_check_open(struct ucred *cred, struct shmfd *shmfd, argument 1763 struct shmfd *vp, struct label *shmlabel) 1780 biba_posixshm_check_setmode(struct ucred *cred, struct shmfd *shmfd, argument 1798 biba_posixshm_check_setowner(struct ucred *cred, struct shmfd *shmfd, argument 1817 struct shmfd *shmf 1816 biba_posixshm_check_stat(struct ucred *active_cred, struct ucred *file_cred, struct shmfd *shmfd, struct label *shmlabel) argument 1834 biba_posixshm_check_truncate(struct ucred *active_cred, struct ucred *file_cred, struct shmfd *shmfd, struct label *shmlabel) argument 1852 biba_posixshm_check_unlink(struct ucred *cred, struct shmfd *shmfd, struct label *shmlabel) argument 1888 biba_posixshm_create(struct ucred *cred, struct shmfd *shmfd, struct label *shmlabel) argument [all...] |
/freebsd-10.1-release/sys/security/mac_mls/ |
H A D | mac_mls.c | 1606 mls_posixshm_check_mmap(struct ucred *cred, struct shmfd *shmfd, argument 1630 mls_posixshm_check_open(struct ucred *cred, struct shmfd *shmfd, argument 1655 struct shmfd *shm, struct label *shmlabel) 1672 mls_posixshm_check_setmode(struct ucred *cred, struct shmfd *shmfd, argument 1690 mls_posixshm_check_setowner(struct ucred *cred, struct shmfd *shmfd, argument 1709 struct shmfd *shmf 1708 mls_posixshm_check_stat(struct ucred *active_cred, struct ucred *file_cred, struct shmfd *shmfd, struct label *shmlabel) argument 1726 mls_posixshm_check_truncate(struct ucred *active_cred, struct ucred *file_cred, struct shmfd *shmfd, struct label *shmlabel) argument 1744 mls_posixshm_check_unlink(struct ucred *cred, struct shmfd *shmfd, struct label *shmlabel) argument 1780 mls_posixshm_create(struct ucred *cred, struct shmfd *shmfd, struct label *shmlabel) argument [all...] |
/freebsd-10.1-release/sys/security/mac_test/ |
H A D | mac_test.c | 1404 test_posixshm_check_mmap(struct ucred *cred, struct shmfd *shmfd, argument 1416 test_posixshm_check_open(struct ucred *cred, struct shmfd *shmfd, argument 1429 struct ucred *file_cred, struct shmfd *shm, struct label *shmlabel) 1443 test_posixshm_check_setmode(struct ucred *cred, struct shmfd *shmfd, argument 1455 test_posixshm_check_setowner(struct ucred *cred, struct shmfd *shmfd, argument 1468 struct ucred *file_cred, struct shmfd *shmf 1467 test_posixshm_check_stat(struct ucred *active_cred, struct ucred *file_cred, struct shmfd *shmfd, struct label *shmfdlabel) argument 1480 test_posixshm_check_truncate(struct ucred *active_cred, struct ucred *file_cred, struct shmfd *shmfd, struct label *shmfdlabel) argument 1493 test_posixshm_check_unlink(struct ucred *cred, struct shmfd *shmfd, struct label *shmfdlabel) argument 1520 test_posixshm_create(struct ucred *cred, struct shmfd *shmfd, struct label *shmfdlabel) argument [all...] |
/freebsd-10.1-release/sys/vm/ |
H A D | vm_mmap.c | 108 int *, struct shmfd *, vm_ooffset_t, vm_object_t *); 1479 struct shmfd *shmfd, vm_ooffset_t foff, vm_object_t *objp) 1488 error = mac_posixshm_check_mmap(td->td_ucred, shmfd, prot, *flagsp); 1492 error = shm_mmap(shmfd, objsize, foff, objp); 1477 vm_mmap_shm(struct thread *td, vm_size_t objsize, vm_prot_t prot, vm_prot_t *maxprotp, int *flagsp, struct shmfd *shmfd, vm_ooffset_t foff, vm_object_t *objp) argument
|
/freebsd-10.1-release/lib/libprocstat/ |
H A D | libprocstat.c | 1133 struct shmfd shmfd; local 1145 if (!kvm_read_all(kd, (unsigned long)shmfdp, &shmfd, 1146 sizeof(struct shmfd))) { 1147 warnx("can't read shmfd at %p", (void *)shmfdp); 1150 shm->mode = S_IFREG | shmfd.shm_mode; 1151 shm->size = shmfd.shm_size; 1152 if (fst->fs_path == NULL && shmfd.shm_path != NULL) { 1155 if (!kvm_read_all(kd, (unsigned long)shmfd.shm_path + i,
|