Introduction
Operating System forms the backbone of any coding interview. Thus it's very important to have a good grasp of this topic. But don't you worry about any of it. Ninjas are here for you, and today we will be going to discuss ‘Protection in Operating System.’
Also Read About, FCFS Scheduling Algorithm, Multiprogramming vs Multitasking
Operating System
An operating system (OS) is the program that manages all of the other application programs in a computer after being loaded into it by a boot program. The operating system is accessed by application programs via a defined application program interface, which makes requests for services (API). Users can also interact with the operating system directly using a user interface, such as a command-line interface (CLI) or a graphical user interface (GUI) (GUI).
Want to know about Components of Operating System check this out.
What is Protection in Operating System?
When several users share computer resources such as CPU, memory, and other resources, security is more crucial. It is the job of the operating system to provide a mechanism that protects each process from other processes. All assets that require protection in a multiuser environment are categorized as objects, and individuals who seek to access these things are referred to as subjects. Distinct 'access privileges are granted to different subjects by the operating system.
Protection is a method that limits the access of programs, processes, or users to the resources defined by a computer system. Protection can be used to allow several users to safely share a common logical namespace, such as a directory or files, in multi-programming operating systems. It necessitates the safeguarding of computer resources such as software, memory, and processors. As assistance to multiprogramming OS, users should apply protective steps so that several users can safely access a common logical namespace like a directory or data. Maintaining secrecy, honesty, and availability in the OS might provide protection. The device must be protected against unauthorized access, viruses, worms, and other malware.
Must Read Process Management in OS
Why is it important?
- There could be security issues such as illegal reading, writing, or modification, or the system failing to function properly for authorized users.
- It helps protect data, processes, and programs from the unauthorized user or program access.
- It is critical to guarantee that there are no breaches in access permissions, malware, or illegal access to existing data.
- Its goal is to ensure that only the policies of the systems have access to programs, resources, and data.
Need of protection OS
- Isolation: Protection OS ensures isolation between different processes and users, preventing unauthorized access to resources.
- Security: It protects system resources, such as memory and files, from unauthorized access, modification, or corruption.
- Stability: Protection OS enhances system stability by preventing one process from interfering with or crashing other processes.
- Fairness: It ensures fair resource allocation among competing processes, preventing one process from monopolizing system resources.
Goals of Protection
Protection mechanisms in an operating system serve several goals:
- Confidentiality: Ensuring that sensitive information is accessible only to authorized users or processes.
- Integrity: Guaranteeing that data remains unaltered and trustworthy throughout its lifecycle.
- Availability: Ensuring that resources and services are available and accessible to authorized users when needed.
- Isolation: Preventing interference and unauthorized access between different processes, users, or components.
- Auditability: Providing mechanisms for tracking and monitoring system activities to detect and investigate security incidents or violations.
What is the domain of protection?
The following are the various realms of protection in an operating system:
- The access to each process' resource handling is restricted by the protection policies. A process is required to use only the resources required to do its task within the time restrictions and in the mode required. It is the protected domain of a process.
- In a computer system, processes and objects are abstract data types with operations that are exclusive to them. A domain component has the following definition: <object, {set of operations on object}>.
- Each domain contains a set of objects as well as the actions that can be performed on them. Only one process, operation, or user can make up a domain. If a procedure is linked to a domain, altering the domain means that changing the procedure ID is necessary. One or more common procedures may be shared among objects.
Must Read Multiprocessing Operating System and Open Source Operating System