GYANEXIS
MIND IN MOTION  |  REWARDS IN HANDS !
gyanexis.com
support@gyanexis.com
Date: ___ / ___ / ______
GYANEXIS

MIND IN MOTION  |  REWARDS IN HANDS !

www.gyanexis.com
support@gyanexis.com
PRACTICE SET

Operating Systems Practice Set 5

Unit 5 · Protection and Security, with Revision
Operating Systems
Time: 45 MinutesTotal Marks: 25
Note: Answer all questions. Write your own answer first, then compare it with the answer given below each question.

SECTION A

1.Answer all questions in brief.
2 × 5 = 10
Q.NoQuestionsMarks
(a)

What is the CIA triad?

2
Answer

The three goals of security: Confidentiality (only authorised users can read data), Integrity (data is changed only in authorised ways) and Availability (authorised users can use the system and data when they need them).

(b)

Differentiate between an access control list and a capability list.

2
Answer

The access matrix can be stored by columns or by rows. An access control list belongs to an object and lists which subjects may do what to it (a column). A capability list belongs to a subject and lists the objects it may use and how (a row). ACLs make it easy to see and revoke access to one file; capabilities make it easy to see everything one user can do.

(c)

What permissions does chmod 754 give on a UNIX file?

2
Answer

Each digit is read (4) + write (2) + execute (1). 7 = rwx for the owner, 5 = r-x for the group, 4 = r-- for others. So chmod 754 gives rwxr-xr--.

(d)

Differentiate between authentication and authorisation.

2
Answer

Authentication checks who a user is, for example with a password, a one-time code or a fingerprint. Authorisation decides what that authenticated user is allowed to do, for example through file permissions. Authentication always comes first.

(e)

What is a buffer overflow attack?

2
Answer

A buffer overflow happens when a program writes more data into a buffer than it can hold, overwriting nearby memory such as the return address on the stack. An attacker can use it to make the program run injected code. Bounds checking, stack canaries, non-executable stacks and address space layout randomisation defend against it.

SECTION B

2.Answer all questions.
5 × 3 = 15
Q.NoQuestionsMarks
(a)

Explain the access matrix model of protection with an example.

5
Answer

Rows of the access matrix are domains (users or processes) and columns are objects (files, devices). The entry access(i, j) lists the operations domain i may perform on object j.

Example: D1 may read F1 and read and write F2; D2 may only print on the printer; D3 may read and execute F3. Special rights control the matrix itself: copy (*) lets a right be copied to another domain, owner lets a domain add or remove rights in its column, and control lets one domain change another domain's row.

Because the matrix is large and mostly empty it is stored as access control lists (by column) or capability lists (by row).

(b)

State and explain the four necessary conditions for deadlock.

5
Answer

A deadlock can occur only if all four hold at the same time:
1. Mutual exclusion: at least one resource can be used by only one process at a time.
2. Hold and wait: a process holds at least one resource while waiting for another.
3. No preemption: a resource cannot be taken away; it is released only voluntarily.
4. Circular wait: a cycle of processes exists, each waiting for a resource held by the next.

Deadlock prevention works by making sure at least one of these conditions can never hold, for example by ordering resource requests to break circular wait.

(c)

Describe four common program and network threats and one defence against each.

5
Answer

Virus: code attached to a program that spreads when the program runs. Defence: up-to-date antivirus and running only trusted software.

Worm: a stand-alone program that spreads across a network by itself, using flaws in services. Defence: prompt security patches and a firewall.

Trojan horse: a program that looks useful but secretly does harm, such as stealing passwords. Defence: install software only from trusted sources and give programs the least privilege they need.

Denial of service: flooding a server with requests so real users cannot be served. Defence: rate limiting, traffic filtering and services that absorb large floods.

GYANEXIS  •  Mind in Motion, Rewards in Hands !
gyanexis.com
← Operating Systems Practice Set 4All Practice

© 2026 GYANEXIS. All Rights Reserved.