Require Biba privilege to relabel a network interface.
Obtained from: TrustedBSD Project Sponsored by: DARPA, Network Associates Laboratories
This commit is contained in:
parent
6da3d5ce7f
commit
757db56952
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=106160
@ -1528,6 +1528,13 @@ mac_biba_check_ifnet_relabel(struct ucred *cred, struct ifnet *ifnet,
|
||||
if (error)
|
||||
return (error);
|
||||
|
||||
/*
|
||||
* Relabling network interfaces requires Biba privilege.
|
||||
*/
|
||||
error = mac_biba_subject_privileged(subj);
|
||||
if (error)
|
||||
return (error);
|
||||
|
||||
/*
|
||||
* If the Biba label is to be changed, authorize as appropriate.
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user