Skip to contentSkip to conversation

SELinux Policy Editor 2.0(seedit 2.0)

ANN Yuichi Nakamura 2 participants 4 messages Jul 6, 2006 – Jul 11, 2006 SELinux security module

lore
Share & tools
lore
#0 lore raw

Hi.

I am glad to announce that SELinux Policy Editor 2.0(seedit 2.0) has been released. seedit is a tool to make SELinux easy.
We have renewed the tool. Almost everything have been changed.
Policy generator, new GUI are developed, and many others.
You can download and try it from
http://seedit.sourceforge.net
Manuals are also provided.
It supports Fedora Core 5 and Cent OS 4.

If you have question, please feel free to contact me.

Here is a brief introduction of seedit 2.0:

1. About SELinux Policy Editor
SELinux Policy Editor(seedit) is a tool to make SELinux easy.
It was originally developed by Hitachi Software,
now is developed in SELinux Policy Editor Project(http://seedit.sourceforge.net).

seedit is composed of Simplified Policy and
tools such as GUI and policy generator.
The most important is Simplified Policy.
Simplified Policy is a policy described by
Simplified Policy Description Language(SPDL).
SPDL hides detail of SELinux configuration by name-based configuration and reducing number of permissions.
Following is example policy for Apache by SPDL.

domain httpd_t;
include daemon.sp;
program /usr/sbin/httpd;
allow /var/www/** r,s;
allownet -protocol tcp -port 80 server.
...

As you see, type is not used.
You can use file name, port number in configuration. SPDL is converted into SELinux policy by SPDL compiler.

2. New features in 2.0
In this release, we have renewed our tool.
We improved usability and security.

2.1 Improvement in usability
About usability, we learned a lot from AppArmor. We investigated AppArmor and taken good points of it. We have to thank to them :-)

* New GUI
We have developed new GUI "seedit Control Panel".
It works on X Window System, implemented by python and pygtk. You can see screenshots at
http://sourceforge.net/project/screenshots.php?group_id=135756 .

You can do almost everything about SELinux from control panel. Features of control panel are following:
- Policy Generator
Read audit log and generate Simplified Policy.
- Policy Template tool
User can generate policy template for applications by answering some questions.
- Editor
Editor for SPDL, you can insert configuration by GUI.
- Status checker
It is like AppArmor's unconfined command.
You can check network process's domain.
You can see which domains are assigned unconfined domain.

* Syntax of SPDL:
We have taken some AppArmor's profile syntax into SPDL.

* RBAC(Role-Based Access Control) Support
You can switch on/off RBAC support easily by one command. See RBAC guide.

2.2 Improvement of security
SPDL reduces number of permissions by integrating SELinux's permissions, but it affects security.
We have re-designed permission integration of SPDL,
as a research project at The George Washington University. For detail of SPDL, see document
"Specification of Simplified Policy Description Language(SPDL)". More documents about security is in progress.

3. Feedback
If you have question or want to say something to us, please e-mail to me([email protected]), or subscribe seedit-devel-list at
http://sourceforge.net/mail/?group_id=135756

---
Yuichi Nakamura
The George Washington University, Hitachi Software SELinux Policy Editor: http://seedit.sourceforge.net/

--
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 11 lines · Yuichi Nakamura

Hi.

I am glad to announce that SELinux Policy Editor 2.0(seedit 2.0) has been released. seedit is a tool to make SELinux easy.
We have renewed the tool. Almost everything have been changed.
Policy generator, new GUI are developed, and many others.
You can download and try it from
http://seedit.sourceforge.net
Manuals are also provided.
It supports Fedora Core 5 and Cent OS 4.

Quoted 1 line

If you have question, please feel free to contact me.

What are your plans for modular policy support? In the absence of it, using your tool/policy on FC5 will disable the ability to use policy modules and semanage on FC5, which would be a regression for users and may break some packages that are beginning to leverage the semodule and semanage functionality.

Quoted 1 line

allownet -protocol tcp -port 80 server.

Be aware that the old network controls are being superseded by the new secmark functionalty, so you will need to rework your tool to generate the new allow...:packet { send recv} rules and to generate iptables rules for marking the packets appropriately for 2.6.18 and later, unless you enable compatibility mode for the old checks.

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.
#2 lore raw
Quoted 5 lines · On Mon, 10 Jul 2006 17:03:29 -0400 Stephen Smalley wrote:

What are your plans for modular policy support? In the absence of it, using your tool/policy on FC5 will disable the ability to use policy modules and semanage on FC5, which would be a regression for users and may break some packages that are beginning to leverage the semodule and semanage functionality.

I have two plans.

1) Full Simplified Policy, no modular policy
This is current version.
Whole policy is replaced by simplified policy, generated policy is monolithic.
What I want do is AppArmor-like configuration(security enhanced AppArmor??). I think I do not need modular policy for that use.
semanage, semodule commands,APIs are not used in current version.

2) Appendable simplified policy, modular policy support It exists only in my head..
Simplified policy for one domain is converted into .pp file, and loadable to existing policy.
It will take time, because I have been spending time for 1).

Quoted 5 lines

Be aware that the old network controls are being superseded by the new secmark functionalty, so you will need to rework your tool to generate the new allow...:packet { send recv} rules and to generate iptables rules for marking the packets appropriately for 2.6.18 and later, unless you enable compatibility mode for the old checks.

Thanks for information.
I will support both.

Yuichi Nakamura

--
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 9 lines · Yuichi Nakamura
Quoted 5 lines · On Mon, 10 Jul 2006 17:03:29 -0400 Stephen Smalley wrote:

What are your plans for modular policy support? In the absence of it, using your tool/policy on FC5 will disable the ability to use policy modules and semanage on FC5, which would be a regression for users and may break some packages that are beginning to leverage the semodule and semanage functionality.

I have two plans.

Quoted 7 lines

1) Full Simplified Policy, no modular policy
This is current version.
Whole policy is replaced by simplified policy, generated policy is monolithic.
What I want do is AppArmor-like configuration(security enhanced AppArmor??). I think I do not need modular policy for that use.
semanage, semodule commands,APIs are not used in current version.

You might not be using semanage and semodule from your own tools, but users are using them already in FC5 and packages are beginning to use them as well from scriptlets in order to install per-package policy or apply other package-specific customizations. Hence, switching to using seedit will break such usage.

It shouldn't be difficult for you to just build your simplified policy as a base policy module using checkmodule and install it via semodule, in the same manner as the stock FC5 selinux-policy package. Then users and packages can continue using semodule and semanage.

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.