PERFORCE change 43312 for review

Andrew Reisse areisse at FreeBSD.org
Tue Dec 2 19:31:28 GMT 2003


http://perforce.freebsd.org/chv.cgi?CH=43312

Change 43312 by areisse at areisse_ibook on 2003/12/02 11:31:28

	don't use sebsd_ss_malloc, use kmalloc instead.

Affected files ...

.. //depot/projects/trustedbsd/sedarwin/apsl/xnu/security/sebsd/ss/services.c#4 edit

Differences ...

==== //depot/projects/trustedbsd/sedarwin/apsl/xnu/security/sebsd/ss/services.c#4 (text+ko) ====

@@ -1379,9 +1379,9 @@
 		      if (p->numsids == p->maxsids)
 			{
 			  p->maxsids += 16;
-			  security_id_t *sids = sebsd_ss_malloc (sizeof (security_id_t) * p->maxsids, 0);
+			  security_id_t *sids = kmalloc (sizeof (security_id_t) * p->maxsids, GFP_KERNEL);
 			  memcpy (sids, p->sids, sizeof (security_id_t) * p->numsids);
-			  sebsd_ss_free (p->sids);
+			  kfree (p->sids);
 			  p->sids = sids;
 			}
 		      p->sids[p->numsids++] = sid;
@@ -1410,7 +1410,7 @@
     goto out_err;
   p.sca = policydb.class_val_to_struct[sclass - 1];
   p.maxsids = 32;
-  p.sids = sebsd_ss_malloc (sizeof (security_id_t) * p.maxsids, 0);
+  p.sids = kmalloc (sizeof (security_id_t) * p.maxsids, GFP_KERNEL);
   p.numsids = 0;
   avtab_map (&policydb.te_avtab, getfilesids1, &p);
   *sids = p.sids;
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