Skip to contentSkip to conversation

what is an object manager?!

DISCUSSION Sebastian Pfaff 4 participants 8 messages Jul 24, 2009 – Jul 27, 2009 1 message not in the archive SELinux security module

lore
Share & tools
lore
#0 lore raw

hello,

"Object managers are responsible for enforcing the policy decisions of the security server for the set of resources they manage. For the kernel, you can think of object managers as kernel subsystems that create and manage kernel-level objects. Examples of kernel object managers include the filesystem, process management, and System V interprocess communication (IPC). In the LSM architecture, the object managers are represented by the LSM hooks (!!!); these hooks are scattered throughout the kernel subsystems and call the SELinux LSM module for access decisions. The LSM hooks then enforce those decisions by allowing or denying access to the kernel resource." [1]

this basically says we have dozens of object managers, since every LSM hook is one!

but here stephen smalley wrote:

An object manager gets access decisions from its AVC, which consults the security server when the decision isn't already cached. Meanwhile, if a policy change occurs, the security server needs to notify the AVCs of all object managers of the change so that their state can be updated (in simplest form, by flushing the caches). There can be any number of object managers. In Linux, the entire kernel is really a single object manager, but in earlier microkernel-based systems, there were separate object managers for process management, filesystems, and networking.

http://marc.info/?l=selinux&m=115955074232032&w=2

What is an object manager and who says the truth? ;)

"Every LSM hook object manager" vs "1 single Object Manager"

--
Sebastian Pfaff

[1] SELinux by Example: Using Security Enhanced Linux, 1st Edition. (Prentice Hall International, 2006).

--
This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.

#1 lore raw
Quoted 16 lines · Sebastian Pfaff

hello,

"Object managers are responsible for enforcing the policy decisions of the security server for the set
of resources they manage. For the kernel, you can think of object managers as kernel subsystems that
create and manage kernel-level objects. Examples of kernel object managers include the filesystem,
process management, and System V interprocess communication (IPC). In the LSM architecture, the
object managers are represented by the LSM hooks (!!!); these hooks are scattered throughout the kernel
subsystems and call the SELinux LSM module for access decisions. The LSM hooks then enforce
those decisions by allowing or denying access to the kernel resource." [1]

Quoted 2 lines

this basically says we have dozens of object managers, since every LSM hook is one!

I am not sure what you mean here but seems that you are getting things wrong here. There are many LSM hooks. They are specially used for the kernel while not sure if user space object managers function to pointers too. The LSM hooks make the SELinux functionality because the monolithic architecture forced the flask architecture to get dispersed into the kernel and there are no clear boundaries for these object manager! Thats why it is stated that LSM hooks represent the kernel object managers.

Quoted 8 lines

but here stephen smalley wrote:

An object manager gets access decisions from its AVC, which consults the security server when the decision isn't already cached. Meanwhile, if a policy change occurs, the security server needs to notify the AVCs of all object managers of the change

Now there is one object manager and libselinux exports an interface to the userspace object managers. Stephen is referening to FLASK/FLUKE a predecessor of SELinux on micrkernel architecture.

Quoted 10 lines

so that their state can be updated (in simplest form, by flushing the caches). There can be any number of object managers. In Linux, the entire kernel is really a single object manager, but in earlier microkernel-based systems, there were separate object managers for process management, filesystems, and networking.

http://marc.info/?l=selinux&m=115955074232032&w=2

What is an object manager and who says the truth? ;)

An object manager is the sub-system that manages access control on its own objects. The kernel will handle access control for its own objects like files and process.

X server is an object manager for its own resources that it manages and so is Gconf. Dbus is object manager of its IPC objects. The in kernel security server is the PDP for all while the PEPs are kernel object managers and the userspace object manager (some mentioned earlier).

I hope these examples will clear things.

Quoted 16 lines

"Every LSM hook object manager" vs "1 single Object Manager"

--
Sebastian Pfaff

[1] SELinux by Example: Using Security Enhanced Linux, 1st Edition. (Prentice Hall International, 2006).

--
This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] the words "unsubscribe selinux" without quotes as the message.

Signature · 1 line
Shaz
#2 lore raw

tnx for answer,

ok, you're trying to tell me that a lsm hook is something similar to what an object manager is in FLASK architecture. But in general, all LSM hooks as a whole can be considered as one object manager, since in the monolithic linux kernel there are no different object managers.

Quoted 5 lines

Now there is one object manager and libselinux exports an interface to the userspace object managers.

Stephen is referening to FLASK/FLUKE a predecessor of SELinux on micrkernel architecture.

I'm not not sure, if stephen was referreing to FLASK. For me, he referred to the current state in linux.

Quoted 2 lines

X server is an object manager for its own resources that it manages and so is Gconf. Dbus is object manager of its IPC objects. The in kernel security server is the PDP for all while the PEPs are kernel object managers and the userspace object manager (some mentioned earlier).

what is PDP und what is PEP(s)?

Quoted 1 line

I hope these examples will clear things.

me too ;)

--
Sebastian Pfaff

--
This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.

#3 lore raw
Quoted 6 lines · Sebastian Pfaff

