SELinux System Administration

By Sven Vermeulen

With a command of SELinux you could get pleasure from watertight safeguard in your Linux servers. This consultant indicates you the way via examples taken from real-life occasions, supplying you with a great grounding in all of the on hand features.

Overview

  • Use SELinux to additional keep an eye on community communications
  • Enhance your system's safeguard via SELinux entry controls
  • Set up SELinux roles, clients and their sensitivity levels

In Detail

NSA Security-Enhanced Linux (SELinux) is a collection of patches and further utilities to the Linux kernel to include a robust, versatile, crucial entry keep an eye on structure into the key subsystems of the kernel. With its fine-grained but versatile procedure, it really is no ask yourself Linux distributions are firing up SELinux as a default protection measure.

SELinux procedure management covers the vast majority of SELinux gains via a mixture of real-life situations, descriptions, and examples. every thing an administrator must extra music SELinux to fit their wishes are found in this book.

This e-book touches on quite a few SELinux subject matters, guiding you thru the configuration of SELinux contexts, definitions, and the project of SELinux roles, and finally ends up with coverage improvements. All of SELinux's configuration handles, be they conditional rules, constraints, coverage varieties, or audit features, are coated during this e-book with real examples that directors may well come across.

By the tip, SELinux process management could have taught you ways to configure your Linux process to be safer, powered by means of a powerful necessary entry control.

What you'll study from this book

  • Enable and disable positive factors selectively or maybe implement them to a granular level
  • Interpret SELinux logging to make security-conscious decisions
  • Assign new contexts and sensitivity labels to records and different resources
  • Work with mod_selinux to safe internet applications
  • Use instruments like sudo, runcon, and newrole to modify roles and run privileged instructions in a secure environment
  • Use iptables to assign labels to community packets
  • Configure IPSec and NetLabel to move SELinux contexts over the wire
  • Build your individual SELinux rules utilizing reference coverage interfaces

Approach

A step by step advisor to profit the best way to arrange safeguard on Linux servers through taking SELinux rules into your personal hands.

Who this booklet is written for

Linux directors will benefit from the quite a few SELinux beneficial properties that this booklet covers and the strategy used to steer the admin into figuring out how SELinux works. The publication assumes that you've easy wisdom in Linux management, specifically Linux permission and person management.

Show description

Quick preview of SELinux System Administration PDF

Best Security books

Cyber War: The Next Threat to National Security and What to Do About It

Writer of the number one long island occasions bestseller opposed to All Enemies, former presidential consultant and counter-terrorism specialist Richard A. Clarke sounds a well timed and chilling caution approximately America’s vulnerability in a terrifying new foreign conflict—Cyber struggle! each involved American should still learn this startling and explosive booklet that gives an insider’s view of White condo ‘Situation Room’ operations and consists of the reader to the frontlines of our cyber protection.

Hacking Exposed: Network Security Secrets and Solutions, Sixth Edition

The world's bestselling desktop safety book--fully increased and updated"Right now you carry on your hand probably the most profitable protection books ever written. instead of being a sideline player, leverage the dear insights Hacking uncovered 6 presents to assist your self, your organization, and your state struggle cyber-crime.

Information Security: The Complete Reference, Second Edition

Advance and enforce a good end-to-end safeguard software Today’s advanced international of cellular structures, cloud computing, and ubiquitous information entry places new protection calls for on each IT expert. details protection: the entire Reference, moment version (previously titled community protection: the whole Reference) is the single accomplished publication that provides vendor-neutral information on all elements of data security, with an eye fixed towards the evolving chance panorama.

Gray Hat Hacking The Ethical Hacker's Handbook, Fourth Edition

State-of-the-art options for locating and solving serious safeguard flaws improve your community and keep away from electronic disaster with confirmed options from a workforce of safety specialists. thoroughly up to date and that includes 12 new chapters, grey Hat Hacking: the moral Hacker's guide, Fourth version explains the enemy’s present guns, talents, and strategies and provides field-tested treatments, case experiences, and ready-to-deploy checking out labs.

Extra info for SELinux System Administration

Show sample text content

Each one type has a suite of permissions assigned to it that SELinux can regulate. for example, the sem type (used for semaphore entry) is as follows: $ seinfo -csem -x sem affiliate create write unix_read break getattr setattr learn unix_write within the box, so much principles will package deal a collection of permissions by utilizing the { … } brackets: let user_t etc_t : dossier { ioctl learn getattr lock execute execute_ no_trans open } ; This syntax permits coverage builders to make very fine-grained permission controls. we will be able to use the sesearch command to question via those principles. The extra recommendations which are given to the sesearch command, the finer-grained our seek parameters develop into. for example, sesearch -A could supply us all permit principles at present in position. including a resource (-s) filters the output to simply express the permit ideas for this area. including a vacation spot or objective (-t) filters the output much more. different supported concepts for permit principles with sesearch are the category (-c) and permission (-p). The syntax additionally completely fits with the data supplied through AVC denials: type=AVC msg=audit(1371993742. 009:15990): avc: denied { getattr } for pid=31069 comm="aide" path="/usr/lib64/postgresql-9. 2/bin/ postgres" dev="dm-3" ino=803161 scontext=root:sysadm_r:aide_t tcontext =system_u:object_r:postgresql_exec_t tclass=file permitting this actual denial could lead to the subsequent let rule: permit aide_t postgresql_exec_t : dossier { getattr }; [ sixty eight ] Chapter four knowing constraints The enable statements in SELinux besides the fact that in basic terms specialise in the type-related permissions. occasionally, despite the fact that, we have to limit yes activities in response to the person or position info. In SELinux, this is often supported via constraints. Constraints in SELinux are principles which are utilized opposed to a category and a suite of its permissions that have to be actual to ensure that SELinux to extra enable the request. reflect on the next constraint on procedure transitions: constrain technique { transition dyntransition noatsecure siginh rlimitinh } ( u1 == u2 or ( t1 == can_change_process_identity and t2 == process_user_ goal ) or ( t1 == cron_source_domain and ( t2 == cron_job_domain or u2 == system_u ) ) or ( t1 == can_system_change and u2 == system_u ) or ( t1 == process_uncond_exempt ) ); This constraint says that the subsequent rule(s) need to be precise if a transition, dyntransition, or any of the opposite 3 pointed out strategy permissions is invoked: • The SELinux consumer of the area (u1) and objective (u2) must be a similar • The SELinux kind of the area (t1) has to have the can_change_process_ id characteristic set and the SELinux form of the objective (t2) has to have the process_user_target characteristic set • The SELinux kind of the area (t1) has to have the can_system_change characteristic set and the SELinux consumer of the objective (u2) should be system_u • The SELinux kind of the area (t1) has to have the process_uncond_ exempt characteristic set it's via constraints that UBAC is carried out as follows: u1 or or or or == u1 u2 t1 t2 u2 == == !

Download PDF sample

Rated 4.47 of 5 – based on 43 votes