Skip to contentSkip to conversation

libsemod????

DISCUSSION Daniel J Walsh 3 participants 4 messages Jul 8, 2005 – Jul 11, 2005 5 messages not in the archive SELinux security module

lore
Share & tools
lore
#5 lore raw
In reply to a message not in the archive

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.

Signature · 4 lines
--
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.
#6 lore raw
Quoted 19 lines

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Daniel J Walsh
Sent: Friday, July 08, 2005 12:50 PM
To: [email protected]; 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*

(quoted diff) +0 -2
-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
Quoted 5 lines

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

Quoted 6 lines

--
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
Quoted 8 lines · Karl MacMillan

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.

Quoted 5 lines

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.

Quoted 4 lines

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

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 26 lines · Stephen Smalley
Quoted 8 lines · Karl MacMillan

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.

Quoted 7 lines

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.

Quoted 11 lines
Quoted 6 lines

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

Signature · 4 lines
--
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.