diff options
Diffstat (limited to 'sys/security/mac/mac_sysv_shm.c')
-rw-r--r-- | sys/security/mac/mac_sysv_shm.c | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/sys/security/mac/mac_sysv_shm.c b/sys/security/mac/mac_sysv_shm.c index d42cb0b..57c2264 100644 --- a/sys/security/mac/mac_sysv_shm.c +++ b/sys/security/mac/mac_sysv_shm.c @@ -86,7 +86,7 @@ static void mac_sysv_shm_label_free(struct label *label) { - MAC_PERFORM(sysvshm_destroy_label, label); + MAC_PERFORM_NOSLEEP(sysvshm_destroy_label, label); mac_labelzone_free(label); } @@ -104,14 +104,15 @@ void mac_sysvshm_create(struct ucred *cred, struct shmid_kernel *shmsegptr) { - MAC_PERFORM(sysvshm_create, cred, shmsegptr, shmsegptr->label); + MAC_PERFORM_NOSLEEP(sysvshm_create, cred, shmsegptr, + shmsegptr->label); } void mac_sysvshm_cleanup(struct shmid_kernel *shmsegptr) { - MAC_PERFORM(sysvshm_cleanup, shmsegptr->label); + MAC_PERFORM_NOSLEEP(sysvshm_cleanup, shmsegptr->label); } MAC_CHECK_PROBE_DEFINE3(sysvshm_check_shmat, "struct ucred *", @@ -123,8 +124,8 @@ mac_sysvshm_check_shmat(struct ucred *cred, struct shmid_kernel *shmsegptr, { int error; - MAC_CHECK(sysvshm_check_shmat, cred, shmsegptr, shmsegptr->label, - shmflg); + MAC_CHECK_NOSLEEP(sysvshm_check_shmat, cred, shmsegptr, + shmsegptr->label, shmflg); MAC_CHECK_PROBE3(sysvshm_check_shmat, error, cred, shmsegptr, shmflg); @@ -140,8 +141,8 @@ mac_sysvshm_check_shmctl(struct ucred *cred, struct shmid_kernel *shmsegptr, { int error; - MAC_CHECK(sysvshm_check_shmctl, cred, shmsegptr, shmsegptr->label, - cmd); + MAC_CHECK_NOSLEEP(sysvshm_check_shmctl, cred, shmsegptr, + shmsegptr->label, cmd); MAC_CHECK_PROBE3(sysvshm_check_shmctl, error, cred, shmsegptr, cmd); return (error); @@ -155,7 +156,8 @@ mac_sysvshm_check_shmdt(struct ucred *cred, struct shmid_kernel *shmsegptr) { int error; - MAC_CHECK(sysvshm_check_shmdt, cred, shmsegptr, shmsegptr->label); + MAC_CHECK_NOSLEEP(sysvshm_check_shmdt, cred, shmsegptr, + shmsegptr->label); MAC_CHECK_PROBE2(sysvshm_check_shmdt, error, cred, shmsegptr); return (error); @@ -170,8 +172,8 @@ mac_sysvshm_check_shmget(struct ucred *cred, struct shmid_kernel *shmsegptr, { int error; - MAC_CHECK(sysvshm_check_shmget, cred, shmsegptr, shmsegptr->label, - shmflg); + MAC_CHECK_NOSLEEP(sysvshm_check_shmget, cred, shmsegptr, + shmsegptr->label, shmflg); MAC_CHECK_PROBE3(sysvshm_check_shmget, error, cred, shmsegptr, shmflg); |