Database Security: Chapter 24 - Section 24.1, 24.2 & 24.3
Database Security: Chapter 24 - Section 24.1, 24.2 & 24.3
Database Security: Chapter 24 - Section 24.1, 24.2 & 24.3
1
Discretionary access control
Account level privileges are
privileges that are independent of relations are account level
privileges.
2
Relation level privilege
3
DBA creates account
user1, user2, user3, user4
user1 logs in
SQL> grant select, insert, update, delete on employee,
to user2;
user1 gives rights to user2 to access & modify
his/her employee table.
4
grant & revoke
user1 logs in
SQL> grant select on employee to user2 with grant option;
Gives retrieval right to user2 on employee table
user2 logs in
SQL> grant select on employee to user3;
user1 logs in
SQL> revoke select on employee from user2;
5
Privileges may also be specified through
views
Create a view & then grant privilege on the view to a user.
user1 logs in
create view empview1 as select ssn, fname, lname, address
from employee;
6
Revoke privilege
7
Propagating privilege using grant option
user2 logs in
SQL> grant select on employee to user4;
8
Granting relation level privilege
user1 logs in
9
Authorization model in DAC
10
An access matrix
User\Relation Customer Order Product Employee
11
Mandatory access control
TS ≥ S ≥ C ≥ U
12
Bell-LaPadula model
(A multi-level security model)
13
Restriction in Bell-LaPadula model
TS ≥ S ≥ C ≥ U
14
Multi level relation schema
Apparent key –
The set of attributes that constitute primary key of a regular
relation is called apparent key.
15
Appearance of multi level relation schema
16
Appearance of multi level relation schema
17
Polyinstantiation