| 361 | */ |
| 362 | |
| 363 | int |
| 364 | setclasscontext(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 |
nothing calls this directly
no test coverage detected