Privileges and Interfaces Requiring Privilege
Next: Privilege Determination and
Up: Privilege
Previous: Super-user and Appropriate
Under the POSIX.6 privilege mechanism, the granting of privilege
is based on the
combination of privilege attributes belonging to a process (process privilege
attributes) and privilege attributes belonging to a file (file privilege
attributes). This allows the mechanism to not be based solely on the user:
privileges associated with files are also taken into consideration. The
POSIX.6 standard does not preclude that a single user be granted all
privileges all of the time
(the super-user concept), although this absolute granting of privilege
is strongly discouraged from being practiced.
The POSIX.1 interfaces that are covered by the POSIX.6 privilege policies
(meaning that appropriate privilege is required) include:
- changing the permission of an object,
- changing the owner of an object,
- creating an object,
- creating a new process (exec()),
- killing a process,
- linking or unlinking an object,
- opening an object,
- using a pipe,
- renaming a file,
- removing a directory,
- using setuid/setgid functions,
- setting the umask (default permissions),
- getting the attribute information of an object.
The POSIX.6 interfaces that are covered by the POSIX.6 privilege
policies include:
- reading from or writing to an access control list,
- opening an audit trail,
- suspending or resuming the auditing of an application,
- reading from or writing to an information label,
- reading from or writing to a mandatory access control label,
- reading from or writing to the privilege state of a file.
The set of privileges that are defined by the POSIX.6 standard
are somewhat analogous
to the functions listed above. For example, opening a file (using the
open() interface) requires that the user either be the file owner, or not
be the file owner but possess appropriate privilege. Possessing
appropriate privilege would mean that the user's process has the
priv_fowner privilege. (The priv_fowner privilege allows a process to
perform all the functions that file owners have over their files.)
Next: Privilege Determination and
Up: Privilege
Previous: Super-user and Appropriate
John Barkley
Fri Oct 7 16:17:21 EDT 1994