From e9c0d4aaa20011a262597b3d135fb57e81e48bda Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Tue, 27 Jan 2009 22:18:37 -0500 Subject: fill out sections about subject/identity in the man page Signed-off-by: David Zeuthen --- docs/man/polkit.xml | 39 +++++++++++++++++++++++++++++++++++++-- 1 file changed, 37 insertions(+), 2 deletions(-) (limited to 'docs') diff --git a/docs/man/polkit.xml b/docs/man/polkit.xml index f2f2d2c..7de4a66 100644 --- a/docs/man/polkit.xml +++ b/docs/man/polkit.xml @@ -319,14 +319,49 @@ SUBJECTS - TODO: Write me. + Subjects represent the entities that may initiate requests requiring + authorization: processes, user sessions, or DBus services. To determine + whether a subject has an authorization, PolicyKit determines which + identities the subject matches. + See for details about identities. + + + To specify a Unix process as the subject, use + unix-process:pid, + where pid is a numerical process id. + + + To specify a user session as the subject, use + unix-session:session-id, + where session-id is the object path of + the ConsoleKit session object, e.g. /org/freedesktop/ConsoleKit/Session5. + + + To specify a DBus service, use + system-bus-name:bus-name, + where bus-name is a DBus bus name, either + a well-known name like org.freedesktop.ConsoleKit, or a canonical + name like :1.16. IDENTITIES - TODO: Write me. + Identities represent the entities that authorizations are granted to: + individual users or groups of users. + + + To specify an individual user as identity, use + unix-user:uid-or-name, + where uid-or-name can be either a numeric + id of a Unix user, or the username of a Unix user. + + + To specify a group of users as identity, use + unix-group:gid-or-name, + where gid-or-name can be either a numeric + id of a Unix group, or the name of a Unix group. -- cgit v1.2.3