Changeset 8fa929e in rtems-libbsd


Ignore:
Timestamp:
Jul 18, 2012, 4:43:05 PM (8 years ago)
Author:
Jennifer Averett <jennifer.averett@…>
Branches:
4.11, a8f29d695e152575479ad1a97fa354f661bebd4d, freebsd-9.3, d892051f37c2c4ad7f345f6a817ea3d38e56a431
Children:
2c3d8b9
Parents:
e4f2591
Message:

Added more initialization of FIXME_ucred elements.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • rtemsbsd/src/rtems-bsd-thread.c

    re4f2591 r8fa929e  
    4949#include <freebsd/sys/mutex.h>
    5050#include <freebsd/sys/jail.h>
     51#include <freebsd/sys/resourcevar.h>
    5152
    5253RTEMS_CHAIN_DEFINE_EMPTY(rtems_bsd_thread_chain);
     
    6465};
    6566
     67static struct uidinfo   FIXME_uidinfo;  /* per euid resource consumption */
     68static struct uidinfo   FIXME_ruidinfo; /* per ruid resource consumption */
     69
    6670static struct thread *
    6771rtems_bsd_thread_init_note( rtems_id id )
     
    100104  if (prison_init ) {
    101105    mtx_init(&FIXME_prison.pr_mtx, "prison lock", NULL, MTX_DEF | MTX_DUPOK);
     106
    102107    prison_init = 0;
    103108  }
    104109
    105   FIXME_ucred.cr_prison = &FIXME_prison;     /* jail(2) */
     110  FIXME_ucred.cr_prison   = &FIXME_prison;    /* jail(2) */
     111  FIXME_ucred.cr_uidinfo  = uifind(0);
     112  FIXME_ucred.cr_ruidinfo = uifind(0);
     113  FIXME_ucred.cr_ngroups = 1;     /* group 0 */
    106114
    107115        td->td_proc->p_ucred = crhold(&FIXME_ucred);
Note: See TracChangeset for help on using the changeset viewer.