diff options
| author | Robert Watson <rwatson@FreeBSD.org> | 2002-10-29 19:14:16 +0000 |
|---|---|---|
| committer | Robert Watson <rwatson@FreeBSD.org> | 2002-10-29 19:14:16 +0000 |
| commit | 757db56952015aedf6cbbb3b323c18ff5d532f1b (patch) | |
| tree | dc3bfdc4e5861cb0a36674edd6ebb42c65863821 /sys/security/mac_biba | |
| parent | 6da3d5ce7fc4e7fce24e0ad024f6cec6940f4a49 (diff) | |
Notes
Diffstat (limited to 'sys/security/mac_biba')
| -rw-r--r-- | sys/security/mac_biba/mac_biba.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/sys/security/mac_biba/mac_biba.c b/sys/security/mac_biba/mac_biba.c index 70d5a08fc30f..c4ce41a6bcba 100644 --- a/sys/security/mac_biba/mac_biba.c +++ b/sys/security/mac_biba/mac_biba.c @@ -1529,6 +1529,13 @@ mac_biba_check_ifnet_relabel(struct ucred *cred, struct ifnet *ifnet, 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. */ if (new->mb_flags & MAC_BIBA_FLAGS_BOTH) { |
