Page MenuHomeFreeBSD

MAC: syscalls: mac_label_copyin(): 32-bit compatibility
ClosedPublic

Authored by olce on Dec 3 2024, 2:54 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mar 10 2025, 11:46 PM
Unknown Object (File)
Mar 4 2025, 1:11 PM
Unknown Object (File)
Mar 4 2025, 8:18 AM
Unknown Object (File)
Feb 22 2025, 5:44 AM
Unknown Object (File)
Feb 16 2025, 6:23 PM
Unknown Object (File)
Feb 10 2025, 5:19 PM
Unknown Object (File)
Feb 3 2025, 5:42 PM
Unknown Object (File)
Jan 26 2025, 5:43 AM
Subscribers

Details

Summary

A step on the way to support 32-bit compatibility for MAC-related system
calls. Needed by the upcoming setcred() system call.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

olce requested review of this revision.Dec 3 2024, 2:54 PM
sys/security/mac/mac_syscalls.c
154–159

Well, sometimes it's enough to just upload some diff to get a problem back... Bracketing test for COMPAT_FREEBSD32 is missing here, will add.

brooks added inline comments.
sys/security/mac/mac_syscalls.c
98

Why _int? Maybe _impl?

sys/security/mac/mac_syscalls.h
27

This must be named struct mac32 to support freebsd32 system call stub generation.

I'd also be tempted to forward declare it here and keep the real definition in mac_syscalls.c.

olce marked 2 inline comments as done.

Apply brooks@'s request and suggestion.

sys/security/mac/mac_syscalls.c
98

_int for "internal". Renamed it to _impl.

This revision is now accepted and ready to land.Dec 4 2024, 4:29 PM