Commit graph

2 commits

Author SHA1 Message Date
Olivier Certner
731dc8994c
MAC: syscalls: mac_label_copyin(): 32-bit compatibility
Needed by the upcoming setcred() system call.  More generally, is a step
on the way to support 32-bit compatibility for MAC-related system calls.

Reviewed by:    brooks
Approved by:    markj (mentor)
MFC after:      2 weeks
Sponsored by:   The FreeBSD Foundation
Differential Revision:  https://reviews.freebsd.org/D47878

(cherry picked from commit 3bdc5ba2ac760634056c66c3c98b6b3452258a5b)
2025-01-16 19:06:56 +01:00
Olivier Certner
c2bf375d10
MAC: syscalls: Split mac_set_proc() into reusable pieces
This is in preparation for enabling the new setcred() system call to set
a process' MAC label.

No functional change (intended).

MFC after:      2 weeks
Approved by:    markj (mentor)
Sponsored by:   The FreeBSD Foundation
Differential Revision:  https://reviews.freebsd.org/D46905

(cherry picked from commit 8a4d24a39098ed8170a37ca2aa83bf1da1976de1)
2025-01-16 19:06:56 +01:00