HowTo create profile for java application
Hello experts,
i tried to create an profile for the JDownloader application without success.
I tried to create an profile with the starting shellscript with
aa-genprof /srv/bin/JDownloader2/JDownloader2
but after starting and using the application there are no events recorded.
The shellscript is about 11 KB and is starting the java application in a complex way. The running process looks like
/srv/bin/JDownloader2/jre/bin/java -Dinstall4j.jvmDir=/srv/bin/JDownloader2/jre -Dexe4j.moduleName=/srv/bin/JDownloader2/JDownloader2 -Dinstall4j.launcherId=5977 -Dinstall4j.swt=false -Xms64m -Dsun.java2d.d3d=false -Di4j.vmov=true -Di4j.vmov=true -Di4j.vmov=true -Di4j.vpt=true -classpath /srv/bin/JDownloader2/.install4j/i4jruntime.jar:/srv/bin/JDownloader2/JDownloader.jar com.install4j.runtime.launcher.Launcher launch org.jdownloader.update.launcher.JDLauncher true false /srv/bin/JDownloader2/error.log /srv/bin/JDownloader2/output.log true true false true true 0 0 20 20 Arial 0,0,0 8 500 version 2.0 20 40 Arial 0,0,0 8 500 -1
How can such an application be secured with AppArmor?
What must be done to create an profile?