AppArmor is an effective and easy-to-use Linux application security system. AppArmor protects the Linux operating system and applications from external or internal threats, even zero-day attacks, by enforcing good behavior and preventing even unknown application flaws from being exploited.
Tutorial details | |
---|---|
Difficulty | Easy (rss) |
Root privileges | Yes |
Requirements | Suse/Ubuntu/Debian |
Time | N/A |
Task: Stop Apparmor
Type the following command:
## debian/ubuntu sudo /etc/init.d/apparmor stop ## Suse /etc/init.d/boot.apparmor stop
Task: Start Apparmor
Type the following command:
## debian/ubuntu sudo /etc/init.d/apparmor start ## Suse /etc/init.d/boot.apparmor start
Task: Restart Apparmor
Type the following command:
## debian/ubuntu sudo /etc/init.d/apparmor restart ## Suse /etc/init.d/boot.apparmor restart
Task: See the current Apparmor status
Type the following command:
## debian/ubuntu sudo /etc/init.d/apparmor status ## Suse /etc/init.d/boot.apparmor status
Sample outputs:
apparmor module is loaded. 17 profiles are loaded. 17 profiles are in enforce mode. /bin/ping /sbin/klogd /sbin/syslog-ng /sbin/syslogd /usr/lib/PolicyKit/polkit-explicit-grant-helper /usr/lib/PolicyKit/polkit-grant-helper /usr/lib/PolicyKit/polkit-grant-helper-pam /usr/lib/PolicyKit/polkit-read-auth-helper /usr/lib/PolicyKit/polkit-resolve-exe-helper /usr/lib/PolicyKit/polkit-revoke-helper /usr/lib/PolicyKit/polkitd /usr/sbin/avahi-daemon /usr/sbin/identd /usr/sbin/mdnsd /usr/sbin/nscd /usr/sbin/ntpd /usr/sbin/traceroute 0 profiles are in complain mode. 3 processes have profiles defined. 3 processes are in enforce mode : /sbin/klogd (812) /sbin/syslog-ng (809) /usr/sbin/nscd (6229) 0 processes are in complain mode. 0 processes are unconfined but have a profile defined.
References:
🐧 Get the latest tutorials on Linux, Open Source & DevOps via RSS feed or Weekly email newsletter.
🐧 1 comment so far... add one ↓
🐧 1 comment so far... add one ↓
Category | List of Unix and Linux commands |
---|---|
File Management | cat |
Firewall | Alpine Awall • CentOS 8 • OpenSUSE • RHEL 8 • Ubuntu 16.04 • Ubuntu 18.04 • Ubuntu 20.04 |
Network Utilities | dig • host • ip • nmap |
OpenVPN | CentOS 7 • CentOS 8 • Debian 10 • Debian 8/9 • Ubuntu 18.04 • Ubuntu 20.04 |
Package Manager | apk • apt |
Processes Management | bg • chroot • cron • disown • fg • jobs • killall • kill • pidof • pstree • pwdx • time |
Searching | grep • whereis • which |
User Information | groups • id • lastcomm • last • lid/libuser-lid • logname • members • users • whoami • who • w |
WireGuard VPN | Alpine • CentOS 8 • Debian 10 • Firewall • Ubuntu 20.04 |
hi
i can’t use linux mint 16
this error :apparmor shall policy enable
please help me
thank you