Date: Wed, 3 Sep 2003 08:49:08 -0700 (PDT) From: Andrew Reisse <areisse@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 37448 for review Message-ID: <200309031549.h83Fn8Z7001055@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=37448 Change 37448 by areisse@areisse_tislabs on 2003/09/03 08:48:55 Fix for wrong security class being used in transition at vnode creation. Affected files ... .. //depot/projects/trustedbsd/sebsd/sys/security/sebsd/sebsd.c#18 edit Differences ... ==== //depot/projects/trustedbsd/sebsd/sys/security/sebsd/sebsd.c#18 (text+ko) ==== @@ -791,19 +791,21 @@ u_int32_t context_len; security_id_t newsid; int error; + int tclass; task = SLOT(&cred->cr_label); dir = SLOT(parentlabel); vsec = SLOT(childlabel); + tclass = vnode_type_to_security_class (child->v_type); - error = security_transition_sid(task->sid, dir->sid, SECCLASS_FILE, + error = security_transition_sid(task->sid, dir->sid, tclass, &newsid); if (error) return (error); vsec->sid = newsid; vsec->task_sid = task->sid; - vsec->sclass = vnode_type_to_security_class(child->v_type); + vsec->sclass = tclass; /* store label in vnode */ error = security_sid_to_context(vsec->sid, &context,
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200309031549.h83Fn8Z7001055>