tnx for answer,

ok, you're trying to tell me that a lsm hook is something similar to what an object manager is in FLASK architecture. But in general, all LSM hooks as a whole can be considered as one object manager, since in the monolithic linux kernel there are no different object managers.

The kernel is the object manager. The hooks are merely the points at which the kernel/object manager is instrumented to enforce a policy decision.

Quoted 10 lines
Quoted 7 lines

Now there is one object manager and libselinux exports an interface to the userspace object managers.

Stephen is referening to FLASK/FLUKE a predecessor of SELinux on micrkernel architecture.

I'm not not sure, if stephen was referreing to FLASK. For me, he referred to the current state in linux.

I think I described both in that paragraph.

Quoted 8 lines
Quoted 6 lines

X server is an object manager for its own resources that it manages and so is Gconf. Dbus is object manager of its IPC objects. The in kernel security server is the PDP for all while the PEPs are kernel object managers and the userspace object manager (some mentioned earlier).

what is PDP und what is PEP(s)?

Policy decision point, policy enforcement point. Just another terminology for the same concepts.

Signature · 8 lines
Stephen Smalley
National Security Agency


--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to [email protected] with
the words "unsubscribe selinux" without quotes as the message.
#4 lore raw
Quoted 10 lines
Quoted 5 lines

ok, you're trying to tell me that a lsm hook is something similar to what an object manager is in FLASK architecture. But in general, all LSM hooks as a whole can be considered as one object manager, since in the monolithic linux kernel there are no different object managers.

The kernel is the object manager. The hooks are merely the points at which the kernel/object manager is instrumented to enforce a policy decision.

k, thank you. I think i got it.

Quoted 4 lines
Quoted 4 lines
Quoted 3 lines

Now there is one object manager and libselinux exports an interface to the userspace object managers.

Quoted 8 lines
Quoted 6 lines
Quoted 3 lines

Stephen is referening to FLASK/FLUKE a predecessor of SELinux on micrkernel architecture.

I'm not not sure, if stephen was referreing to FLASK. For me, he referred to the current state in linux.

I think I described both in that paragraph.

k

Quoted 8 lines
Quoted 8 lines
Quoted 7 lines

X server is an object manager for its own resources that it manages and so is Gconf. Dbus is object manager of its IPC objects. The in kernel security server is the PDP for all while the PEPs are kernel object managers and the userspace object manager (some mentioned earlier).

Quoted 4 lines
Quoted 1 line

what is PDP und what is PEP(s)?

Policy decision point, policy enforcement point. Just another terminology for the same concepts.

tnx

--
Sebastian Pfaff

--
This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.

A message that is not in the archive (sent off-list or not yet received): 06A6610D4F464D4EBEAFBF2C5F86911E0133D574@exchange2.columbia.tresys.com

#6 lore raw

David, Stephen && Shaz,

tnx for your answers. It helped me alot.

--
Sebastian Pfaff

Quoted 58 lines

Sebastian,

I think Steve covered it fairly well. The description in the book was defining the object managers in a more abstract way; i.e., defining the kernel subsystems as object managers. As Steve said, in reality, the entire kernel is the object manager for all of the kernel objects (files, directories, sockets, etc) because the code is all in kernel space. The user space object managers (e.g., X, dbus, sepostgres, etc.) are individual object managers in that they all operate in separate process space outside of the kernel and enforce decisions on access to objects they define.

We didn't mean to say or imply that the LSM hooks were each object managers. They are, as Steve said, enforcement points hooked into the appropriate kernel subsystems that manage the relevant kernel objects. In the book we were trying to strike a balance between abstraction of concepts and actual implementation details.

David

Quoted 9 lines

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Sebastian Pfaff
Sent: Friday, July 24, 2009 8:59 AM
To: Stephen Smalley; [email protected]
Subject: Re: what is an object manager?!

Quoted 2 lines
Quoted 2 lines

ok, you're trying to tell me that a lsm hook is something similar

to

Quoted 1 line
Quoted 1 line
Quoted 1 line

what an object manager is in FLASK architecture. But in general,

all

Quoted 5 lines
Quoted 5 lines
Quoted 3 lines

LSM hooks as a whole can be considered as one object manager, since in
the monolithic linux kernel there are no different object managers.

The kernel is the object manager. The hooks are merely the points

at

Quoted 8 lines
Quoted 3 lines

which the kernel/object manager is instrumented to enforce a policy decision.

k, thank you. I think i got it.

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

Now there is one object manager and libselinux exports an

interface

Quoted 11 lines
Quoted 10 lines
Quoted 8 lines
Quoted 5 lines

to the userspace object managers.

Stephen is referening to FLASK/FLUKE a predecessor of SELinux on micrkernel architecture.

I'm not not sure, if stephen was referreing to FLASK. For me, he referred to the current state in linux.

I think I described both in that paragraph.

Quoted 31 lines
Quoted 4 lines

k

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

X server is an object manager for its own resources that it

manages

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

and so is Gconf. Dbus is object manager of its IPC objects. The in kernel security server is the PDP for all while the PEPs are

