...
Объект поддерживает атрибуты:
| Атрибут | Тип | Описание |
|---|---|---|
| pid | int |
| Идентификатор процесса | ||
| user | string | Имя пользователя |
| groups |
The process id.
string user
| string[] |
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
| Массив групп, в которых состоит пользователь | ||
| seat | string | Место, с которым связан объект subject. Пустое значение, если место не является локальным – например, если к локальному компьютеру подключился удалённый пользователь с помощью SSH |
| session | string | Сеанс, с которым связан объект subject |
| system_unit | string | Systemd-юнит |
| 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.: |
user-1000.service). | |
| local | boolean |
Set to true only if seat is local.
Истина, если место seat является локальным |
| no_new_privileges | boolean | Set 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 |
| active | boolean |
true only if the session is active.Истина, если сеанс session активен |
The following methods are available on the Subject type:
...