3 #if defined(WITH_IRIX_PROJECT) || defined(WITH_IRIX_JOBS) || defined(WITH_IRIX_ARRAY)
5 #ifdef WITH_IRIX_PROJECT
7 #endif /* WITH_IRIX_PROJECT */
9 #include <sys/resource.h>
11 #ifdef WITH_IRIX_AUDIT
13 #endif /* WITH_IRIX_AUDIT */
16 irix_setusercontext(struct passwd *pw)
18 #ifdef WITH_IRIX_PROJECT
20 #endif /* WITH_IRIX_PROJECT */
24 # ifdef WITH_IRIX_ARRAY
26 # endif /* WITH_IRIX_ARRAY */
27 #endif /* WITH_IRIX_JOBS */
30 jid = jlimit_startjob(pw->pw_name, pw->pw_uid, "interactive");
32 fatal("Failed to create job container: %.100s",
34 #endif /* WITH_IRIX_JOBS */
35 #ifdef WITH_IRIX_ARRAY
36 /* initialize array session */
37 if (jid == 0 && newarraysess() != 0)
38 fatal("Failed to set up new array session: %.100s",
40 #endif /* WITH_IRIX_ARRAY */
41 #ifdef WITH_IRIX_PROJECT
42 /* initialize irix project info */
43 if ((projid = getdfltprojuser(pw->pw_name)) == -1) {
44 debug("Failed to get project id, using projid 0");
48 fatal("Failed to initialize project %d for %s: %.100s",
49 (int)projid, pw->pw_name, strerror(errno));
50 #endif /* WITH_IRIX_PROJECT */
51 #ifdef WITH_IRIX_AUDIT
52 if (sysconf(_SC_AUDIT)) {
53 debug("Setting sat id to %d", (int) pw->pw_uid);
54 if (satsetid(pw->pw_uid))
55 debug("error setting satid: %.100s", strerror(errno));
57 #endif /* WITH_IRIX_AUDIT */
61 #endif /* defined(WITH_IRIX_PROJECT) || defined(WITH_IRIX_JOBS) || defined(WITH_IRIX_ARRAY) */