]> git.saurik.com Git - apple/xnu.git/blobdiff - security/mac_posix_shm.c
xnu-2422.90.20.tar.gz
[apple/xnu.git] / security / mac_posix_shm.c
index c42cfbb46a3d5e4dfecc130544d67a1fbfc2a697..f2ffd9daf3b81a11d4c2dd8a63c64a929aa4ced5 100644 (file)
@@ -136,14 +136,14 @@ mac_posixshm_check_create(kauth_cred_t cred, const char *name)
 }
 
 int
-mac_posixshm_check_open(kauth_cred_t cred, struct pshminfo *shm)
+mac_posixshm_check_open(kauth_cred_t cred, struct pshminfo *shm, int fflags)
 {
        int error = 0;
 
        if (!mac_posixshm_enforce)
                return 0;
 
-       MAC_CHECK(posixshm_check_open, cred, shm, shm->pshm_label);
+       MAC_CHECK(posixshm_check_open, cred, shm, shm->pshm_label, fflags);
 
        return (error);
 }
@@ -178,7 +178,7 @@ mac_posixshm_check_stat(kauth_cred_t cred, struct pshminfo *shm)
 
 int
 mac_posixshm_check_truncate(kauth_cred_t cred, struct pshminfo *shm,
-    size_t size)
+    off_t size)
 {
        int error = 0;