Hello,
I have AppArmor enabled in kernel
and in grub
AppArmor starts at boot:
but does not load profiles present in /etc/apparmor.d/
I can load profiles from command line:
and profiles are loaded:
but after reboot apparmor starts without loading profiles.
I don't see apparmor service (openrc) to add
So how can I force apparmor to load profiles at boot?
Thank you
apparmor-openrc is not listed by octopi
but after running
I found that apparmor-openrc is available
so I run
and all works
also after installation of apparmor-openrc, package is now visible in octopi.
Hi, this is not correct.
(https://i.imgur.com/CQ3mtwB.png)
Regards
actually I have seen only first two items:
apparmor from world
and
apparmor from extra
but not
apparmor-opencr
pacman did show all apparmor packages
thank you
BTW, where are runit init scripts for apparmor? I've noticed runit and s6 lack some init scripts compared to openrc. I took, e.g., hddtemp init module from Void Linux and modified it for my disks, but apparmor seems to be too complicated for my poor understanding.
Hi,
We consider to create and package them, but due to the fact that apparmor is complicated in specific parts, we need time.
@VictorBrand, on it's way.
I hope within next days will be available for both runit and s6 in our repos
(https://imgur.com/APmIyAp.png)
Thank you! I have some experience in programming, but I've never learned bash-scripting, although now I'm trying to improve my skills. I've tried to import apparmor init scripts from other distros, but it's a bit complicated. Stage 2 runit scripts can be imported from Void Linux to Artix runit quite easily, but apparmor is a stage 1 script. In Void, it is rather complicated (it loads profiles from /etc/apparmor.d in a cycle), but, according to OpenRC and systemd apparmor init scripts, you only need to include /usr/lib/apparmor/apparmor.rc.functions, define some functions which do logging and console output (like aa_action, aa_log_action_start etc) and then invoke parse_profiles function after some checks.
The problem for me is that stage 1 runit scripts in Artix are made in other way than in Void. BTW I do like Artix' way more than Void's (not to say that in Void some packages are weirdly built, especially the kernels, which heat my CPU for some stupid reason). You are doing a good job, guys :)
@VictorBrand as soon as the servers will sync, apparmor-runit-20210129-1 will be available in world repo.