PERFORCE change 86418 for review
Todd Miller
millert at FreeBSD.org
Mon Nov 7 15:25:22 GMT 2005
http://perforce.freebsd.org/chv.cgi?CH=86418
Change 86418 by millert at millert_ibook on 2005/11/07 15:24:50
style(9) cleanup
Affected files ...
.. //depot/projects/trustedbsd/sedarwin7/src/sedarwin/sedarwin/ss/mach_av.c#5 edit
Differences ...
==== //depot/projects/trustedbsd/sedarwin7/src/sedarwin/sedarwin/ss/mach_av.c#5 (text+ko) ====
@@ -68,25 +68,25 @@
int
sebsd_check_ipc_method1(int subj, int obj, int msgid)
{
- struct msgid_classinfo *mcl = hashtab_search(msgid2class, &msgid);
- int i;
+ struct msgid_classinfo *mcl;
+ struct av_decision ad;
+ access_vector_t perms;
+ int cl;
/*
* Return allowed for messages in an unknown subsystem.
* Instead, we probably should make a check against a
* new permission to be added to mach_port for this purpose.
*/
- if (!mcl)
+ mcl = hashtab_search(msgid2class, &msgid);
+ if (mcl == NULL)
return 0;
- struct av_decision avd;
- int cl = (msgid-mcl->baseid) / (8*sizeof(access_vector_t));
- access_vector_t perms;
-
+ cl = msgid-mcl->baseid / (8 * sizeof(access_vector_t));
if (cl >= mcl->nclasses)
- return (1); /* bad message, access denied */
+ return (1); /* bad message, access denied */
perms = (access_vector_t)1 <<
- (msgid - mcl->baseid - cl * 8 * sizeof(access_vector_t));
- return avc_has_perm_audit(subj, obj, mcl->classes[cl], perms, &avd);
+ (msgid - mcl->baseid - (cl * 8 * sizeof(access_vector_t)));
+ return avc_has_perm_audit(subj, obj, mcl->classes[cl], perms, &ad);
}
To Unsubscribe: send mail to majordomo at trustedbsd.org
with "unsubscribe trustedbsd-cvs" in the body of the message
More information about the trustedbsd-cvs
mailing list