All of lore.kernel.org
 help / color / mirror / Atom feed
* libsemod????
       [not found]       ` <1120833363.17407.30.camel@celtics.boston.redhat.com>
@ 2005-07-08 16:49         ` Daniel J Walsh
  2005-07-08 19:28           ` libsemod???? Karl MacMillan
  0 siblings, 1 reply; 4+ messages in thread
From: Daniel J Walsh @ 2005-07-08 16:49 UTC (permalink / raw)
  To: gyurdiev, Stephen Smalley; +Cc: SELinux

Why are we creating more libraries?  What benefit does the added 
complexity give us?  Why not just have one library for policy file 
management and one for selinux management?  A developer using these 
libraries in the future is not going to care about selinux/sepol/semod.  
He wants to build an selinux aware app he will probably want to link to 
libselinux.

 ls -l /lib/libse*
-rwxr-xr-x  1 root root  77192 Jun 29 16:08 /lib/libselinux.so.1
-rwxr-xr-x  1 root root 135140 Jul  7 07:15 /lib/libsepol.so.1

Are these libraries too large.  I do not want to add additional packages 
just for libraries.

-- 



--
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: libsemod????
  2005-07-08 16:49         ` libsemod???? Daniel J Walsh
@ 2005-07-08 19:28           ` Karl MacMillan
  2005-07-11 14:01             ` libsemod???? Stephen Smalley
  0 siblings, 1 reply; 4+ messages in thread
From: Karl MacMillan @ 2005-07-08 19:28 UTC (permalink / raw)
  To: 'Daniel J Walsh', gyurdiev, 'Stephen Smalley'
  Cc: 'SELinux'

> -----Original Message-----
> From: owner-selinux@tycho.nsa.gov [mailto:owner-selinux@tycho.nsa.gov] On
> Behalf Of Daniel J Walsh
> Sent: Friday, July 08, 2005 12:50 PM
> To: gyurdiev@redhat.com; Stephen Smalley
> Cc: SELinux
> Subject: libsemod????
> 
> Why are we creating more libraries?  What benefit does the added
> complexity give us?  Why not just have one library for policy file
> management and one for selinux management?  A developer using these
> libraries in the future is not going to care about selinux/sepol/semod.
> He wants to build an selinux aware app he will probably want to link to
> libselinux.
> 
>  ls -l /lib/libse*
> -rwxr-xr-x  1 root root  77192 Jun 29 16:08 /lib/libselinux.so.1
> -rwxr-xr-x  1 root root 135140 Jul  7 07:15 /lib/libsepol.so.1
> 
> Are these libraries too large.  I do not want to add additional packages
> just for libraries.
> 
> --
> 

The three libraries accomplish 3 very different tasks:

1. Libsepol - policy manipulation.
2. Libselinux - access / labeling decisions and other runtime policy support.
3. Libsemod (which has been suggested off-list to become libsemanage) -
management of selinux policy including addition and removal of modules, selinux
user management, file context modification, etc.

I think that as things move forward the applications that link to multiple
versions will decrease. User-space object managers and trusted selinux aware
applications (e.g., dbus or login) will link to libselinux. Management tools
will link to libsemod (e.g., semodule, useradd). Libsepol is the backend for the
management tools - it could be made static I guess.

The alternative is that dbus will have code for adding policy modules including
over the network in the future (if libsemod is merged with libselinux) or that
checkpolicy will have the same code (if it is merged with libsepol). Doesn't
seem ideal to me. What is the downside? Extra packages?

Karl

---
Karl MacMillan
Tresys Technology
http://www.tresys.com
(410) 290-1411 ext 134

> 
> 
> --
> 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.



