Сравнение версий

Ключ

  • Эта строка добавлена.
  • Эта строка удалена.
  • Изменено форматирование.

...

Объект поддерживает атрибуты:

АтрибутТипОписание
pidint
 pid
Идентификатор процесса
userstringИмя пользователя
groups

The process id.

string user

The user name.
string[]
 groups

Array of groups that user user belongs to.

string seat

The seat that the subject is associated with - blank if not on a local seat.

string session

The session that the subject is associated with.

string system_unit

Массив групп, в которых состоит пользователь
seatstringМесто, с которым связан объект subject. Пустое значение, если место не является локальным – например, если к локальному компьютеру подключился удалённый пользователь с помощью SSH 
sessionstringСеанс, с которым связан объект subject
system_unitstringSystemd-юнит 
The systemd unit
that the subject's process is part of (if any). Note that this can only match on system units, as user units can be created with any name without privileges (unlike system units which require root to create). A process running in a user unit will return the user session unit in this attribute (e.g.:
 boolean 
user-1000.service).
localboolean
 local

Set to true only if seat is local.

Истина, если место seat является локальным
no_new_privilegesbooleanSet only if system_unit is not empty, and set to true only if the referenced systemd service unit has the NoNewPrivileges= setting enabled. This ensures that the process cannot gain any new privileges via executing setuid binaries
.
activeboolean
 activeSet to true only if the session is active.
Истина, если сеанс session активен


The following methods are available on the Subject type:

...