- Take me to the Video Tutorial
In this section, we will take a look at Creation AppArmor Profiles
.
#!/bin/bash
data_directory=/opt/app/data
mkdir -p ${data_directory}
echo "=> File created at `date`" | tee $(data_directory) create.log
sudo apt install apparmor-utils -y
aa-genprof /root/add_data.sh
./add_data.sh