--
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: libsemod????
  2005-07-08 19:28           ` libsemod???? Karl MacMillan
@ 2005-07-11 14:01             ` Stephen Smalley
  2005-07-11 15:20               ` libsemod???? Daniel J Walsh
  0 siblings, 1 reply; 4+ messages in thread
From: Stephen Smalley @ 2005-07-11 14:01 UTC (permalink / raw)
  To: Karl MacMillan; +Cc: 'Daniel J Walsh', gyurdiev, 'SELinux'

On Fri, 2005-07-08 at 15:28 -0400, Karl MacMillan wrote:
> The three libraries accomplish 3 very different tasks:
> 
> 1. Libsepol - policy manipulation.
> 2. Libselinux - access / labeling decisions and other runtime policy support.
> 3. Libsemod (which has been suggested off-list to become libsemanage) -
> management of selinux policy including addition and removal of modules, selinux
> user management, file context modification, etc.
> 
> I think that as things move forward the applications that link to multiple
> versions will decrease. User-space object managers and trusted selinux aware
> applications (e.g., dbus or login) will link to libselinux. Management tools
> will link to libsemod (e.g., semodule, useradd). Libsepol is the backend for the
> management tools - it could be made static I guess.

Notice also that libsepol at least needs to be useable on non-SELinux
hosts for offline binary policy file generation and manipulation.  In
contrast, libselinux is specifically for security-aware applications
running on SELinux.

> The alternative is that dbus will have code for adding policy modules including
> over the network in the future (if libsemod is merged with libselinux) or that
> checkpolicy will have the same code (if it is merged with libsepol). Doesn't
> seem ideal to me. What is the downside? Extra packages?

I say we roll them all into glibc ;)

-- 
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 majordomo@tycho.nsa.gov with
the words "unsubscribe selinux" without quotes as the message.

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

* Re: libsemod????
  2005-07-11 14:01             ` libsemod???? Stephen Smalley
@ 2005-07-11 15:20               ` Daniel J Walsh
  0 siblings, 0 replies; 4+ messages in thread
From: Daniel J Walsh @ 2005-07-11 15:20 UTC (permalink / raw)
  To: Stephen Smalley; +Cc: Karl MacMillan, gyurdiev, 'SELinux'

Stephen Smalley wrote:

>On Fri, 2005-07-08 at 15:28 -0400, Karl MacMillan wrote:
>  
>
>>The three libraries accomplish 3 very different tasks:
>>
>>1. Libsepol - policy manipulation.
>>2. Libselinux - access / labeling decisions and other runtime policy support.
>>3. Libsemod (which has been suggested off-list to become libsemanage) -
>>management of selinux policy including addition and removal of modules, selinux
>>user management, file context modification, etc.
>>
>>I think that as things move forward the applications that link to multiple
>>versions will decrease. User-space object managers and trusted selinux aware
>>applications (e.g., dbus or login) will link to libselinux. Management tools
>>will link to libsemod (e.g., semodule, useradd). Libsepol is the backend for the
>>management tools - it could be made static I guess.
>>    
>>
>
>Notice also that libsepol at least needs to be useable on non-SELinux
>hosts for offline binary policy file generation and manipulation.  In
>contrast, libselinux is specifically for security-aware applications
>running on SELinux.
>
>  
>
>>The alternative is that dbus will have code for adding policy modules including
>>over the network in the future (if libsemod is merged with libselinux) or that
>>checkpolicy will have the same code (if it is merged with libsepol). Doesn't
>>seem ideal to me. What is the downside? Extra packages?
>>    
>>
>
>I say we roll them all into glibc ;)
>
>  
>
I still think one libselinux and one libsepol would be fine.  But if you 
all believe with need this new libsemod/libsemanage then  so be it.  You 
are the upstream maintainer.  I just want the name finallized before I 
add it to Fedora.

Dan

-- 



--
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

end of thread, other threads:[~2005-07-11 15:20 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <1120744424.514.23.camel@celtics.boston.redhat.com>
     [not found] ` <1120826367.19035.26.camel@moss-spartans.epoch.ncsc.mil>
     [not found]   ` <1120830443.17407.15.camel@celtics.boston.redhat.com>
     [not found]     ` <1120831505.19035.70.camel@moss-spartans.epoch.ncsc.mil>
     [not found]       ` <1120833363.17407.30.camel@celtics.boston.redhat.com>
2005-07-08 16:49         ` libsemod???? Daniel J Walsh
2005-07-08 19:28           ` libsemod???? Karl MacMillan
2005-07-11 14:01             ` libsemod???? Stephen Smalley
2005-07-11 15:20               ` libsemod???? Daniel J Walsh

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.