MCPcopy Create free account
hub / github.com/F-Stack/f-stack / setclasscontext

Function setclasscontext

tools/libutil/login_class.c:363–377  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

361 */
362
363int
364setclasscontext(const char *classname, unsigned int flags)
365{
366 int rc;
367 login_cap_t *lc;
368
369 lc = login_getclassbyname(classname, NULL);
370
371 flags &= LOGIN_SETRESOURCES | LOGIN_SETPRIORITY |
372 LOGIN_SETUMASK | LOGIN_SETPATH;
373
374 rc = lc ? setusercontext(lc, NULL, 0, flags) : -1;
375 login_close(lc);
376 return (rc);
377}
378
379
380

Callers

nothing calls this directly

Calls 3

login_getclassbynameFunction · 0.85
setusercontextFunction · 0.85
login_closeFunction · 0.85

Tested by

no test coverage detected