diff options
author | Ian Moffett <ian@osmora.org> | 2025-09-25 18:17:55 -0400 |
---|---|---|
committer | Ian Moffett <ian@osmora.org> | 2025-09-25 18:17:55 -0400 |
commit | 05455b1b6e2413e8316940d47648a667c9dea9ed (patch) | |
tree | 92d1a3b7bfe738354c4a382857c6d5570f2426d5 /src/sys/include | |
parent | 6dc73dbb5820a1c772ce2201bf9960b09890379c (diff) |
kern: mac: Make mac_map() return ssize_t
The map callback within the MAC ops returns ssize_t, therefore the
mac_map() wrapper should return the same
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'src/sys/include')
-rw-r--r-- | src/sys/include/os/mac.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sys/include/os/mac.h b/src/sys/include/os/mac.h index dbc09eb..f6e2514 100644 --- a/src/sys/include/os/mac.h +++ b/src/sys/include/os/mac.h @@ -117,7 +117,7 @@ int mac_check_creds(struct proc *procp, struct mac_border *mbp); * Returns zero on success, otherwise a less than zero value * on failure. */ -int mac_map(struct mac_border *mbp, off_t off, size_t len, void **res, int flags); +ssize_t mac_map(struct mac_border *mbp, off_t off, size_t len, void **res, int flags); /* * Acquire a specific border using an ID |