aboutsummaryrefslogtreecommitdiff
path: root/sys/security/mac_mls
diff options
context:
space:
mode:
authorRobert Watson <rwatson@FreeBSD.org>2010-03-02 15:05:48 +0000
committerRobert Watson <rwatson@FreeBSD.org>2010-03-02 15:05:48 +0000
commit9663e34384b9fa73e55c5130592221e7b4911dae (patch)
treed56c4f561dee5da59fbe2a63d4e3b35df9592d35 /sys/security/mac_mls
parent256796db581d0ddf6884e8b1c8365f65b8514086 (diff)
downloadsrc-9663e34384b9fa73e55c5130592221e7b4911dae.tar.gz
src-9663e34384b9fa73e55c5130592221e7b4911dae.zip
Update device-labeling logic for Biba, LOMAC, and MLS to recognize new-style
pts devices when various policy ptys_equal flags are enabled. Submitted by: Estella Mystagic <estella at mystagic.com> MFC after: 1 week
Notes
Notes: svn path=/head/; revision=204581
Diffstat (limited to 'sys/security/mac_mls')
-rw-r--r--sys/security/mac_mls/mac_mls.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/security/mac_mls/mac_mls.c b/sys/security/mac_mls/mac_mls.c
index a0669c7eb54b..d41799d5a23f 100644
--- a/sys/security/mac_mls/mac_mls.c
+++ b/sys/security/mac_mls/mac_mls.c
@@ -918,6 +918,7 @@ mls_devfs_create_device(struct ucred *cred, struct mount *mp,
mls_type = MAC_MLS_TYPE_HIGH;
else if (ptys_equal &&
(strncmp(dev->si_name, "ttyp", strlen("ttyp")) == 0 ||
+ strncmp(dev->si_name, "pts/", strlen("pts/")) == 0 ||
strncmp(dev->si_name, "ptyp", strlen("ptyp")) == 0))
mls_type = MAC_MLS_TYPE_EQUAL;
else