RSBAC: The Rules Behind a Linux Access Decision
Rule Set Based Access Control, or RSBAC, is a Linux security framework that checks whether a program may perform an action, such as opening or changing a file. Its name sounds like a general approach to permissions, but it identifies a particular project built to apply several kinds of security rules.
Linux is an operating system: the software that manages a computer and lets applications run. RSBAC works within its kernel, the core that handles requests from programs and controls their access to the machine's resources.
That location matters. A rule in an application depends on the application enforcing it. A rule enforced in the kernel can be checked when the program asks the operating system to do the work.
The RSBAC project's overview describes a framework that supports multiple security models. A model is a way of expressing who or what may act on a file or another resource. RSBAC provides a place for those decisions to happen.
- Finally understand what the commands you type are doing behind the scenes.
- Fix problems yourself instead of pasting in fixes you found online and hoping.
- Go from following tutorials to knowing why they work, one clear chapter at a time.
Following a request to change a file
Suppose a reporting program needs to read financial records but shouldn't alter them. The program runs under an account that has ordinary permission to write to the file. That permission alone would allow more access than the program needs.
An additional RSBAC policy could restrict the operation. A policy here means the rules used to decide access; it isn't merely a document someone hopes users will follow.
In the project's documented architecture, a request passes through ordinary checks first. These include checks on the request itself and the usual discretionary permissions: permissions that an owner or another authorized account can assign. When those checks allow the operation, the RSBAC enforcement mechanism asks its decision-making components whether it should proceed.
The architecture handbook explains this added check. An initial yes isn't the end of the decision.
For the reporting program, that means reading and writing can be treated differently even when they involve the same file. The check concerns this running program and this action, rather than access to the computer as a whole.
This is part of authorization, the decision about what an account or program is allowed to do. Establishing who signed in is a separate job.
Roles can be one of the rule sets
RSBAC's decision modules express different kinds of policy. One documented model, Role Compatibility, uses a program's role and the type of resource it wants to access to determine which operations are allowed. A process is simply a running program.
In the reporting example, a process could have a reporting role, while the financial file belongs to a protected type of file. Rules then connect that role, that file type and the requested action. Reading could be allowed while writing is denied.
Another approach uses an access-control list, a list of permissions attached to particular users, programs or resources. The project's security-model documentation explains these different ways of making decisions. RSBAC can combine models within its framework.
This is why comparing RSBAC with role-based access control as if they were competing products is misleading. Role-based access control is an approach that assigns permissions through roles. RSBAC is a framework that can include a role-based model among its policies.
The Many Ways to Decide Who Gets In
The framework and the policy do different jobs
A framework supplies the machinery for enforcing a decision. Administrators still have to choose rules that fit the programs and information they're protecting. A broad permission doesn't become narrow merely because a framework enforces it accurately.
The RSBAC name alone doesn't establish greater security than another approach. For the reporting program, the chosen policy should allow it to produce the report without letting it rewrite the records it reads.
Mandatory Access Control: Even the Owner May Be Told No

Linux Kernel Capabilities: Which Powers Does a Program Need?

Access Control Mechanisms: What Actually Enforces the Rule?

QUOTE:
"Amateurs hack systems, professionals hack people."
