1
0

eve 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. .TH EVE 9
  2. .SH NAME
  3. eve, iseve \- privileged user
  4. .SH SYNOPSIS
  5. .ta \w'\fLchar* 'u
  6. .B
  7. char eve[NAMELEN] = "bootes";
  8. .PP
  9. .B
  10. int iseve(void)
  11. .SH DESCRIPTION
  12. .I Eve
  13. is a null-terminated string containing the name of the owner of
  14. the Plan 9 system (sometimes called the `host owner',
  15. see
  16. .IR cons (3)).
  17. The identity is set on a terminal to the name of the user who logs in.
  18. It is set on a CPU server to the
  19. .I authid
  20. obtained either from NVRAM or by a console prompt.
  21. The initial process created by system initialisation is given the
  22. .I eve
  23. identity.
  24. .PP
  25. .I Iseve
  26. returns true if the current user is
  27. .IR eve .
  28. Several drivers use
  29. .I iseve
  30. to check the caller's identity
  31. before granting permission to perform certain actions.
  32. For example, the console driver allows only the user
  33. .I eve
  34. to write a new identity into the
  35. .B /dev/user
  36. file.
  37. The privileges are strictly local and do not extend into the network
  38. (in particular, to file servers—even ones running on the local machine).
  39. .SH SOURCE
  40. .B /sys/src/9/port/auth.c
  41. .SH SEE ALSO
  42. .IR auth (2),
  43. .IR cap (3),
  44. .IR cons (3),
  45. .IR authsrv (6),
  46. .IR auth (8)