All of lore.kernel.org
 help / color / mirror / Atom feed
* PMS and SELinux
@ 2007-07-30 19:25 shahbaz khan
  2007-07-31 20:49 ` Joshua Brindle
  0 siblings, 1 reply; 4+ messages in thread
From: shahbaz khan @ 2007-07-30 19:25 UTC (permalink / raw)
  To: selinux

[-- Attachment #1: Type: text/plain, Size: 1350 bytes --]

I would like to ask a few questions from the experts regarding some
implementations. I am working on a survey on selinux rsbac and grsecurity.
Got some from mailing lists but need more. References will be appreciated..
They are the following:


   1. What is a security aware application. What functionality it can
   provide? Has this functionality been provide in the other competitors.
   2. Where are sids implemented. I have heard that they are history now.
   How are they opaque to object managers?
   3. What difference has PMS brought to selinux. Do we have such in
   other implementations?
   4. How is PMS implemented? Any technical documents? Is it a secure
   application using the extended api?
   5. How and where is AVC implemented?
   6. Is there any good logging facility apart from regular denial? I
   have heard rsbac and grsecurity has better logging facilities.
   7. SELinux uses syscall interception. Is it through LSM? How does
   rsbac and grsecurity manage this?
   8. Of the topic but how does grsecurity implement acls and rbac. Is
   rbac used through the acls or a seperate module?
   9. How can we best judge the network controls of rsbac and grsecurity
   w.r.t. implementation, usability and functionality?

I will be glad to put the names of responders in my survey document's
acknowledgements.

Thank you.
Shaz.

[-- Attachment #2: Type: text/html, Size: 1449 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* PMS and selinux
@ 2007-07-30 19:48 shahbaz khan
  0 siblings, 0 replies; 4+ messages in thread
From: shahbaz khan @ 2007-07-30 19:48 UTC (permalink / raw)
  To: selinux

I had some problems sending this so sorry for twin sends if ahappened so.

I would like to ask a few questions from the experts regarding some
implementations. I am working on a survey on selinux rsbac and
grsecurity. Got some from mailing lists but need more. References will
be appreciated.. They are the following:

1. What is a security aware application. What functionality it can
provide? Has this functionality been provide in the other competitors.

2. Where are sids implemented. I have heard that they are history now.
How are they opaque to object managers?

3. What difference has PMS brought to selinux. Do we have such in
other implementations?

4. How is PMS implemented? Any technical documents? Is it a secure
application using the extended api?

5. How and where is AVC implemented?

6.Is there any good logging facility apart from regular denial? I have
heard rsbac and grsecurity has better logging facilities.

7. SELinux uses syscall interception. Is it through LSM? How does
rsbac and grsecurity manage this?

8. Of the topic but how does grsecurity implement acls and rbac. Is
rbac used through the acls or a seperate module?

9. How can we best judge the network controls of rsbac and grsecurity
w.r.t. implementation, usability and functionality?

I will be glad to put the names of responders in my survey document's
acknowledgements.

Thank you.
Shaz.

--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to majordomo@tycho.nsa.gov with
the words "unsubscribe selinux" without quotes as the message.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: PMS and SELinux
  2007-07-30 19:25 PMS and SELinux shahbaz khan
@ 2007-07-31 20:49 ` Joshua Brindle
  2007-07-31 21:40   ` shahbaz khan
  0 siblings, 1 reply; 4+ messages in thread
From: Joshua Brindle @ 2007-07-31 20:49 UTC (permalink / raw)
  To: shahbaz khan; +Cc: selinux

shahbaz khan wrote:
> I would like to ask a few questions from the experts regarding some 
> implementations. I am working on a survey on selinux rsbac and 
> grsecurity. Got some from mailing lists but need more. References will 
> be appreciated.. They are the following:
>  
>
>    1. What is a security aware application. What functionality it can
>       provide? Has this functionality been provide in the other
>       competitors.
>
a security aware application, in SELinux, is an application that 
utilizes the userspace interface to the security server. That is, it 
requests security decisions that are fulfilled by the kernelspace or 
userspace security server based on the policy loaded into the security 
server.

>    1. Where are sids implemented. I have heard that they are history
>       now. How are they opaque to object managers?
>
sids are only used in the kernel now, as a way to avoid dealing with 
memory lifespans on structs containing a security field (and also to 
save memory by only having one copy of each context, in the sidtab)

>    1. What difference has PMS brought to selinux. Do we have such in
>       other implementations?
>
it is still in a prototype phase so in terms of practical benefits it is 
pretty minimal, for now. It does allow one to control updates to the 
policy though, and hopefully will be ready for widespead deployment at 
some point in the near future. Other implementations (eg., rsbac, 
grsecurity) do not have fine grained access control on policy updates, 
implementations such as trusted extensions on solaris have a static BLP 
policy and therefore have no policy updates.

>    1. How is PMS implemented? Any technical documents? Is it a secure
>       application using the extended api?
>
There are a few fairly high level documents on selinux-symposium.org, 
and some others on oss.tresys.com/projects/policy-server. Since the 
object model changed fairly in the last implementation of the policy 
server the technical documents on the object model are currently out of 
date, we should be updating them at some point though.

>    1. How and where is AVC implemented?
>
the AVC is used by object managers (both kernel and userspace) to make 
access decision lookups faster, there is an implementation in the kernel 
(security/selinux/avc.c) and in libselinux (libselinux/src/avc.c)

>    1. Is there any good logging facility apart from regular denial? I
>       have heard rsbac and grsecurity has better logging facilities.
>
SELinux utilizes the in-kernel auditing framework, we don't want to 
confuse auditing and security policy enforcement (though we do have 
auditallow functionality), more fine grained auditing on specific 
syscalls, etc can be accomplished with the audit framework (see man 
auditctl)

>    1. SELinux uses syscall interception. Is it through LSM? How does
>       rsbac and grsecurity manage this?
>
There is no syscall interception, LSM is more abstract than the syscall 
layer. rsbac and grsecurity both implement their own hook systems that 
are similar (both different enough that they aren't satisfied with LSM).

>    1. Of the topic but how does grsecurity implement acls and rbac. Is
>       rbac used through the acls or a seperate module?
>
probably the best place to ask detailed questions about grsecurity's acl 
implementation is on their list.

>    1. How can we best judge the network controls of rsbac and
>       grsecurity w.r.t. implementation, usability and functionality?
>
grsec and rsbac both use network controls similar to the old selinux 
controls, where we limited access to specific ports, network interfaces, 
etc. SELinux now uses a netfilter based system where we apply labels to 
packets based on any netfilter criteria (port, interface, remote node, 
connection tracking, anything iptables can filter on) and we allow 
access based on the label of a particular packet. We also have 2 
implementations of labeled networking, which isn't available in rsbac or 
grsec.

> I will be glad to put the names of responders in my survey document's 
> acknowledgements.
>  
No need.


--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to majordomo@tycho.nsa.gov with
the words "unsubscribe selinux" without quotes as the message.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: PMS and SELinux
  2007-07-31 20:49 ` Joshua Brindle
