Book Image

SELinux Cookbook

By : Sven Vermeulen
Book Image

SELinux Cookbook

By: Sven Vermeulen

Overview of this book

Table of Contents (17 chapters)
SELinux Cookbook
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Researching the application's logical design


Before embarking on a policy development spree, we need to look at the application's behavior and logical design. We will get to know the application and its interactions as we begin to model this into the SELinux policy.

How to do it…

To prepare an SELinux policy for the application, let's first look at how the application behaves:

  1. Look into the files and directories that the application will interact with and write down the privileges that the application needs. Try to structure access based on the functionalities of the application.

  2. Figure out which network resources are required by the application, which ports does the application bind (listen) to (if any), and which ports does it need to connect to.

  3. If the application needs to interact with other SELinux domains (processes), how does this interaction look (or what is it for)?

  4. Does the application require specific hardware access or other kernel-provided resources?

How it works…

Gathering information...