kernel

Quoted 23 lines
Quoted 8 lines
Quoted 5 lines
Quoted 3 lines

object managers and the userspace object manager (some mentioned earlier).

what is PDP und what is PEP(s)?

Policy decision point, policy enforcement point. Just another terminology for the same concepts.

tnx

--
Sebastian Pfaff

--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to [email protected] with
the words "unsubscribe selinux" without quotes as the message.

--
This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.

#7 lore raw
In reply to Sebastian Pfaff
Quoted 32 lines · Sebastian Pfaff

hello,

"Object managers are responsible for enforcing the policy decisions of the security server for the set
of resources they manage. For the kernel, you can think of object managers as kernel subsystems that
create and manage kernel-level objects. Examples of kernel object managers include the filesystem,
process management, and System V interprocess communication (IPC). In the LSM architecture, the
object managers are represented by the LSM hooks (!!!); these hooks are scattered throughout the kernel
subsystems and call the SELinux LSM module for access decisions. The LSM hooks then enforce
those decisions by allowing or denying access to the kernel resource." [1]

this basically says we have dozens of object managers, since every LSM hook is one!

but here stephen smalley wrote:

An object manager gets access decisions from its AVC, which consults the security server when the decision isn't already cached. Meanwhile, if a policy change occurs, the security server needs to notify the AVCs of all object managers of the change so that their state can be updated (in simplest form, by flushing the caches). There can be any number of object managers. In Linux, the entire kernel is really a single object manager, but in earlier microkernel-based systems, there were separate object managers for process management, filesystems, and networking.

Quoted 6 lines

http://marc.info/?l=selinux&m=115955074232032&w=2

What is an object manager and who says the truth? ;)

"Every LSM hook object manager" vs "1 single Object Manager"

I don't think they intended to imply that each hook was a discrete object manager in their book. The original terminology here comes from the Flask paper,
http://www.nsa.gov/research/_files/selinux/papers/flask-abs.shtml

An object manager is a component that manages a set of resources and that enforces policy decisions over those resources. The policy decisions are obtained from the security server.

The Linux kernel is a single object manager, although logically you can view it as a collection of object managers (process management, filesystem, networking, IPC) as mentioned above. The X server is another object manager, as is the D-BUS daemon.

Signature · 8 lines
Stephen Smalley
National Security Agency


--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to [email protected] with
the words "unsubscribe selinux" without quotes as the message.
#8 lore raw
Quoted 4 lines

-----Original Message-----
From: [email protected] [mailto:[email protected]]

On

Quoted 10 lines

Behalf Of Stephen Smalley
Sent: Friday, July 24, 2009 7:48 AM
To: Sebastian Pfaff
Cc: [email protected]
Subject: Re: what is an object manager?!

Quoted 3 lines · Sebastian Pfaff

hello,

"Object managers are responsible for enforcing the policy decisions

of

Quoted 6 lines
Quoted 6 lines

the security server for the set
of resources they manage. For the kernel, you can think of object managers as kernel subsystems that
create and manage kernel-level objects. Examples of kernel object managers include the filesystem,
process management, and System V interprocess communication (IPC).

In

Quoted 9 lines
Quoted 9 lines

the LSM architecture, the
object managers are represented by the LSM hooks (!!!); these hooks are scattered throughout the kernel
subsystems and call the SELinux LSM module for access decisions. The LSM hooks then enforce
those decisions by allowing or denying access to the kernel resource." [1]

this basically says we have dozens of object managers, since every

LSM

Quoted 6 lines
Quoted 6 lines

hook is one!

but here stephen smalley wrote:

An object manager gets access decisions from its AVC, which consults the security server when the decision isn't already cached.

Meanwhile,

Quoted 5 lines
Quoted 5 lines

if a policy change occurs, the security server needs to notify the AVCs of all object managers of the change so that their state can be updated (in simplest form, by flushing the caches). There can be any number of object managers. In Linux, the entire kernel is really a single object manager, but in earlier microkernel-based systems,

there

Quoted 1 line
Quoted 1 line

were separate object managers for process management, filesystems,

and

Quoted 11 lines
Quoted 8 lines

networking.

http://marc.info/?l=selinux&m=115955074232032&w=2

What is an object manager and who says the truth? ;)

"Every LSM hook object manager" vs "1 single Object Manager"

I don't think they intended to imply that each hook was a discrete object manager in their book. The original terminology here comes

from

Quoted 8 lines

the Flask paper,
http://www.nsa.gov/research/_files/selinux/papers/flask-abs.shtml

An object manager is a component that manages a set of resources and that enforces policy decisions over those resources. The policy decisions are obtained from the security server.

The Linux kernel is a single object manager, although logically you

can

Quoted 4 lines

view it as a collection of object managers (process management, filesystem, networking, IPC) as mentioned above. The X server is another object manager, as is the D-BUS daemon.

Steve - thanks, that's an excellent clarification of what we intended in the book. The key phrase is "For the kernel, you can _think_ of object managers as kernel subsystems" - i.e., this is just a conceptual view that might help understanding not a literal description.

Thanks - Karl

--
This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.