Skip to Content
Linux Administration Cookbook
book

Linux Administration Cookbook

by Adam K. Dean
December 2018
Beginner
826 pages
22h 54m
English
Packt Publishing
Content preview from Linux Administration Cookbook

How to do it...

First thing's first, let's make sure that apparmor is running, using our old pal, systemctl:

$ systemctl status apparmor● apparmor.service - AppArmor initialization   Loaded: loaded (/lib/systemd/system/apparmor.service; enabled; vendor preset: enabled)   Active: active (exited) since Sun 2018-10-28 10:41:23 UTC; 4h 21min ago     Docs: man:apparmor(7)           http://wiki.apparmor.net/  Process: 426 ExecStart=/etc/init.d/apparmor start (code=exited, status=0/SUCCESS) Main PID: 426 (code=exited, status=0/SUCCESS)Warning: Journal has been rotated since unit was started. Log output is incomplete or unavailable.

To see what profiles are loaded, and what mode they're running in, use apparmor_status:

$ sudo apparmor_status apparmor module is loaded. ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Practical Linux Security Cookbook - Second Edition

Practical Linux Security Cookbook - Second Edition

Tajinder Kalsi
Mastering Linux Administration

Mastering Linux Administration

Alexandru Calcatinge, Julian Balog

Publisher Resources

ISBN: 9781789342529Supplemental Content