Re: [apparmor] How does ALIAS work?

2019-12-29 Thread John Johansen
On 12/27/19 4:15 AM, J. R. Okajima wrote: > Hello, > > Would you kindly how to use ALIAS RULE? > currently it works poorly. What it does it rule rewriting so that the leading elements of a rule "should" be replaced. To quote from the man page AppArmor also provides alias rules for remapping

[apparmor] How does ALIAS work?

2019-12-29 Thread J. R. Okajima
Hello, Would you kindly how to use ALIAS RULE? Here is a shell script I am testing. - prepare "/tmp/file" - generate and enable a profile for cat(1), which allows opening "/file". - expecting a failure, run "cat /tmp/file" - add an alias rule "alias / -> /tmp/," - expecting a success, run "cat