Bài giảng Hệ quản trị cơ sở dữ liệu - Chương 13: Security
lượt xem 4
download
Bài giảng chương 13 đề cập đến vấn đề bảo mật trong cơ sở dữ liệu. Chương này trình bày những nội dung chinh như: Introduction to database security, access control, discretionary access control, specifying privileges using views, revoking privileges, propagation of privileges using the grant option,... Mời các bạn cùng tham khảo.
Bình luận(0) Đăng nhập để gửi bình luận!
Nội dung Text: Bài giảng Hệ quản trị cơ sở dữ liệu - Chương 13: Security
- Chương 13 Security 1
- 2 11.1 Introduction to Database Security • Types of Security – Legal and ethical issues – Policy issues – System-related issues – The need to identify multiple security levels
- 3 11.1 Introduction to Database Security • Threats to databases – Loss of integrity – Loss of availability – Loss of confidentiality • To protect databases, four kinds of countermeasures can be implemented: – Access control – Inference control – Flow control
- 4 11.1 Introduction to Database Security • A DBMS typically includes a database security and authorization subsystem that is responsible for ensuring the security portions of a database against unauthorized access. • Two types of database security mechanisms: – Discretionary security mechanisms – Mandatory security mechanisms
- 5 11.1 Introduction to Database Security • The security mechanism of a DBMS must include provisions for restricting access to the database as a whole – This function is called access control and is handled by creating user accounts and passwords to control login process by the DBMS.
- 6 11.1 Introduction to Database Security • The security problem associated with databases is that of controlling the access to a statistical database, which is used to provide statistical information or summaries of values based on various criteria. – The countermeasures to statistical database security problem is called inference control measures.
- 7 11.1 Introduction to Database Security • Another security is that of flow control, which prevents information from flowing in such a way that it reaches unauthorized users. • Channels that are pathways for information to flow implicitly in ways that violate the security policy of an organization are called covert channels.
- 8 11.1 Introduction to Database Security • A final security issue is data encryption, which is used to protect sensitive data (such as credit card numbers) that is being transmitted via some type communication network. • The data is encoded using some encoding algorithm. – An unauthorized user who access encoded data will have difficulty deciphering it, but authorized users are given decoding or
- 9 11.2 Access Control A DBMS offers two main approaches to access control. • Discretionary access control is based on the concept of access rights, or privileges, The mechanisms for giving users such privileges. – A privilege allows a user to access some data object in a certain manner – SQL-92 supports discretionary access control through the GRANT and REVOKE
- 10 11.2 Access Control • The GRANT command gives privileges to users, • The REVOKE command takes away privileges • Mandatory access control is based on systemwide policies that cannot be changed by individual users. In this approach – Each database object is assigned a security class. – Each user is assigned for a security class, and rules are imposed on reading and writing
- 11 11.3 Discretionary Access Control SQL-92 supports discretionary access control through the GRANT and REVOKE commands. • The GRANT command gives users privileges to base tables and views. – The syntax: • With object is either a base table or a view
- 12 11.3 Discretionary Access Control • The account level: – At this level, the DBA specifies the particular privileges that each account holds independently of the relations in the database. • The relation level (or table level): – At this level, the DBA can control the privilege to access each individual relation or view in the database.
- 13 11.3 Discretionary Access Control • The privileges at the account level apply to the capabilities provided to the account itself and can include – The CREATE SCHEMA or CREATE TABLE privilege, to create a schema or base relation; – The CREATE VIEW privilege; – The ALTER privilege, to apply schema changes such adding or removing attributes from relations
- 14 11.3 Discretionary Access Control – The DROP privilege, to delete relations or views; – The MODIFY privilege, to insert, delete, or update tuples; – And the SELECT privilege, to retrieve information from the database by using a SELECT query.
- 15 11.3 Discretionary Access Control • The second level of privileges applies to the relation level – This includes base relations and virtual (view) relations. • The granting and revoking of privileges generally follow an authorization model for discretionary privileges known as the access matrix model where
- 16 11.3 Discretionary Access Control – The rows of a matrix M represents subjects (users, accounts, programs) – The columns represent objects (relations, records, columns, views, operations). – Each position M(i,j) in the matrix represents the types of privileges (read, write, update) that subject i holds on object j.
- 17 11.3 Discretionary Access Control • To control the granting and revoking of relation privileges, each relation R in a database is assigned and owner account, which is typically the account that was used when the relation was created in the first place. – The owner of a relation is given all privileges on that relation.
- 18 11.3 Discretionary Access Control – In SQL2, the DBA can assign and owner to a whole schema by creating the schema and associating the appropriate authorization identifier with that schema, using the CREATE SCHEMA command. – The owner account holder can pass privileges on any of the owned relation to other users by granting privileges to their accounts.
- 19 11.3 Discretionary Access Control • In SQL the following types of privileges can be granted on each individual relation R: – SELECT (retrieval or read) privilege on R: • Gives the account retrieval privilege. • In SQL this gives the account the privilege to use the SELECT statement to retrieve tuples from R. – MODIFY privileges on R: • This gives the account the capability to modify tuples of R.
- 20 11.3 Discretionary Access Control • In SQL this privilege is further divided into UPDATE, DELETE, and INSERT privileges to apply the corresponding SQL command to R. • In addition, both the INSERT and UPDATE privileges can specify that only certain attributes can be updated by the account. – REFERENCES privilege on R: • This gives the account the capability to reference relation R when specifying integrity constraints. • The privilege can also be restricted to specific attributes of R.
CÓ THỂ BẠN MUỐN DOWNLOAD
-
Bài giảng Hệ quản trị cơ sở dữ liệu Oracle: Chương 1 - Ngô Thùy Linh
31 p | 182 | 25
-
Bài giảng Hệ quản trị cơ sở dữ liệu Oracle: Chương 5 - Ngô Thùy Linh
34 p | 95 | 18
-
Bài giảng Hệ quản trị cơ sở dữ liệu Access - ĐH Phạm Văn Đồng
159 p | 112 | 17
-
Bài giảng Hệ quản trị cơ sở dữ liệu: Tổng quan hệ quản trị CSDL SQL Server - TS. Lại Hiền Phương
50 p | 111 | 13
-
Bài giảng Hệ quản trị cơ sở dữ liệu: Chương 4 - ĐH Công nghiệp Thực phẩm
92 p | 145 | 11
-
Bài giảng Hệ quản trị cơ sở dữ liệu: Chương 1 - ĐH Công nghiệp Thực phẩm
31 p | 99 | 10
-
Bài giảng Hệ quản trị cơ sở dữ liệu: Giới thiệu - Phạm Thọ Hoàn
14 p | 156 | 9
-
Bài giảng Hệ quản trị cơ sở dữ liệu Oracle - Trường ĐH Đồng Tháp
119 p | 35 | 8
-
Bài giảng Hệ quản trị cơ sở dữ liệu: Chương 1 - Nguyễn Thị Uyên Nhi
33 p | 83 | 6
-
Bài giảng Hệ quản trị cơ sở dữ liệu (Database Management Systems) - Bài 1.1: Tổng quan về Hệ quản trị cơ sở dữ liệu
5 p | 16 | 6
-
Bài giảng Hệ quản trị cơ sở dữ liệu: Chương 1 - Nguyễn Trường Sơn
29 p | 45 | 5
-
Bài giảng Hệ quản trị cơ sở dữ liệu: Chương 2 - Phạm Nguyên Thảo
39 p | 77 | 5
-
Bài giảng Hệ quản trị cơ sở dữ liệu: Chương 1 - Lê Thị Minh Nguyện
14 p | 72 | 4
-
Bài giảng Hệ quản trị cơ sở dữ liệu: Các tác vụ quản trị hệ thống - TS. Lại Hiền Phương (Phần 3)
61 p | 53 | 4
-
Bài giảng Hệ quản trị cơ sở dữ liệu: Các tác vụ quản trị hệ thống - TS. Lại Hiền Phương (Phần 1)
32 p | 51 | 4
-
Bài giảng Hệ quản trị cơ sở dữ liệu: Chương 6 - Nguyễn Thị Mỹ Dung
33 p | 58 | 4
-
Bài giảng Hệ quản trị cơ sở dữ liệu: Chương 6 - Phạm Nguyên Thảo
44 p | 51 | 3
-
Bài giảng Hệ quản trị cơ sở dữ liệu MSSQL 2005: Chương 7 - Hồ Thị Anh Đào
24 p | 61 | 2
Chịu trách nhiệm nội dung:
Nguyễn Công Hà - Giám đốc Công ty TNHH TÀI LIỆU TRỰC TUYẾN VI NA
LIÊN HỆ
Địa chỉ: P402, 54A Nơ Trang Long, Phường 14, Q.Bình Thạnh, TP.HCM
Hotline: 093 303 0098
Email: support@tailieu.vn