Jump to contentJump to page navigation: previous page [access key p]/next page [access key n]
SUSE Linux Enterprise Desktop 15 SP2

Security and Hardening Guide

Introduces basic concepts of system security, covering both local and network security aspects. Shows how to use the product inherent security software like AppArmor, SELinux, or the auditing system that reliably collects information about any security-relevant events. Supports the administrator with security-related choices and decisions in installing and setting up a secure SUSE Linux Enterprise Server and additional processes to further secure and harden that installation.

Publication Date: January 14, 2022
About This Guide
Available Documentation
Giving Feedback
Documentation Conventions
Product Life Cycle and Support
1 Security and Confidentiality
1.1 Overview
1.2 Passwords
1.3 System Integrity
1.4 File Access
1.5 Networking
1.6 Software Vulnerabilities
1.7 Malware
1.8 Important Security Tips
1.9 Reporting Security Issues
2 Common Criteria
2.1 Introduction
2.2 Evaluation Assurance Level (EAL)
2.3 Generic Guiding Principles
2.4 For More Information
I Authentication
3 Authentication with PAM
3.1 What is PAM?
3.2 Structure of a PAM Configuration File
3.3 The PAM Configuration of sshd
3.4 Configuration of PAM Modules
3.5 Configuring PAM Using pam-config
3.6 Manually Configuring PAM
3.7 For More Information
4 Using NIS
4.1 Configuring NIS Servers
4.2 Configuring NIS Clients
5 Setting Up Authentication Clients Using YaST
5.1 Configuring an Authentication Client with YaST
5.2 SSSD
6 LDAP with 389 Directory Server
6.1 Structure of an LDAP directory tree
6.2 Installing 389 Directory Server
6.3 Firewall configuration
6.4 Backing up and restoring 389 Directory Server
6.5 Managing LDAP users and groups
6.6 Using SSSD to manage LDAP authentication
6.7 Managing modules
6.8 Importing TLS server certificates and keys
6.9 Setting up replication
6.10 Synchronizing with Microsoft Active Directory
6.11 More information
7 Network Authentication with Kerberos
7.1 Conceptual Overview
7.2 Kerberos Terminology
7.3 How Kerberos Works
7.4 User View of Kerberos
7.5 Setting up Kerberos using LDAP and Kerberos Client
7.6 Kerberos and NFS
7.7 For More Information
8 Active Directory Support
8.1 Integrating Linux and Active Directory Environments
8.2 Background Information for Linux Active Directory Support
8.3 Configuring a Linux Client for Active Directory
8.4 Logging In to an Active Directory Domain
8.5 Changing Passwords
9 Setting Up a FreeRADIUS Server
9.1 Installation and Testing on SUSE Linux Enterprise
II Local Security
10 Physical Security
10.1 System Locks
10.2 Locking Down the BIOS
10.3 Security via the Boot Loaders
10.4 Retiring Linux Servers with Sensitive Data
10.5 Restricting Access to Removable Media
11 Software Management
11.1 Removing Unnecessary Software Packages (RPMs)
11.2 Patching Linux Systems
12 File Management
12.1 Disk Partitions
12.2 Modifying permissions of certain system files
12.3 Changing Home Directory Permissions from 755 to 700
12.4 Default umask
12.5 SUID/SGID Files
12.6 World-Writable Files
12.7 Orphaned or Unowned Files
13 Encrypting Partitions and Files
13.1 Setting Up an Encrypted File System with YaST
13.2 Encrypting Files with GPG
14 Storage Encryption for Hosted Applications with cryptctl
14.1 Setting Up a cryptctl Server
14.2 Setting Up a cryptctl Client
14.3 Checking Partition Unlock Status Using Server-side Commands
14.4 Unlocking Encrypted Partitions Manually
14.5 Maintenance Downtime Procedure
14.6 For More Information
15 User Management
15.1 Various Account Checks
15.2 Enabling Password Aging
15.3 Stronger Password Enforcement
15.4 Password and Login Management with PAM
15.5 Restricting root Logins
15.6 Restricting sudo Users
15.7 Setting an Inactivity Timeout for Interactive Shell Sessions
15.8 Preventing Accidental Denial of Service
15.9 Displaying Login Banners
15.10 Connection Accounting Utilities
16 Restricting cron and at
16.1 Restricting the cron Daemon
16.2 Restricting the at scheduler
17 Spectre/Meltdown Checker
17.1 Using spectre-meltdown-checker
17.2 Additional Information about Spectre/Meltdown
18 Configuring Security Settings with YaST
18.1 Security Overview
18.2 Predefined Security Configurations
18.3 Password Settings
18.4 Boot Settings
18.5 Login Settings
18.6 User Addition
18.7 Miscellaneous Settings
19 Authorization with PolKit
19.1 Conceptual Overview
19.2 Authorization Types
19.3 Querying Privileges
19.4 Modifying Configuration Files
19.5 Restoring the Default Privileges
20 Access Control Lists in Linux
20.1 Traditional File Permissions
20.2 Advantages of ACLs
20.3 Definitions
20.4 Handling ACLs
20.5 ACL Support in Applications
20.6 For More Information
21 Intrusion Detection with AIDE
21.1 Why Use AIDE?
21.2 Setting Up an AIDE Database
21.3 Local AIDE Checks
21.4 System Independent Checking
21.5 For More Information
III Network Security
22 X Window System and X Authentication
23 SSH: Secure Network Operations
23.1 ssh—Secure Shell
23.2 scp—Secure Copy
23.3 sftp—Secure File Transfer
23.4 The SSH Daemon (sshd)
23.5 SSH Authentication Mechanisms
23.6 Restricting SSH Logins
23.7 Port Forwarding
23.8 Adding and Removing Public Keys on an Installed System
23.9 For More Information
24 Masquerading and Firewalls
24.1 Packet Filtering with iptables
24.2 Masquerading Basics
24.3 Firewalling Basics
24.4 firewalld
24.5 Migrating from SuSEfirewall2
24.6 For More Information
25 Configuring a VPN Server
25.1 Conceptual Overview
25.2 Setting Up a Simple Test Scenario
25.3 Setting Up Your VPN Server Using a Certificate Authority
25.4 For More Information
26 Improving Network Security with sysctl Variables
27 Enabling FIPS 140-2
27.1 Installing FIPS
27.2 Enabling FIPS
IV Confining Privileges with AppArmor
28 Introducing AppArmor
28.1 AppArmor Components
28.2 Background Information on AppArmor Profiling
29 Getting Started
29.1 Installing AppArmor
29.2 Enabling and Disabling AppArmor
29.3 Choosing Applications to Profile
29.4 Building and Modifying Profiles
29.5 Updating Your Profiles
30 Immunizing Programs
30.1 Introducing the AppArmor Framework
30.2 Determining Programs to Immunize
30.3 Immunizing cron Jobs
30.4 Immunizing Network Applications
31 Profile Components and Syntax
31.1 Breaking an AppArmor Profile into Its Parts
31.2 Profile Types
31.3 Include Statements
31.4 Capability Entries (POSIX.1e)
31.5 Network Access Control
31.6 Profile Names, Flags, Paths, and Globbing
31.7 File Permission Access Modes
31.8 Mount Rules
31.9 Pivot Root Rules
31.10 PTrace Rules
31.11 Signal Rules
31.12 Execute Modes
31.13 Resource Limit Control
31.14 Auditing Rules
32 AppArmor Profile Repositories
33 Building and Managing Profiles with YaST
33.1 Manually Adding a Profile
33.2 Editing Profiles
33.3 Deleting a Profile
33.4 Managing AppArmor
34 Building Profiles from the Command Line
34.1 Checking the AppArmor Status
34.2 Building AppArmor Profiles
34.3 Adding or Creating an AppArmor Profile
34.4 Editing an AppArmor Profile
34.5 Unloading Unknown AppArmor Profiles
34.6 Deleting an AppArmor Profile
34.7 Two Methods of Profiling
34.8 Important File Names and Directories
35 Profiling Your Web Applications Using ChangeHat
35.1 Configuring Apache for mod_apparmor
35.2 Managing ChangeHat-Aware Applications
36 Confining Users with pam_apparmor
37 Managing Profiled Applications
37.1 Reacting to Security Event Rejections
37.2 Maintaining Your Security Profiles
38 Support
38.1 Updating AppArmor Online
38.2 Using the Man Pages
38.3 For More Information
38.4 Troubleshooting
38.5 Reporting Bugs for AppArmor
39 AppArmor Glossary
V The Linux Audit Framework
40 Understanding Linux Audit
40.1 Introducing the Components of Linux Audit
40.2 Configuring the Audit Daemon
40.3 Controlling the Audit System Using auditctl
40.4 Passing Parameters to the Audit System
40.5 Understanding the Audit Logs and Generating Reports
40.6 Querying the Audit Daemon Logs with ausearch
40.7 Analyzing Processes with autrace
40.8 Visualizing Audit Data
40.9 Relaying Audit Event Notifications
41 Setting Up the Linux Audit Framework
41.1 Determining the Components to Audit
41.2 Configuring the Audit Daemon
41.3 Enabling Audit for System Calls
41.4 Setting Up Audit Rules
41.5 Configuring Audit Reports
41.6 Configuring Log Visualization
42 Introducing an Audit Rule Set
42.1 Adding Basic Audit Configuration Parameters
42.2 Adding Watches on Audit Log Files and Configuration Files
42.3 Monitoring File System Objects
42.4 Monitoring Security Configuration Files and Databases
42.5 Monitoring Miscellaneous System Calls
42.6 Filtering System Call Arguments
42.7 Managing Audit Event Records Using Keys
43 Useful Resources
A GNU Licenses
A.1 GNU Free Documentation License

Copyright © 2006– 2022 SUSE LLC and contributors. All rights reserved.

Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or (at your option) version 1.3; with the Invariant Section being this copyright notice and license. A copy of the license version 1.2 is included in the section entitled GNU Free Documentation License.

For SUSE trademarks, see https://www.suse.com/company/legal/. All other third-party trademarks are the property of their respective owners. Trademark symbols (®, ™ etc.) denote trademarks of SUSE and its affiliates. Asterisks (*) denote third-party trademarks.

All information found in this book has been compiled with utmost attention to detail. However, this does not guarantee complete accuracy. Neither SUSE LLC, its affiliates, the authors nor the translators shall be held liable for possible errors or the consequences thereof.

Print this page