@ 2007-07-31 21:40   ` shahbaz khan
  0 siblings, 0 replies; 4+ messages in thread
From: shahbaz khan @ 2007-07-31 21:40 UTC (permalink / raw)
  To: Joshua Brindle, selinux

[-- Attachment #1: Type: text/plain, Size: 4890 bytes --]

On 8/1/07, Joshua Brindle <method@manicmethod.com> wrote:
>
> shahbaz khan wrote:
> > I would like to ask a few questions from the experts regarding some
> > implementations. I am working on a survey on selinux rsbac and
> > grsecurity. Got some from mailing lists but need more. References will
> > be appreciated.. They are the following:
> >
> >
> >    1. What is a security aware application. What functionality it can
> >       provide? Has this functionality been provide in the other
> >       competitors.
> >
> a security aware application, in SELinux, is an application that
> utilizes the userspace interface to the security server. That is, it
> requests security decisions that are fulfilled by the kernelspace or
> userspace security server based on the policy loaded into the security
> server.


What is the difference between kernel space and user space security server?

>    1. Where are sids implemented. I have heard that they are history
> >       now. How are they opaque to object managers?
> >
> sids are only used in the kernel now, as a way to avoid dealing with
> memory lifespans on structs containing a security field (and also to
> save memory by only having one copy of each context, in the sidtab)
>
> >    1. What difference has PMS brought to selinux. Do we have such in
> >       other implementations?
> >
> it is still in a prototype phase so in terms of practical benefits it is
> pretty minimal, for now. It does allow one to control updates to the
> policy though, and hopefully will be ready for widespead deployment at
> some point in the near future. Other implementations (eg., rsbac,
> grsecurity) do not have fine grained access control on policy updates,
> implementations such as trusted extensions on solaris have a static BLP
> policy and therefore have no policy updates.
>
> >    1. How is PMS implemented? Any technical documents? Is it a secure
> >       application using the extended api?
> >
> There are a few fairly high level documents on selinux-symposium.org,
> and some others on oss.tresys.com/projects/policy-server. Since the
> object model changed fairly in the last implementation of the policy
> server the technical documents on the object model are currently out of
> date, we should be updating them at some point though.
>
> >    1. How and where is AVC implemented?
> >
> the AVC is used by object managers (both kernel and userspace) to make
> access decision lookups faster, there is an implementation in the kernel
> (security/selinux/avc.c) and in libselinux (libselinux/src/avc.c)


So we can say that it is partially implemented in both spaces!?

>    1. Is there any good logging facility apart from regular denial? I
> >       have heard rsbac and grsecurity has better logging facilities.
> >
> SELinux utilizes the in-kernel auditing framework, we don't want to
> confuse auditing and security policy enforcement (though we do have
> auditallow functionality), more fine grained auditing on specific
> syscalls, etc can be accomplished with the audit framework (see man
> auditctl)
>
> >    1. SELinux uses syscall interception. Is it through LSM? How does
> >       rsbac and grsecurity manage this?
> >
> There is no syscall interception, LSM is more abstract than the syscall
> layer. rsbac and grsecurity both implement their own hook systems that
> are similar (both different enough that they aren't satisfied with LSM).


What terminology can be used if not interception? Looking at the
architecture it denies or allows a syscall when call is made. The check is
made on the inode and types for process and inode is taken into account
through the hook.

Any information about grsec's and rsbac's hook implementations? They lack a
great deal of documentation!

>    1. Of the topic but how does grsecurity implement acls and rbac. Is
> >       rbac used through the acls or a seperate module?
> >
> probably the best place to ask detailed questions about grsecurity's acl
> implementation is on their list.


They have'nt replied yet.

>    1. How can we best judge the network controls of rsbac and
> >       grsecurity w.r.t. implementation, usability and functionality?
> >
> grsec and rsbac both use network controls similar to the old selinux
> controls, where we limited access to specific ports, network interfaces,
> etc. SELinux now uses a netfilter based system where we apply labels to
> packets based on any netfilter criteria (port, interface, remote node,
> connection tracking, anything iptables can filter on) and we allow
> access based on the label of a particular packet. We also have 2
> implementations of labeled networking, which isn't available in rsbac or
> grsec.
>
> > I will be glad to put the names of responders in my survey document's
> > acknowledgements.
> >
> No need.


I insist. An honor for me. I do not like to show off with someone elses
intellect and hardwork.

[-- Attachment #2: Type: text/html, Size: 6656 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2007-07-31 21:40 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-07-30 19:25 PMS and SELinux shahbaz khan
2007-07-31 20:49 ` Joshua Brindle
2007-07-31 21:40   ` shahbaz khan
  -- strict thread matches above, loose matches on Subject: below --
2007-07-30 19:48 PMS and selinux shahbaz khan

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.