The processes in an operating system must be protected from one another’s



tải về 252.86 Kb.
Chế độ xem pdf
trang17/34
Chuyển đổi dữ liệu13.12.2022
Kích252.86 Kb.
#53970
1   ...   13   14   15   16   17   18   19   20   ...   34
Abraham Silberschatz-Operating System Concepts (9th,2012.12)-trang-649-679

14.6
Access Control
639
Since access is checked when the file is opened, protection is ensured. This
strategy is used in the
UNIX
system.
The right to access must still be checked on each access, and the file-table
entry has a capability only for the allowed operations. If a file is opened for
reading, then a capability for read access is placed in the file-table entry. If
an attempt is made to write onto the file, the system identifies this protection
violation by comparing the requested operation with the capability in the
file-table entry.
14.6
Access Control
In Section 11.6.2, we described how access controls can be used on files within
a file system. Each file and directory is assigned an owner, a group, or possibly
a list of users, and for each of those entities, access-control information is
assigned. A similar function can be added to other aspects of a computer
system. A good example of this is found in Solaris 10.
Solaris 10 advances the protection available in the operating system by
explicitly adding the principle of least privilege via
role-based access control
(
RBAC
)
. This facility revolves around privileges. A privilege is the right to
execute a system call or to use an option within that system call (such as opening
a file with write access). Privileges can be assigned to processes, limiting them
to exactly the access they need to perform their work. Privileges and programs
can also be assigned to
roles
. Users are assigned roles or can take roles based
on passwords to the roles. In this way, a user can take a role that enables a
privilege, allowing the user to run a program to accomplish a specific task,
as depicted in Figure 14.8. This implementation of privileges decreases the
security risk associated with superusers and setuid programs.
user 1
role 1
privileges 1
executes with role 1 privileges
privileges 2
process

tải về 252.86 Kb.

Chia sẻ với bạn bè của bạn:
1   ...   13   14   15   16   17   18   19   20   ...   34




Cơ sở dữ liệu được bảo vệ bởi bản quyền ©hocday.com 2024
được sử dụng cho việc quản lý

    Quê hương